param:constraint-set-measurement


(param:constraint-set-measurement  constraint  argIndex  mode)

Defines the measurement mode (integer 0-2) for the specified constraint (integer) at the argument index argIndex (integer, 0/1).

Arguments

constraint (integer) the constraint to modify

argIndex (integer) 0 or 1, refering to the first or second definition entity

mode (integer) one of the 3DConstraints MesurementMode values

Return

T on success or NIL on failure

Example

(vl-load-mech)  2
(setq blkId (tblobjname "BLOCK" "*Model_Space"))  <Entity name: a40c9010>
(setq grp (mech:get-constraintsgroup blkId))  2685508064
(setq constraints (mech:get-constraints grp))  (2685508640 2685507680)
(setq constraint (nth 0 constraints))  2685508640
(mech:constraint-set-measurement constraint 1 bc3dcMeasurementModeCentralPoint)  NIL

Remarks

not all constraint types support all measurement modes (or do not support measurement mode at all)

Note




©  Bricsys NV. All rights reserved.