- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page