Author Topic: import block from other drawing, on layer from drawing  (Read 1324 times)

0 Members and 1 Guest are viewing this topic.

DraxJDM

  • Newt
  • Posts: 47
import block from other drawing, on layer from drawing
« on: May 20, 2021, 05:16:17 AM »
hey all,

i use the code from Lee mac http://www.lee-mac.com/copyblockfromdrawing.html

It works fine, except it imports the block on the current layer.
Can this be changend so the blocks comes in at the layer it is in the source drawing?

kpblc

  • Bull Frog
  • Posts: 396
Re: import block from other drawing, on layer from drawing
« Reply #1 on: May 20, 2021, 06:31:14 AM »
Try to change CLAYER system variable, import block and then return CLAYER
Sorry for my English.

Lee Mac

  • Seagull
  • Posts: 12913
  • London, England
Re: import block from other drawing, on layer from drawing
« Reply #2 on: May 22, 2021, 09:52:26 AM »
I use the code from Lee mac http://www.lee-mac.com/copyblockfromdrawing.html

It works fine, except it imports the block on the current layer.
Can this be changend so the blocks comes in at the layer it is in the source drawing?

The program is importing the block definition from the source drawing and then inserting a reference of such definition into the active drawing; what if there are multiple references in the source drawing, each residing on different layers?

DraxJDM

  • Newt
  • Posts: 47
Re: import block from other drawing, on layer from drawing
« Reply #3 on: May 24, 2021, 12:50:43 PM »
 there is only 1, reference in the 'source' drawing.

 

martinle

  • Newt
  • Posts: 22
Re: import block from other drawing, on layer from drawing
« Reply #4 on: May 24, 2021, 02:53:22 PM »
Very exciting topic! A solution from the experts here would be very useful and helpful for many users!