Other functions
setGlobalParam(var, val);
Sets the global var variable in the val value.Example:
if(rLen2 <= B/4){ SetGeomConstraint(INSERT, CODIRECT, obj, WP1, obj.WP2, 0); setGlobalParam(rSubType, CONTRDIRECT); } else if(abs(rLen1) <= B/4) { SetGeomConstraint(INSERT, CODIRECT, obj, WP1, obj.WP1, 0); setGlobalParam(rSubType, CODIRECT); } else { SetGeomConstraint(INSERT, rSubType, obj, WP1, obj.WP1, rLen1); };GridRound(b) Align the values by grid. The parameter of the grid is specified in the parameters or in prompt parameters (Ctrl+Shft+Q by default);
Example:
a = GridRound(b);
If the grid step is 5 and, b ==12.4, the function returns 10; If the b >= 12.5 function returns 15.
rDiameter = GridRound(abs(rYcoord*2));
paramByName(strName) Returns the parameter value by its name:
Example:
strName = GetNearestPlane(obj); plane = paramByName(strName);
getChildrenCount() Returns the number of child objects
getChildId(nChild); Returns the identifier of the nChild child object.




Post your comment on this topic.