Cannot change linetype when exporting to dxf

Cannot change linetype when exporting to dxf

meck
Collaborator Collaborator
526 Views
5 Replies
Message 1 of 6

Cannot change linetype when exporting to dxf

meck
Collaborator
Collaborator

I created a program to export Inventor sheet metal models to dxf. Pretty much uses the translator from the sample code in the help. Most everyone's is working fine, but a select few will only get continuous lines at the bends when we need dashed lines.

I am using the below code to set the linetypes and it works fine. I've changed to different values just to make sure it is controlling the linetype, and it is.

 

Dim sOut As String = "FLAT PATTERN DWG?AcadVersion=2010&IV_Bend=37634&IV_BendLayerColor=0;255;255&BendUpLayerLineType=37634&BendUpLayerColor=255;255;0&BendDownLayerLineType=37634&BendDownLayerColor=0;255;255&InvisibleLayers=IV_ARC_CENTERS;IV_TANGENT"

 

I have tried everything I can think of to get it to work with the few people that only get continuous lines, but I am at a loss. Has anyone experienced and resolved this problem?

Thanks in advance.

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018
0 Likes
527 Views
5 Replies
Replies (5)
Message 2 of 6

dalton98
Collaborator
Collaborator

It works for me. Are they maybe not opening in the correct autocad version? Try changing the file type and version

 "FLAT PATTERN DXF?AcadVersion=R12"

0 Likes
Message 3 of 6

meck
Collaborator
Collaborator
Thanks for the response.
I did change the version but it had no effect.
Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018
0 Likes
Message 4 of 6

dalton98
Collaborator
Collaborator

Have you tried to manually export the flat pattern dxf on those computers? Something interesting I found... when I did this the dashed line in autocad was just called "DASHED" before  it was "DASHED_SPACE". And the option for "DASHED_SPACE" wasnt available when I manually exported

dalton98_0-1694183127215.png

0 Likes
Message 5 of 6

meck
Collaborator
Collaborator

We are able to export the flat pattern using Save Copy As... and the line types are fine, but when running the program it still doesn't work. We need to be able to use the program, because it allows for batch processing and we are adding property info to the dxf file. 

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018
0 Likes
Message 6 of 6

dalton98
Collaborator
Collaborator

Oh...I thought the 'Save Copy As' dxf config could be copied to the rule, but it looks like it uses a different template. Have you tried removing the 'IV_bend'? It says it's legacy supported, but it should only use the 'bend up' and  'bend down' lines.

 

Other than that I can't think of anything else.

0 Likes