param:constraint-set-placement


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

Defines the placement mode (integer 0-3) 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 Placement 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-placement constraint 0 bc3dcPlacementAny)  T

Remarks

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

Note




©  Bricsys NV. All rights reserved.