Jump to content

Things to watch-out on LISP for 2008 vs 2014?


shailujp

Recommended Posts

Hello,

 

A question to LISPers

 

I will be getting 2014 soon (few months from now though) and I would like to know if all my existing LISP that are currently being used on 2008 will work in 2014 as is or I will need to modify & make it compatible with newer version.

 

If you guys know anything that I can start looking at it now so that I don't struggle at the time of the roll out.

 

What are the things to watch-out? What will work and what might need modification ?

Link to comment
Share on other sites

It depends on how your programs are written - for example, if your programs are using many calls to in-built AutoCAD commands, the prompt order for such commands may have changed between 2008 & 2014, causing the programs to fail. Sometimes this is resolvable using the initcommandversion function, but not always.

Link to comment
Share on other sites

It depends on how your programs are written - for example, if your programs are using many calls to in-built AutoCAD commands, the prompt order for such commands may have changed between 2008 & 2014, causing the programs to fail. Sometimes this is resolvable using the initcommandversion function, but not always.

 

I know most of the simple LISP that I have created, they uses standard AutoCAD commands. I will have to keep a check on this. Thank you !!!

Link to comment
Share on other sites

There are some new features that may also be a factor in your initial setup, such as AutoCAD Security that you'll need to account for; see the link in my signature for more information.

 

Aside from that, the only other obvious aspect to me, might be any call to get AutoCAD's Product Key... This is what I use to support legacy, and current versions (I use 2014 now too):

 

http://forums.augi.com/showthread.php?149105-Managing-the-auto-updates-with-60-users!!!&p=1226657&viewfull=1#post1226657

 

(vl-load-com)

(defun c:InfoCenterOff ()
 (princ "\rINFOCENTER: ")
 (princ
   (vl-registry-write
     (strcat
       "HKEY_CURRENT_USER\\"
       [color="red"](if vlax-user-product-key                                       ; If 2013
         (vlax-user-product-key)                                       ; Use 2013 function
         (vlax-product-key)                                            ; Use legacy function
       )[/color]
       "\\InfoCenter"
     )
     "InfoCenterOn"
     0
   )
 )
 (princ)
)

 

 

Cheers

Link to comment
Share on other sites

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...