"NCOPY" an entire BLOCK from Xref to current .dwg

"NCOPY" an entire BLOCK from Xref to current .dwg

barry2104
Collaborator Collaborator
2,705 Views
3 Replies
Message 1 of 4

"NCOPY" an entire BLOCK from Xref to current .dwg

barry2104
Collaborator
Collaborator

similar to the NCOPY command, which only allows to copy single lines/polylines/text/circles etc from one Xref to the current .dwg, is there a Lisp out there which allows the user to copy an entire block from an Xref into the current .dwg by clicking on one of its elements? Or is this not possible?

Running AutoCAD Architecture 2020, in German
0 Likes
2,706 Views
3 Replies
Replies (3)
Message 2 of 4

dlanorh
Advisor
Advisor

Not exactly what you want, but Lee Mac's "Steal" lisp allows you to import Blocks, Layers, Text Styles, MultiLeader styles etc from another drawing. http://www.lee-mac.com/steal.html

I am not one of the robots you're looking for

0 Likes
Message 3 of 4

roland.r71
Collaborator
Collaborator

XBIND

 

Quoted from link:

Symbol type to bind

Specifies which types of symbol to bind to the drawing. Choices include

  • Block. If you apply XBIND to a block, any block, dimension style, layer, linetype, or text style that is referenced by objects in the block is also bound. If the block contains an xref, XBIND binds that xref and all its dependent named objects.

 

The block's name will (still) have the dwg's name as prefix though.

The vertical bar character ( | ) from each xref-dependent named object is replaced with a number (usually 0) between two dollar signs ($).

0 Likes
Message 4 of 4

john.uhden
Mentor
Mentor

I think it is possible.  If you intend to select the object by picking, the (nentsel) function will return the entire ancestry of the object selected, not necessarily just one most deeply nested subentity.  I started to build my own XCOPY years ago, but never finished I think because of matrix transformations.  Guys like Larry Leuallen (sp?) and Joe Burke contributed solutions, but I never grasped them adequately.  I found the movie The Matrix equally disconcerting.  Keanu Reeves is a dolt.

John F. Uhden

0 Likes