Plugin for DXF Export does not work correctly when some elements are selected

Plugin for DXF Export does not work correctly when some elements are selected

h.zakeri
Observer Observer
609 Views
7 Replies
Message 1 of 8

Plugin for DXF Export does not work correctly when some elements are selected

h.zakeri
Observer
Observer

Hi,

I am working on a Revit plugin that needs to save a DXF export as a related task. I am trying to learn from ImportExport sample plugin that is contained in Revit SDK 2017 samples. But this plugin, too, saves an incomplete DXF export when I select elements in the project. Please note that I do not see this behavior when exporting with Revit itself. Please let me know what is missing. I have attached some screenshots below. Would share my Revit files if needed, but that should not be necessary.

 

My environment: Revit 2017, Windows 10

 

Revit screenshot:

Revit screenshotRevit screenshot

 

DXF Export using Revit (correct):

DXF Export using Revit (correct)DXF Export using Revit (correct)

 

DXF Export using ImportExport plugin (wrong):

DXF Export using ImportExport plugin (wrong)DXF Export using ImportExport plugin (wrong)

 

0 Likes
610 Views
7 Replies
Replies (7)
Message 2 of 8

jeremytammik
Autodesk
Autodesk

Sorry to hear you are having a problem with this. I asked the development team whether this behaviour is expected for you.

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 8

jeremytammik
Autodesk
Autodesk

The development team reply that this behaviour seems strange. 

 

They would like to analyse it in more depth.

 

Please submit a complete minimal reproducible case for them to take a look at:

 

https://thebuildingcoder.typepad.com/blog/about-the-author.html#1b

 

Thank you!

 

Cheers

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 4 of 8

jeremytammik
Autodesk
Autodesk

Dear Hassan,

 

I logged the issue REVIT-140907 [DXF export incomplete when elements selected] with our development team for this on your behalf as it requires further exploration and possibly a modification to our software. Please make a note of this number for future reference.

 

You are welcome to request an update on the status of this issue or to provide additional information on it at any time quoting this change request number.

 

Best regards,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 5 of 8

h.zakeri
Observer
Observer

Hi,

 

You may find a "complete minimal reproducible case" here:

https://drive.google.com/drive/folders/1pg-eH_jbPZ-R9UPiUsTCYKRUFcZInL27?usp=sharing

Select all the elements (as pictures above) and export DXF using the plugin below.

 

The ImportExport plugin is in the SDK, path is:

C:\Revit SDK 2017\Software Development Kit\Samples\ImportExport\CS

 

REVIT-140907 [DXF export incomplete when elements selected]

 

0 Likes
Message 6 of 8

jeremytammik
Autodesk
Autodesk

Thank you! I added your notes to the development issue.

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 7 of 8

jeremytammik
Autodesk
Autodesk

The development team cannot reproduce what you describe.

 

They ask:

 

  • Can we get a movie to understand what options are used when we export from Revit UI and what options are used when export with the code in the sample?
  • Can we get a picture that highlights the differences? What is missing? I can see that we have some solid fill when export through API, but I think this is due to an option setting.
  • You say "saves an incomplete DXF export when I select elements in the project" - What is selected? The DXF export doesn't deal with a selection of elements. You can just select which views are exported.

 

Thank you.

 

Cheers,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 8 of 8

h.zakeri
Observer
Observer

Hi, steps to reproduce are as follows:

  1. Select entire elements of the sample revit file provided above
  2. Export DXf using the plugin mentioned above
  3. Compare DXF file with the exported one using Revit itself

As you see in the picture, the series of vertical ducts in the middle of the picture are missing in the DXF file. Please note that I need not provide you with the options (they really do not matter, some ducts are MISSING in the DXF), and they are documented in the source code of the plugin I referenced above.

0 Likes