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.
with⁡CADSolidWorks:
OpenConnection⁡:
doc≔OpenDocument⁡c:/mypart.sldprt:
GetEquationList⁡doc
"D1@Distance1@myassem.Assembly"=40,"D1@Distance2@myassem.Assembly"=4
SetEquation⁡doc,0,\"D1@Distance1@myassem.Assembly\"=30
UpdateDocument⁡doc:
"D1@Distance1@myassem.Assembly"=30,"D1@Distance2@myassem.Assembly"=4
CloseConnection⁡:
See Also
Download Help Document