Anyone experienced can help me?

Anyone experienced can help me?

adaptacad
Advocate Advocate
934 Views
7 Replies
Message 1 of 8

Anyone experienced can help me?

adaptacad
Advocate
Advocate

Hi everyone, I have a strange doubt and I do not know if it is possible.
I made a plugin with about 15 lsp and the company I work will distribute to an affiliate, but she asked me to make a version that only worked 30 days, how to do that? and how to add a password efficiently?
I will attach the way I thought and tell me the opinion of you:

30 day version
(setq CorrenteMes   (atof (substr (rtos (getvar "CDATE") 2 10) 1 6)))
Password
(while (not (equal (getstring "\nPassword: ") "PASSWORD")))
0 Likes
Accepted solutions (1)
935 Views
7 Replies
Replies (7)
Message 2 of 8

pbejse
Mentor
Mentor

@adaptacad wrote:

Hi everyone, I have a strange doubt and I do not know if it is possible.
I made a plugin with about 15 lsp and the company I work will distribute to an affiliate, but she asked me to make a version that only worked 30 days, how to do that? and how to add a password efficiently?
I will attach the way I thought and tell me the opinion of you:

30 day version
(setq CorrenteMes   (atof (substr (rtos (getvar "CDATE") 2 10) 1 6)))
Password
(while (not (equal (getstring "\nPassword: ") "PASSWORD")))

Password prompt per usage? or just prompt once then expires in 30 days? 

 

 

 

 

Message 3 of 8

adaptacad
Advocate
Advocate

Hi @pbejse
The intention would be to have the password requested once, and with 30 days the plugin disappears.

0 Likes
Message 4 of 8

adaptacad
Advocate
Advocate

But there are some details, the plugin has a toolbar,
.MNU format, how to load this with a LISP?
The intention is to make sure that when loading lisp (VLX) into APPLOAD, it also loaded this toolbar (.mnu) and requested the password, after that done the plugin works for only 30 days.
"I'm lost on how you can do this!" and also after autocad is closed and open, how to do?
  any idea will be welcome.

0 Likes
Message 5 of 8

Kent1Cooper
Consultant
Consultant

Do some Searching for words like password or time limit.  This has come up before.

Kent Cooper, AIA
Message 6 of 8

pbejse
Mentor
Mentor
Accepted solution

@adaptacad wrote:

But there are some details, the plugin has a toolbar,
.MNU format, how to load this with a LISP?
The intention is to make sure that when loading lisp (VLX) into APPLOAD, it also loaded this toolbar (.mnu) and requested the password, after that done the plugin works for only 30 days.
"I'm lost on how you can do this!" and also after autocad is closed and open, how to do?
  any idea will be welcome.


 

What you need is an MSI installer Autodesk Autoloader White Paper

Then write a routine inside the program that re-write itself and all the supporting files to empty ones.

[shhh, that's our own little secret ]...

 

 

Message 7 of 8

adaptacad
Advocate
Advocate

thank you @pbejse

I'll study calmly, but what I saw, it seems that will answer me !!! I'm going to study more, and to do anything I go back here.

0 Likes
Message 8 of 8

pbejse
Mentor
Mentor

@adaptacad wrote:

thank you @pbejse

I'll study calmly, but what I saw, it seems that will answer me !!! I'm going to study more, and to do anything I go back here.


Go for it adaptacad, and you are welcome.