cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The PTC Community email address has changed to community-mailer@ptc.com. Learn more.

export in PDF or DXF Format

ChristopheLaudo
1-Newbie

export in PDF or DXF Format

Hi,

I am looking for Web Link or J-Link way of exporting Drawings in DXF and PDF Format but I have not found anything.

It seems that only ProOutputFileWrite() in ProToolkit is available from what I have found so far.

Any other suggestions/ideas?

Thanks


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
6 REPLIES 6

For DXF export use:

DXFExportInstructions dxfei = pfcModel.DXFExportInstructions_Create();
Model model = session.GetCurrentModel();
//Make sure the model is drawing before this
drw = (Drawing) model;
curdrw.Export("dxftemp.dxf", dxfei);

PDF export is not support in WF3. Haven't checked with WF4.

Regards,
Bjarne



"Christophe Laudou" <->
12-06-2009 18:01
Please respond to
"Christophe Laudou" <->


To
-
cc

Subject
[proecus] - export in PDF or DXF Format






Hi,
I am looking for Web Link or J-Link way of exporting Drawings in DXF and
PDF Format but I have not found anything.

It seems that only ProOutputFileWrite() in ProToolkit is available from
what I have found so far.
Any other suggestions/ideas?

Thanks

----------

Thanks to all for your answer,
I have it working in WebLink with the following Jscript function:

/************************************************************************************************
// Export DXF
// --------
// This function is a utility function

Hi,
Any ideas on how to turn the Format off while doing DXF export?
I have looked at the setSheetFormat but I would rather not replace the format with an empty one but prefer just to turn off.
Of course there is the solution of mapkey available

In your drawing, select the following:


1. Right click and hold in any blank area.

2. Select - Page Setup

3. Choose the sheet (left click on the line) that you want to hide the format

4. A radio button will become available that says, Show Format

5. Uncheck this box and select OK.

Bob

Thanks Bob.

Problem is that the mapkey works when having model on line.

I got it to work for all sheet as well

For an automation it is tricky as the mapkey does not run synchronously even though I open the drawing in a new Window the mapkey does not work via Web Link.

I might have to give up on that one.

Thanks

Hi all,

Christophe,

This is rather complicated way. If dimensions and other annotations are not needed and all you needed for dxf export wasview's geometry then new drawingfrom template with no format could be relatively easily created on the fly, populated with views from the drawing in question, exported to DXF and discarded. I don't know if it would be worst the effort.

HIH.

Feliks.

In Reply to Christophe Laudou:

Thanks Bob.

Problem is that the mapkey works when having model on line.

I got it to work for all sheet as well

For an automation it is tricky as the mapkey does not run synchronously even though I open the drawing in a new Window the mapkey does not work via Web Link.

I might have to give up on that one.

Thanks