CAD[SolidWorks]
SetEquation
Calling Sequence
Parameters
Description
Examples
SetEquation(p, idx, eq)
p
-
handle to a SolidWorks document
idx
index of an equation
eq
equation to set
The SetEquation command sets the equation index idx in the SolidWorks document to the equation specified by eq.
withCADSolidWorks:
OpenConnection:
doc≔OpenDocumentc:/mypart.sldprt:
GetEquationListdoc
"D1@Distance1@myassem.Assembly"=40,"D1@Distance2@myassem.Assembly"=4
SetEquationdoc,0,\"D1@Distance1@myassem.Assembly\"=30
UpdateDocumentdoc:
"D1@Distance1@myassem.Assembly"=30,"D1@Distance2@myassem.Assembly"=4
CloseConnection:
See Also
Download Help Document