CAD[SolidWorks]
GetDimensionUnit
Calling Sequence
Parameters
Description
Examples
GetDimensionUnit(p, d)
p
-
handle to a SolidWorks parts file
d
name of a dimension
The GetDimensionUnit command returns the unit associated with dimension d in the Solidworks file p.
withCADSolidWorks:
OpenConnection:
doc≔OpenDocumentc:/mypart.sldprt
doc≔0
doc≔GetDimensionUnitdoc,D1@Sketch1@mypart.Part
mm
doc≔CloseDocumentdoc
CloseConnection:
See Also
Download Help Document