C3DFile.GetParDimension |
![]() ![]() |
nDim = C3DFile.GetParDimension( BYVAL nFile AS INTEGER, BYVAL strParName AS STRING, BYVAL nDimension AS INTEGER ) AS INTEGER
Returns the parameter dimension (upper limit) of the specified dimension (index).
Example:
' Print out the dimension of a parameter type string
DIM i AS INTEGER DIM j AS INTEGER
j = C3DFile.GetParNoOfDimensions( nFile, "POINT:LABELS" ) PRINT "POINT:LABELS( ";
FOR i = 1 TO j IF i > 1 THEN PRINT ", "; ENDIF
' We're using OPTION BASE 0 so the nDimension param needs to offset 0
PRINT C3DFile.GetParDimension( nFile, "POINT:LABELS", i-1 ); ENDFOR |