Print Page | Close Window

Autocad drawing convert to script

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=12358
Printed Date: 01.Jun.2026 at 06:20


Topic: Autocad drawing convert to script
Posted By: pavlos_x
Subject: Autocad drawing convert to script
Date Posted: 28.May.2017 at 08:04
Hello this is my first post, i am looking to convert the attached autocad file to script so i will be able to use the commands to convert to php in order to output and download again the schematic as dxf file.
 
uploads/729122/MDB1.dwg" rel="nofollow - uploads/729122/MDB1.dwg



Replies:
Posted By: Kent Cooper
Date Posted: 30.May.2017 at 15:18
Rather than going by way of PHP, can you just make a .DXF file of it directly with AutoCAD's own tools for that?  That is, use SAVEAS and choose the DXF file format?  Or the equivalent DXFOUT [not documented in Help for later versions, but still there]?
 
If not, do you mean the same thing by "script" as AutoCAD does?  [It has a specific meaning in AutoCAD, but I have known people to use it in a more generic way.]  A Script [.SCR] file could presumably be written that would draw that drawing again, but it would be a powerfully long Script, and it's hard to imagine how to automate the conversion from the .DWG file, since no record is kept of the command sequence, only the resulting drawing entities.  But if the only reason you want to do that is to end up with a .DXF file, see the first paragraph.



Print Page | Close Window