Author Topic: predifined object snap  (Read 1582 times)

0 Members and 1 Guest are viewing this topic.

vincent.r

  • Newt
  • Posts: 101
predifined object snap
« 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.

ribarm

  • Gator
  • Posts: 3225
  • Marko Ribar, architect
Re: predifined object snap
« Reply #1 on: February 17, 2020, 07:14:48 AM »
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...
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

vincent.r

  • Newt
  • Posts: 101
Re: predifined object snap
« Reply #2 on: February 17, 2020, 08:26:48 AM »
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.

BIGAL

  • Swamp Rat
  • Posts: 1398
  • 40 + years of using Autocad
Re: predifined object snap
« Reply #3 on: February 18, 2020, 04:04:38 AM »
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.
« Last Edit: February 18, 2020, 08:26:53 PM by BIGAL »
A man who never made a mistake never made anything