CAD[SolidWorks] - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Connectivity : CAD Package : SolidWorks : CAD/SolidWorks/SetDimensionValue

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

withCAD[SolidWorks]:

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]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam