GetEquation

 Calling Sequence GetEquation(p, idx)

Parameters

 p - handle to a SolidWorks document idx - index of an equation

Description

 • The GetEquation command retrieves the equation with index idx from the SolidWorks document.

Examples

 > $\mathrm{with}\left(\mathrm{CAD}[\mathrm{SolidWorks}]\right):$
 > $\mathrm{OpenConnection}\left(\right):$
 > $\mathrm{doc}≔\mathrm{OpenDocument}\left("c:/mypart.sldprt"\right):$
 > $\mathrm{GetEquationList}\left(\mathrm{doc}\right)$
 $\left[{""D1@Distance1@myassem.Assembly"=40"}{,}{""D1@Distance2@myassem.Assembly"=4"}\right]$ (1)
 > $\mathrm{GetEquation}\left(\mathrm{doc},0\right)$
 ${""D1@Distance1@myassem.Assembly"=40"}$ (2)
 > $\mathrm{CloseConnection}\left(\right):$