Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Generate DXF file

LittleTome

New member
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
 
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
 

Sponsor

Articles From 3DCAD World

Back
Top