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

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

> 

with⁡CADSolidWorks:

> 

OpenConnection⁡:

> 

doc≔OpenDocument⁡c:/mypart.sldprt:

> 

GetActiveConfiguration⁡doc

Config1

(1)
> 

GetConfigurationList⁡doc

Config1,Config2

(2)
> 

GetDimensionValue⁡doc,D1@Sketch1@mypart.Part

100

(3)
> 

GetDimensionValue⁡doc,D1@Sketch1@mypart.Part,configuration=Config2

110

(4)
> 

GetDimensionValue⁡doc,D1@Sketch2@mypart.Part,D1@Sketch3@mypart.Part

300,400

(5)
> 

UpdateDocument⁡doc

> 

CloseDocument⁡doc

> 

CloseConnection⁡:

See Also

CAD[SolidWorks]