Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

export windows metafile to autocad

kooka
Beginner
917 Views

hi everybody, I created a windows metafile file based on my program data, but i was tinking to export my file to autocad, autocad imports the file as a block, so i need to explode it. To do that i need to apply some autocad commands, the question is: how do i vincule autocad with my program to execute some autocad commands like explode or create layers.

Thanks for your answers

0 Kudos
1 Reply
sabalan
New Contributor I
917 Views

Ipresume that you want to do this with a Fortran program, right? In that case you have to know the AutoCAD command syntaxes for various drawing operations. You find those commands in manuals and you can see some of them in the command window while you are drawing. Then you can in the Fortran program WRITE those commands in lines inside your file which can then be RUN as a script in AutoCAD. The following shows some example of such script lines:

LAYER N 2 C 2 2 S 2

Pline 12.127,178.035

W .25 .25 776.876,178.035

Layer N 3 C 3 3 S 3 L HIDDEN2 3

Pline 724.266,177.658

W .25 .25 724.266,178.035

Line 713.139,176.996

713.139,178.035

Remember that spaces mean Enter in AutoCAD and you have to WRITE at the end of some lines which need to be Entered.

0 Kudos
Reply