Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Problems with Exporting to 2D DWG, 3D DWG and DWF

Anonymous

Problems with Exporting to 2D DWG, 3D DWG and DWF

Anonymous
Not applicable

Hello. I am trying to export some 3D and 2D drawings from an Inventor Assembly via the Inventor C# API, for use in FME in order to combine the model views with geospatial data. I have tried using three different exports from Inventor, and I am having different problems with each one. I would be very grateful for any advice on how to solve any of these issues.

 

1) For the 2D DWG, I use the corresponding translator addin (as specified in the first part of this page: http://www.coolorange.com/wiki/doku.php?id=powerjobs:jobprocessor:code_reference:cmdlets:export-docu... ). Even though my .ini file specifies that the drawing should be in model space, the coordinates of the 2D object in the resulting DWG are not what I expect them to be. Somehow I lose the geospatial location of the object, and subsequently cannot easily place it on a map where it should be. Could there be something else I'm doing wrong, which results in the 2D DWG not having the correct coordinates? I am using the 'MODEL GEOMETRY ONLY=Yes' and 'SPACE=Model' options in the .ini file.

 

2) When I have a fairly complex object assembly located near the origin, the 3D DWG file gets exported very quickly, in less than a second, using the second translator addin described in the link above. However, when my object has geospatial coordinates (for example, when located in London in British National Grid coordinate system, the coordinates could be something like 529629.29, 177953.61, in metres), the same model takes a very long time to export its 3D DWG (taking several days in some cases). Is it normal that just being far from the origin of the coordinate system should result in such long export times? Is there something I could do to ameliorate this?

 

3) When I export a DWF drawing using the DWF translator addin, I end up with two different versions of the assembly model within that DWF file (or possibly two similar looking parts of the assembly) in two different places in the DWF: one in the correct geospatial location (e.g. 529629.29, 177953.61) and one invariably near the origin. The only option I am setting when exporting the DWF this way is the following:

options.Value["Publish_Mode"] = DWFPublishModeEnum.kCompleteDWFPublish;

Can anyone tell me why the assembly might be splitting or duplicating itself in that way in the exported DWF file, and if there are any options I might use to have the DWF only contain the model at the correct Model Space coordinates (geospatial coordinates in my case)?

 

Please let me know if it would help for me to include other files or code in addition to what I have stated above.

Reply
519 Views
5 Replies
Replies (5)

Mark.Lancaster
Consultant
Consultant

@Anonymous

 

First thing, welcome to the community..

 

Second thing..  When posting its a good idea to tell us what version of Inventor you're using..

 

Final thing..  This is the general Inventor forum and it appears that you are writing some in-depth program..  So I strongly suggest that you post over in the Inventor Customization Forum to get a better results.

Mark Lancaster


  &  Autodesk Services MarketPlace Provider


Autodesk Inventor Certified Professional & not an Autodesk Employee


Likes is much appreciated if the information I have shared is helpful to you and/or others


Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.

0 Likes

Anonymous
Not applicable

Thank you.

 

I am using Autodesk Inventor Professional 2016 (Build 236).

 

Ah, fair enough about the forum - is it possible to move my thread there, or should I post anew in the Customization forum?

0 Likes

Mark.Lancaster
Consultant
Consultant

@Anonymous

 

Either start one in that forum or use the report link next to your posting and tell the moderator to relocate it..

 

Also as a heads up..  We don't go by build #s in Inventor..  Specify the service pack and/or release (like R2, R3, and etc)

Mark Lancaster


  &  Autodesk Services MarketPlace Provider


Autodesk Inventor Certified Professional & not an Autodesk Employee


Likes is much appreciated if the information I have shared is helpful to you and/or others


Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.

0 Likes

Anonymous
Not applicable

Thanks again Mark, I've used the report link to request that the thread be moved.

 

I'm using Release 2016.2.2.

0 Likes

Anonymous
Not applicable

I should probably note that while in the OP I linked to something related to coolOrange, I only did so because it was the only web page I could find that talked about the 2D and 3D DWG Inventor TranslatorAddins and details of their .ini files. What I am actually using is simply the Inventor API via C# to create 2D and 3D DWG outputs from an assembly document, nothing more.

0 Likes