Skip to main content
1-Visitor
September 20, 2020
Question

Export2DOption

  • September 20, 2020
  • 1 reply
  • 3851 views

Hi,

I'm trying to export creo drawing to dxf with WebLink application, but I don't know how to use pfcExport2DOption. For PDF there's a documented way how to use options:

var expInstructions = pfcCreate("pfcDXFExportInstructions").Create();

var expInstructions = pfcCreate("pfcPDFExportInstructions").Create();

var pdfOptions = pfcCreate("pfcPDFOptions");

...

expInstructions.Options = pdfOptions;

But for DXF (pfcExport2DOption) can't find a way to pass options to export instructions.

1 reply

17-Peridot
September 21, 2020

A mapkey may be an option to set your options - assuming they are available via the UI.

 

dave

pawel_j1-VisitorAuthor
1-Visitor
September 21, 2020

Thanks, but I'd expect some programmable solution, like for PDF export. I see there's an CS19626 article about this but unfortunately I don't have subscription.

17-Peridot
September 22, 2020

Technically... Mapkeys are a programmable solution... you can parameterize and execute them in your code - they are just not a "native call" to the kernel via a focused API.  Mapkeys, while not elegant - can often fill the gaps in the API that the UI seems to present options for - hence the recommendation.