Empty Viewport when Exporting to DWG

Hello everyone,

Currently I’m developing a Dynamo Script that is supposed to do the following:

  • Imports data from 2 Excel spreadsheets;
  • Creates a mesh made with point coordinates contained inside one of the Excel sheets;
  • Creates a metallic structure based of the mesh shape and of the materials in the other Excel sheets;
  • Creates a Section View;
  • Places the Section View in a Sheet with a custom titleblock;
  • Exports the Sheet with the section view into a DWG file.

Diagram bellow:

However, when the sheet gets exported, the viewport appears empty but the other contents of the viewport (Like title and levels) appear.

What might be causing this? Any feedback is appreciated.

Forgot to show the result of the exported DWG and the sheet in Revit. Here:

DWG file
IBAS Export.dwg (17.2 KB)

Revit sheet

Hi,
This blue Dynamo geometry appears to be just a preview and not an actual item in Revit. Are you sure that the structural framing elements really appear in your section?
Dynamo geometry cannot be exported to DWG.

Hello and thank you for your reply,

I also had that doubt, but the framing appears in the section view.
I need to point out that I changed the code a bit and now I’m looking to print into PDF format.
However, this issue persists, and I think it’s because the PDF creation function is executing before the section view creation. The PDF selection appears before the structure is even created. I tried to correct this by inserting a Passthrough block, but it seems to not be working

Modified nodes bellow:

.dyn file
structure.dyn (729.8 KB)
.rvt file
Template.rvt (3.4 MB)
excel sheets
bars.xlsx (23.8 KB)
nodes.xlsx (16.6 KB)

Apologies for my late answer