Is it possible to import/insert .DWGs into a .DWG?

Hi all,

I’m working on a workflow where, the DWGs which I’m working with, have directly been exported from Revit (using the DWG/DXF Export). These DWGs don’t have any standard/template or anything, thus (ideally) I would like to insert a template (“template.dwg”) such that all the layers according to our standard, in terms of colours, linestyles, etc., are setup correctly.

Thus, does anyone therefore know if it is possible to insert/import a DWG file into another DWG file through Dynamo?

I think the other way around is a better structure, to import your drawing in a template file. Then you are sure that settings and units and Layouts are according to your standard.

That being said, I think you can find nodes for this in the External category in the Camber package:

I have to disagree with that. That would mean copying 100.000s of autocad objects from their drawing to another drawing. I only need the layers and their corresponding styles from our standard, which I now have as .dwg.

I’ll check out Camber, but if anyone else has another idea, let me know!

Inserting a file is not the same as copying 100.000s objects.

If it is only layers and styles, it indeed does not matter if you insert the template in the drawing or insert the drawing in the template.

But why Dynamo? There is also something as the stand-alone tool Batch Save Utility where you can save files in batch and run a script in it (which obviously can insert your template).

Inserting the template is only part of our workflow. It also includes moving the objects from their layers, as they are exported from Revit, towards these standard/template layers.

I was not aware of this tooling. Maybe this could be a great first step such that we don’t have to do that later (semi)automatically!

Seems as if this bit should be configured in Revit’s export settings, though I may be missing something…

Is the end goal to have each file incorporate the content of the template into itself, or to insert the content into the template?

Hi Jacob,

Unfortunately it is not as simple as a “layer A” to “layer B” mapping.
The layer in which the object in autocad needs to end up in, is partly determined by the phasing of each objects, e.g. if a Revit object is created sometime during the project, and not demolished, the Autocad layer needs to start with “N-” for “Nieuw” (New in English).

The only “part” of the template that we’re interested in, is the correct layer styling based on the layer name, based on the standards we’re following. Such that if we move our layers to those layers, they follow the standard.

So set up a pair of filters for view export. Then set up a export routine that for each filter: sets the filter, configures the export settings, and exports the view.

Then merge the DWGs into one by automation in Dynamo for Civil 3D or by way of manual insert and bind. As long as the base DEG you insert everything into was created from the template you should be done.