×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Export to DXF

Export to DXF

Export to DXF

(OP)
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

RE: Export to DXF

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

RE: Export to DXF

Quote:

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

RE: Export to DXF

(OP)
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

RE: Export to DXF

(OP)
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

RE: Export to DXF

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

RE: Export to DXF

(OP)
Ok...

Thank you...

Using NX 8 and TC9.1

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources