Author Topic: Question 30 goes here  (Read 36482 times)

0 Members and 1 Guest are viewing this topic.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Question 30 goes here
« Reply #90 on: February 21, 2006, 10:09:24 AM »
Thanks Luis,
Very generous of you, again ..

Regards
kwb
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

LUCAS

  • Newt
  • Posts: 32
Re: Question 30 goes here
« Reply #91 on: February 21, 2006, 07:33:58 PM »
Sorry Lucas;

But can not understand what you are trying to say.

What is the code you posted supposed to do? and by the way it is very easy to get rid of that reactor... is that your point?


Thanks.

;;the same function of your code
;;CODE FOR AUTOLOAD,BY LUCAS
(vl-load-com)
(vlr-pers (vlr-dwg-reactor
       NIL
       '((:vlr-enddwgopen . BEGIN)) ;ANYNAME
     )
)
(defun C:BEGIN_OPEN ()
  (alert "This is only a test")
  (princ)
)
(alert "This is only a test")
(princ)
Then make a protected separate namespace VLX, have our vlx place in the same folder as our drawing, load the vlx and saved the drawing and that's it....


LE

  • Guest
Re: Question 30 goes here
« Reply #92 on: February 21, 2006, 07:55:17 PM »
Then make a protected separate namespace VLX, have our vlx place in the same folder as our drawing, load the vlx and saved the drawing and that's it....

Yep... it does the same.... NOW I understand...  :-)

Now, use this:

Code: [Select]
(dictremove (namedobjdict) "VL-REACTORS")

Save the drawing and tell me if the message is gone ?

I am about to leave the office now... I'll check from home.

Cheers!

LUCAS

  • Newt
  • Posts: 32
Re: Question 30 goes here
« Reply #93 on: February 21, 2006, 10:28:59 PM »
After opened the dwg you can use the code (dictremove (namedobjdict) "VL-REACTORS") to remove the reactor. But how can we stop autoload before open dwg.
I mean how to stop the alert code.
The part of alert code-----can do any thing you like.

LE

  • Guest
Re: Question 30 goes here
« Reply #94 on: February 21, 2006, 10:41:44 PM »
After opened the dwg you can use the code (dictremove (namedobjdict) "VL-REACTORS") to remove the reactor. But how can we stop autoload before open dwg.
I mean how to stop the alert code.
The part of alert code-----can do any thing you like.


Hi Lucas;

I need to rebuild the test I did on my office, over there it was deleted the reactor and the alert message... you mean the ldata-> one no?

I'll be back...

LE

  • Guest
Re: Question 30 goes here
« Reply #95 on: February 21, 2006, 10:55:25 PM »
After opened the dwg you can use the code (dictremove (namedobjdict) "VL-REACTORS") to remove the reactor. But how can we stop autoload before open dwg.
I mean how to stop the alert code.
The part of alert code-----can do any thing you like.


Just by renaming, the VLX or opening the drawing from another folder... then call the part to kill the alert code.

LUCAS

  • Newt
  • Posts: 32
Re: Question 30 goes here
« Reply #96 on: February 21, 2006, 11:46:24 PM »
Opening the drawing from another folder….
=>The autoload code can load the vlx on the search path not just the folder of opening draw. (Test on r2005)

Just by renaming
=>we don’t know which vlx will be load.

LE

  • Guest
Re: Question 30 goes here
« Reply #97 on: February 22, 2006, 12:14:22 AM »
Yes... I see your point...
« Last Edit: February 22, 2006, 09:14:55 AM by LE »

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Question 30 goes here
« Reply #98 on: February 22, 2006, 12:43:13 AM »
I know it's only Wednesday afternoon, but it's been a long week ..

Quote
... come up with a solution.

solution To what ?

Exactly what is the problem ?

kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

LE

  • Guest
Re: Question 30 goes here
« Reply #99 on: February 22, 2006, 09:09:49 AM »
Wait... I just went to buy my coffee of the day.... 6:08AM Wendsday

I'll be back...

LE

  • Guest
Re: Question 30 goes here
« Reply #100 on: February 22, 2006, 09:21:13 AM »
Opening the drawing from another folder….
=>The autoload code can load the vlx on the search path not just the folder of opening draw. (Test on r2005)

Remember that the VLX routine will be required to be loaded first and then the drawing needs to be saved first in order to be able the next time, that drawing is opened to autoload the VLX.

So, the harm can be done from any type of file loaded, not just by using this approach... if that is what someone would want to do...

Quote
Just by renaming
=>we don’t know which vlx will be load.

Same, as my comment above.... it can be using any type of file....


Have fun;
Luis.

LE

  • Guest
Re: Question 30 goes here
« Reply #101 on: February 22, 2006, 09:22:26 AM »
Exactly what is the problem ?

None... Kerry  :kewl: