几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   PC-DMIS二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=153)
-   -   array in basic script (http://www.dimcax.com/hust/showthread.php?t=1572)

huangyhg 2007-11-26 11:20 AM

array in basic script
 
vektor
can any body explain how to create and use lbound array in pc dmis basic script the helpfile on this subject is a little thin


i want to create a script that read measurments values and then sort them
to get the lowest value

Please help me
craiger_ny
You don't need to sort to get the minimum number in an array, nor do you need a script. What exactly is it you are doing? I may not understand what is going on here. Are you doing this in VB or in PCDMIS?

vektor
I am doin this in pc dmis internal Basic script editor.

I want to get old values from a external txt file and a fresh value from pcdmis .
Compare the values and return the lowest back to pcdmis .
And put some updated values to the txt file.


craiger_ny
PCDMIS can read in the values from the text file (how are they delimited?) and can populate an array and return the minimum and can also write them into a text file. There is no need for a script unless the delimiting of the text file creates more PCDMIS code than is desireable.


所有的时间均为北京时间。 现在的时间是 02:00 PM.