Is there an NCopy equivalent in Dynamo?

I’m trying to find some way of creating a copy of an object from an external file into the current document. If I were to do this with user input I’d usually use the NCopy command. Is there a similar method I could use to copy external objects to the current document with Dynamo/Python?

An XREF is a block, so you can access all of the objects within the block with the Block.Objects node. From that point, you can basically work with them just like other Dynamo objects. So you could use the Object.Geometry node to get the Dynamo geometry representation, and then use the Object.ByGeometry node to create the geometry in the current document.

3 Likes

For anyone reading this thread later, there’s a distinction between ExternalObject types return by Camber and the object reference that resides within the current document xref. To get info about the object reference within the current document you can read more below: