CAD[SolidWorks][GetDimensionValue] - Maple Help

Online Help

All Products    Maple    MapleSim


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

CAD[SolidWorks][GetDimensionValue]

Calling Sequence

GetDimensionValue(p, d, options)

Parameters

p

-

handle to a SolidWorks document.

d

-

name of a dimension or a list of such names

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

withCAD[SolidWorks]:

OpenConnection:

doc:=OpenDocumentc:/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]


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