
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good day friends !!
Is there a way to apply geometric constrains with lisp? I have a number of polylies that connect to a block at certain points via a lisp rutine. what I need is to have the end point of the poly line (which is connected to the block) move with the block when the block is moved !! like in facy electrical softwares ! I want the end popint of the PL to coinciede with a point in a block using geomconstrains commands ! I hope my explainations suffice ?!
I have tried to provide the "GcCoincident" command with an end point of an entiry as follows but with no success:
(setq pt (getpoint "\nSelect end point on the object: "))
(setq pt-ent1 (nentselp (osnap pt "end")))
(command "GcCoincident" pt-ent1 ....
I get this error:
Invalid selection for Coincident. Select a line, polyline segment, circle, arc,
ellipse or spline.
Also If you reckon it cannot be done at all with blocks, I'd appreciate it if someone could provide me with a sample code that does a coincident constrain between any two objects !!
Thank you very much.
K.m
Solved! Go to Solution.