Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export to DXF

Status
Not open for further replies.

cubalibre000

Mechanical
Joined
Jan 27, 2006
Messages
1,070
Location
IT
Hi,
I'm using the journal located here, but generate two files, one of 80kb and the other of 48Mb.
If I use File->Export->2D Exchange, 600kb.
I would like a dxf correct with correct dimension.
Attached parts used to test.

Thank you...

Using NX 8 and TC9.1
 
Something changed in NX 8 that caused dxf files created with that journal to balloon in size. If you are running NX 8.5, you can add the following line in the ExportDXF subroutine:

Code:
dxfdwgCreator1.ExportAs = DxfdwgCreator.ExportAsOption.ThreeD

I have found no good fix for NX 8, but you might try the different AutoCAD revision options to see if they have any effect. The code was originally written for NX6 when the 2004 output option gave the best results, perhaps one of the newer options would work better for your needs.

www.nxjournaling.com
 
Something changed in NX 8.5 that caused dxf files created with that journal to balloon in size.

My comments apply to NX 8.5, not NX 8 as indicated in my first post. In my testing, NX8 works ok.

That said, if 2D exchange is working for you, I would encourage you to use that instead. The journal was created because a straight "export dxf" used to give inconsistent/undesired results. Over the years some features were added to the code, but ultimately it is still just an automated 'work-around'. The use of Siemens supplied/tested code should take precedence over this journal.

www.nxjournaling.com
 
OK,
it's possible to create a journal that automatize the dxf export, using the 2D exchange tool ?

Thank you...

Using NX 8 and TC9.1
 
Where I need to put, because I report an error with this added string.
Sub ExportDXF(ByVal inputFile As String, ByVal outputFile As String)

Dim dxfdwgCreator1 As DxfdwgCreator
dxfdwgCreator1.ExportAs = DxfdwgCreator.ExportAsOption.ThreeD
dxfdwgCreator1 = theSession.DexManager.CreateDxfdwgCreator()
dxfdwgCreator1.SettingsFile = dxfSettingsFile
dxfdwgCreator1.InputFile = inputFile
dxfdwgCreator1.OutputFile = outputFile

Thank you...

Using NX 8 and TC9.1
 
The .ExportAs option is only available in NX 8.5. If you are still running NX8, as indicated in your sig line, don't add it because it won't work.

www.nxjournaling.com
 
Ok...

Thank you...

Using NX 8 and TC9.1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top