Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

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

Generate DXF file

  • Thread starter Thread starter LittleTome
  • Start date Start date
Status
Not open for further replies.
L

LittleTome

Guest
Hi, all


We can save drawing as DXF file and there are many export options to chose. At the same time we can use ProOutputFileWrite() to do this work, but I don't know how to use arg1, arg2 and arg3. Can we use the three args to implement the exportoptions like use" Save a copy..." ? Look forward to your replies. Thanks!


James
 
A simpler option may be to create a mapkey of saving as a DXF, and making it a toolbar icon.
 
NOOOOOO! Bad robertib, bad!


As a rule of thumb, if you can do it in Pro/TOOLKIT don't resort to using a mapkey. Mapkeys are too volatile between revisions and builds of Pro. Look at the documentation under Pro/TOOLKIT Objects->ProOutput->ProOutputFileWrite. It has a detailed explanation of which arguments you can use for a dxf file. Here is a code example I wrote for a dxf file:


pro_error = ProOutputFileWrite(pro_Drawing, pro_DxfFileName, PRO_DXF_FILE, NULL, NULL, NULL, NULL);


Patrick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top