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.
withCADSolidWorks:
OpenConnection:
doc≔OpenDocumentc:/mypart.sldprt:
GetActiveConfigurationdoc
Config1
GetConfigurationListdoc
Config1,Config2
GetDimensionValuedoc,D1@Sketch1@mypart.Part
100
GetDimensionValuedoc,D1@Sketch1@mypart.Part,configuration=Config2
110
GetDimensionValuedoc,D1@Sketch2@mypart.Part,D1@Sketch3@mypart.Part
300,400
UpdateDocumentdoc
CloseDocumentdoc
CloseConnection:
See Also
Download Help Document