SetDimensionValue - 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]

  

SetDimensionValue

 

Calling Sequence

Parameters

Options

Description

Examples

Calling Sequence

SetDimensionValue(p, r)

Parameters

p

-

handle to a SolidWorks document

r

-

equation of the form d=v where d is a dimension name and v is a value, or a list of such names

Options

• 

configuration : string; a configuration

Description

• 

The SetDimensionValue command sets the value(s) of the specified dimension(s) in active configuration of the SolidWorks document.

• 

If the configuration option is specified, then the SetDimensionValue command sets the values in the specified configuration.

Examples

> 

with⁡CADSolidWorks:

> 

OpenConnection⁡:

> 

doc≔OpenDocument⁡c:/mypart.sldprt:

> 

GetActiveConfiguration⁡doc

Config1

(1)
> 

GetConfigurationList⁡doc

Config1,Config2

(2)
> 

SetDimensionValue⁡doc,D1@Sketch1@mypart.Part=200

> 

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

> 

SetDimensionValue⁡doc,D1@Sketch2@mypart.Part=150,D1@Sketch3@mypart.Part=250

> 

UpdateDocument⁡doc

> 

CloseDocument⁡doc

> 

CloseConnection⁡:

See Also

CAD[SolidWorks]