Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

NX5 - AUTOMATE PDF EXPORT? 3

Status
Not open for further replies.

hurley710

Automotive
Feb 4, 2009
59
Currently, we export drawings into an Electronic Data Management System using GRIP. Drawings are released into .hgl format. Is there a way to automate an export of these drawings as .pdf?
 
Replies continue below

Recommended for you

cowski,
Thanks, it works great. I created another copy but different scale. I appreciatte writing the file out for me.

Maybe they make a "net programming for dummies" book. :) I think I might need that one.

Allen
 
cowski,
Brilliant,they work perfectly, i edited the "export drawings" to create the one for pdf's.
I couldn't find where you'd stripped off the "_dwg",
the code looked the same to me, but, hey..., it works..
Thanks again for all your help, they'll be extremely useful to us, If you ever come to Surfers' Paradise (AUS) I owe you some beers..
 
I've been trying to get the .x_t , step , iges export to put files in a specified directory and strip off _dwg (if present), I've got it to browse, but it still won't strip off the _dwg , OR put files where i want, could you have a look at this .vb for me??
 
 http://files.engineering.com/getfile.aspx?folder=d952029b-9c6d-40f2-ba3b-65839385a024&file=x_t-step-iges2.vb
Cowski,
it's better than my effort, but still not right,
it strips off the _dwg, but adds the folder name i browsed it to in front of the file name, and still puts it in the same place the file was from.
 
How would I go about retrieving the name of the drawing sheet to use as a string in my .vb file? Pending the name (actually, the beginning 4 characters of the name, I would want my program to do different things. Any ideas?
 
In many of the files I posted there is a line commented out:
Code:
'msgbox (sheet.name)
If you uncomment the line, a message box will pop up with the name of the sheet. Rather than using the 'msgbox' command, you can assign this to a variable or use it in other ways.
 
Cowski,
I opened up a dxf today with e-drawings, and everything is on the wrong axis.
Is it possible to add this journal, to the dxf-export, which will flip the drwg up onto the X-Z axis and colour the curves to white...
 
@moog2
I think it a problem off your general setting- exporting dxf/dwg ( nothing to do -> we think). switch->:
customers defaults ->gateway ->visualization - view screen tab
initial view from trf-tri to top
 
uwam2ie,
I changed it from front to top, but has made no difference,
i even created a new drwg from scratch on those settings.
E-drawings is a free viewer,download it & see what you get.
I was also told this problem occurs in Auto-bad as well, but i don't have it.
 
So you want to rotate all the geometry about the +X axis by 90 degrees before export to dxf?
 
test this approach:
export 2d-exchange option data to export
export entire part
export top view (or) disired direction
 
Cowski,
Yes that's right,also change the colour of everything to white.
uwam2ie,
This journal works by exporting a .cgm , then re-importing it and outputting that as a .dxf
If i then open the file in e-drawings, all you see is 1 line, as the whole drwg is layed flat on the wrong axis, rotating the ,cgm before output will fix this.
 
dxf from cgm is not a nice solution ;-)
notice that also in dxfdwg export a view option is aviable
 
uwam2ie said:
dxf from cgm is not a nice solution
I agree and I would prefer not to go through such an intermediate step, but I have not been able to get reliably good output any other way. Perhaps you will share with us the settings you use?
 
The only successful way I've ever been able to output a .dxf is by first importing a .cgm
 
First off I want to say cowski it's really nice of you to help everyone like you have in this thread!
Also it looks like your setting a record with the number of replies in a thread:)

The reason I'm writing is only partially on subject. This thread has been about exporting to DWG/DXF with 2D exchange. I'm having trouble doing this so that when the DWG/DXF file is opened in Acad the hidden line show up correctly. May I ask, cowski & others, what do the hidden lines in your exported files look like when you open them in Acad?

Thanks,
James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor