CAD[SolidWorks] - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

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

CAD[SolidWorks]

 GetFeatureList

 Calling Sequence GetFeatureList(p,options)

Parameters

 p - handle to a SolidWorks document

Options

 • feature : a single feature or a list of features
 • component : string; a single component or a list of components

Description

 • The GetFeatureList command lists the features in a SolidWorks document.
 • If the feature option is provided, then the subfeatures of the specified features are returned.
 • If the component option is provided, then the features of the specified components are returned.

Examples

 > $\mathrm{with}\left(\mathrm{CAD}[\mathrm{SolidWorks}]\right):$
 > $\mathrm{OpenConnection}\left(\right):$
 > $\mathrm{doc}≔\mathrm{GetActiveDocument}\left(\right):$
 > $\mathrm{GetFeatureList}\left(\mathrm{doc}\right)$
 $\left[{"Design Binder"}{,}{"Annotations"}{,}{"Lights, Cameras and Scene"}{,}{"Solid Bodies"}{,}{"Surface Bodies"}{,}{"Comments"}{,}{"Material "}{,}{"Front"}{,}{"Top"}{,}{"Right"}{,}{"Origin"}{,}{"Design Table"}{,}{"Sketch1"}{,}{"Extrude1"}{,}{"Sketch2"}{,}{"Extrude2"}{,}{"Sketch6"}{,}{"Extrude3"}{,}{"Sketch7"}{,}{"Cut-Extrude2"}{,}{"Fillet2"}{,}{"Fillet1"}{,}{"CirPattern1"}{,}{"Fillet3"}{,}{"Rectangle"}{,}{"Sketch11"}{,}{"Sketch12"}{,}{"Surface-Extrude2"}\right]$ (1)
 > $\mathrm{GetFeatureList}\left(\mathrm{doc},\mathrm{component}="part1-1"\right)$
 $\left[{"Design Binder"}{,}{"Annotations"}{,}{"Lights, Cameras and Scene"}{,}{"Solid Bodies"}{,}{"Surface Bodies"}{,}{"Comments"}{,}{"Material "}{,}{"Front"}{,}{"Top"}{,}{"Right"}{,}{"Origin"}{,}{"Design Table"}{,}{"Sketch1"}{,}{"Extrude1"}\right]$ (2)
 > $\mathrm{GetFeatureList}\left(\mathrm{doc},\mathrm{component}=\left["part1-1part2-1"\right]\right)$
 $\left[{"Design Binder"}{,}{"Annotations"}{,}{"Lights, Cameras and Scene"}{,}{"Solid Bodies"}{,}{"Surface Bodies"}{,}{"Comments"}{,}{"Material "}{,}{"Front"}{,}{"Top"}{,}{"Right"}{,}{"Origin"}{,}{"Design Table"}{,}{"Sketch1"}{,}{"Extrude1"}{,}{"Fillet1"}\right]$ (3)
 > $\mathrm{GetFeatureList}\left(\mathrm{doc},\mathrm{feature}="Extrude3"\right)$
 $\left[{"Sketch7"}\right]$ (4)
 > $\mathrm{CloseConnection}\left(\right):$

 See Also

## Was this information helpful?

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