TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: vincent.r on February 17, 2020, 02:27:41 AM
-
Is it possible to always connect line,polyline etc. to predefined connection point of block ? and no any other snap point of block.
All snap point of block should be disabled permanently except predefined snap point.
-
All I can think is :
Redefine block - add point inside it - remove unwanted points or put them in layer you freeze...
set OSNAP to "nod"
And now draw line or pline with OSNAP "nod" on...
-
All I can think is :
Redefine block - add point inside it - remove unwanted points or put them in layer you freeze...
set OSNAP to "nod"
And now draw line or pline with OSNAP "nod" on...
Thanks ribarm for your quick response. I am working on it.
Just a doubt. can it get it done like Lee Mac's ?
http://www.lee-mac.com/objectlock.html
I am not an expert in visual lisp like you guys.
Thanks again ribarm.
-
if you know the block geometry then set snap to off as you know the point you want to join to relative to the insertion point of the block, it becomes more complex with X & Y scale and of course rotation adds even more complication. eg block creation insert 0,0 point is 1,1, in dwg inserted at 23,24 so end of line is 24,25.
If it varies say block is a square then ask "which corner" to connect line to correct corner.