Calling Sequence GetDimensionList(p, options)

Parameters

 p - handle to a SolidWorks document

Description

 • The GetDimensionList command retrieves all the dimensions available from document p.
 • If the feature option is provided, then the dimensions for only the specified features are returned.
 • If the component option is provided, then 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{GetDimensionList}\left(\mathrm{doc}\right)$
 $\left[{"D1@Distance1@myassem.Assembly"}{,}{"D1@Distance2@myassem.Assembly"}\right]$ (1)
 > $\mathrm{GetDimensionList}\left(\mathrm{doc},\mathrm{component}="part1-1"\right)$
 $\left[{"D1@Extrude1@part1.Part"}{,}{"D1@Sketch1@part1.Part"}{,}{"D1@Extrude2@part1.Part"}{,}{"D1@Sketch2@part1.Part"}\right]$ (2)
 > $\mathrm{CloseConnection}\left(\right):$