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

DataIO and Translators

rjay75
Collaborator

DataIO and Translators

rjay75
Collaborator
Collaborator

Is a there an updated list of arguments that can be used in the format string for DataIO objects? (Specifically for exporting DWG/DXF flat pattern options.)

 

Also options relating to using the translators for exporting PDFs/DWFs.

Reply
1,233 Views
4 Replies
Replies (4)

ekinsb
Alumni
Alumni

Hi Rodney,

 

I just double-checked and it appears all of the sheet metal specific options are fully documented as part of the "Translate - Sheet Metal to DXF API Sample" sample programs in the API Help.  It's in the help structure in "Sample Programs -> Parts -> Sheet Metal".  For other file types besides sheet metal, those options are documented in one of the include files delivered with the SDK.  It's ClipboardFormats.h.  We could definitely do a better job of documenting this in an easier to find way.

 

For the other translators that you access as TranslatorAddIns, I think they're documented fairly good in the API Help but the topic is a bit difficult to find.  If you go to the documentation for the TranslatorAddIn object an go to the "Remarks" section there is a link to the "Translator Options" page.  You can also find it by searching the help for "Translator Options".  Another area where we can improve the help access. Smiley Happy


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes

rjay75
Collaborator
Collaborator

Thanks Brian,

 

Saw that folder before. Thanks for the reminder of it. Thanks for the ppinters in the documentation.

 

Good to know the sheet metal options are still the same. One more question regarding the flat pattern options. Saw this on the Forums yesterday. There is a new option in IV2016 for the DWG/DXF export options for flat patterns to Trim Centerlines. Has this new option been added to the DataIO sheetmetal options?

0 Likes

ekinsb
Alumni
Alumni

There aren't currently any options for trimming centerlines.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes

anaumannNupis
Explorer
Explorer

Hi,

 

I also have a special problem with DATAIO Options. One of our customers wants that the bendlines of the dxf are drawn with a very special linetype. In Acad its named "CENTERX2".  I've tested this by hand and in Inventor i can select this linetype at the export options as a custom linetype. You can save it with the ini File as well. 

My Problem is, how can i get this linetype to my output String. I can only set the normal ones, even the kCustomLineType within the Enum crashes. It seems that there have to be more information. But how can i do this. The documentation says nothing about it and my websearches are useless.

 

My Current Output String: FLAT PATTERN DXF?AcadVersion=2000&TangentLayer=Layer1&OuterProfileLayer=0&ArcCentersLayer=Layer2&InteriorProfilesLayer=0&BendUpLayer=BiegelinienUp&BendUpLayerColor=255;255;0&BendDownLayer=BiegelinienDown&BendDownLayerColor=0;255;0&ToolCenterLayer=Layer3&ToolCenterUpLayer=Layer4&ToolCenterDownLayer=Layer5&FeatureProfilesLayer=Layer6&FeatureProfilesUpLayer=0&FeatureProfilesDownLayer=Layer7&AltRepFrontLayer=Layer8&AltRepBackLayer=Layer9&InvisibleLayers=Layer1;Layer2;Layer3;Layer4;Layer5;Layer6;Layer7;Layer8;Layer9&BendUpLayerLineType=37644&BendDownLayerLineType=37644

 

The last 2 Options are my problem

 

Kind Regards,

André Naumann

0 Likes