How to stop load rountine from Bundle after first loading

How to stop load rountine from Bundle after first loading

majklha
Advocate Advocate
692 Views
2 Replies
Message 1 of 3

How to stop load rountine from Bundle after first loading

majklha
Advocate
Advocate

I have LSP in bundle directory. After run acad this "bundle" lisp make some initialization settings in current profile/current run autocad. Next way  my application will be started during menu file (mnl file). In this time I want to stop reading bundle for this version of acad. Is for this some method?

 

Thanks for help.

0 Likes
Accepted solutions (1)
693 Views
2 Replies
Replies (2)
Message 2 of 3

Scottu2
Advocate
Advocate
Accepted solution

Hello Majklha, 

 

Maybe try to change the way the Bundle lips operates.

Option 1: Add the question "Run Bundle routines now <No>: "

 

Option 2: Add file date and time comparison between two files. 

For example, if your routine loads and .MNU then AutoCAD creates new a .mnl.

The Bundle routine should first get the current date and time for the .mnu and .mnl files.

If the .mnl file has a later date and time than the .mnu file then exit the routine, otherwise continue to running the routine.

 

 

 

0 Likes
Message 3 of 3

majklha
Advocate
Advocate

Thanks

0 Likes