CAD[SolidWorks]
GetDimensionValue
Calling Sequence
Parameters
Options
Description
Examples
GetDimensionValue(p, d, options)
p
-
handle to a SolidWorks document.
d
name of a dimension or a list of such names
configuration : string; a configuration
The GetDimensionValue command retrieves the value of the specified dimension(s) in the active configuration of the SolidWorks document.
If the configuration option is specified, then the GetDimensionValue command retrieves the values in the specified configuration.
with⁡CADSolidWorks:
OpenConnection⁡:
doc≔OpenDocument⁡c:/mypart.sldprt:
GetActiveConfiguration⁡doc
Config1
GetConfigurationList⁡doc
Config1,Config2
GetDimensionValue⁡doc,D1@Sketch1@mypart.Part
100
GetDimensionValue⁡doc,D1@Sketch1@mypart.Part,configuration=Config2
110
GetDimensionValue⁡doc,D1@Sketch2@mypart.Part,D1@Sketch3@mypart.Part
300,400
UpdateDocument⁡doc
CloseDocument⁡doc
CloseConnection⁡:
See Also
Download Help Document