GetDimensionValue - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


CAD[SolidWorks]

  

GetDimensionValue

 

Calling Sequence

Parameters

Options

Description

Examples

Calling Sequence

GetDimensionValue(p, d, options)

Parameters

p

-

handle to a SolidWorks document.

d

-

name of a dimension or a list of such names

Options

• 

configuration : string; a configuration

Description

• 

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.

Examples

withCADSolidWorks:

OpenConnection:

docOpenDocumentc:/mypart.sldprt:

GetActiveConfigurationdoc

Config1

(1)

GetConfigurationListdoc

Config1,Config2

(2)

GetDimensionValuedoc,D1@Sketch1@mypart.Part

100

(3)

GetDimensionValuedoc,D1@Sketch1@mypart.Part,configuration=Config2

110

(4)

GetDimensionValuedoc,D1@Sketch2@mypart.Part,D1@Sketch3@mypart.Part

300,400

(5)

UpdateDocumentdoc

CloseDocumentdoc

CloseConnection:

See Also

CAD[SolidWorks]