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

  

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

withCADSolidWorks:

OpenConnection:

docOpenDocumentc:/mypart.sldprt:

GetActiveConfigurationdoc

Config1

(1)

GetConfigurationListdoc

Config1,Config2

(2)

SetDimensionValuedoc,D1@Sketch1@mypart.Part=200

SetDimensionValuedoc,D1@Sketch1@mypart.Part=200,configuration=Config2

SetDimensionValuedoc,D1@Sketch2@mypart.Part=150,D1@Sketch3@mypart.Part=250

UpdateDocumentdoc

CloseDocumentdoc

CloseConnection:

See Also

CAD[SolidWorks]