Author Topic: lisp not loading at startup  (Read 3396 times)

0 Members and 1 Guest are viewing this topic.

andrew_nao

  • Swamp Rat
  • Posts: 566
Re: lisp not loading at startup
« Reply #15 on: July 09, 2009, 10:02:22 AM »
With every new release the behaviour of existing commands may change. So when certain commands (for example EXPLODE) are issued in the Lisp routine, they may not behave as in previous version.  The workaround is to add (initcommandversion 2) before the command is called. You can try this:
Code: [Select]
(defun s::startup ()
(if (ssget "X" '((0 . "MTEXT")))
(progn
; (setvar "qaflags" 1)
[color=red](initcommandversion 2)[/color]
(command "._explode" "P" "")
; (setvar "qaflags" 0)
)
)
(princ)
)

BTW... I wonder why you are turning off the grips? If you start a new drawing it seems to me that nothing is selected...
thanks Crank ill give this a try

as for the qaflags i read that they are usefull if i wanted to explode a selection set. maybe i misunderstood it.
and for some reason if i were to run my original explode mtext code without the qaflags, my custom ddedit lisp wouldnt work properly

ill let ya know how this worked out
thanks again


adding the initcommandversion did the trick
thanks again
« Last Edit: July 09, 2009, 10:08:30 AM by andrew_nao »

Crank

  • Swamp Rat
  • Posts: 1446
Re: lisp not loading at startup
« Reply #16 on: July 09, 2009, 04:02:49 PM »
Keith is right: this was introduced with Acad2009 (though VLIDE shows the same built number as 2008...)

From the help:

 Vault Professional 2018     /      Building Design Suite Ultimate 2017     /     AEC Collection 2018 + 2019 +2020