Kenter Posted August 5, 2010 Posted August 5, 2010 I found this bit of code but am unsure what version of autocad .dxf it will save in. (SETQ cnc-name (strcat "k:/" (getvar "DWGNAME"))) (command "saveas" "DXF" "16" cnc-name) (command "saveas" "r14" cnc-name) Any one have an idea?? I want to save in 'AutoCAD 2000/LT2000 DXF (*.dxf)' and in a specific location. Kenter Quote
Lee Mac Posted August 5, 2010 Posted August 5, 2010 Hi Kenter, I would be inclined to use something like this: (defun save ( filename ) (vl-load-com) ;; © Lee Mac 2010 (not (vl-catch-all-error-p (vl-catch-all-apply (function vla-saveas) (list (vla-get-ActiveDocument (vlax-get-acad-object) ) filename ac2000_dxf ) ) ) ) ) Call with a valid filename. Quote
ReMark Posted August 5, 2010 Posted August 5, 2010 Source: R.K.McSwain v2000 = 15.0 v2000i = 15.1? (guess) v2002 = 15.2? (guess) v2004 = 16.0 v2005 = 16.1 v2006 = 16.2 v2007 = 17.0 v2008 = 17.1 v2009 = 17.2 v2010 = 18.0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.