Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...