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.
with⁡CADSolidWorks:
OpenConnection⁡:
doc≔OpenDocument⁡c:/mypart.sldprt
doc≔0
doc≔GetDimensionUnit⁡doc,D1@Sketch1@mypart.Part
mm
doc≔CloseDocument⁡doc
CloseConnection⁡:
See Also
Download Help Document