Author Topic: Application Level Events  (Read 9186 times)

0 Members and 1 Guest are viewing this topic.

ML

  • Guest
Application Level Events
« on: November 04, 2004, 07:50:53 PM »
Hello

This may seem like a silly question but

I was wondering, if you create an Application or document level event, does that Module need to be loaded into each users startup suite or is there an easier way?

Thank you

Mark

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Application Level Events
« Reply #1 on: November 04, 2004, 09:16:05 PM »
It should be defined in the acad.dvb and it will be loaded automatically. One word of caution, the VBA object model is never loaded until you either manually execute a vba command or open the VBAIDE ... meaning reactors will not work until one of those two things happen...

To get around that, create a dummy VBA sub called silly enough "dummy"
then in the acad.lsp,  acaddoc.lsp, acadapp.lsp or other automatically loaded lisp, have it call the vba program "dummy"
"dummy" needs to do nothing. It can be as simple as:
Code: [Select]

Sub Dummy ()
'I do absolutely nothing
End Sub

When it is called it will initialize the VBA object model and events will fire.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

ML

  • Guest
Application Level Events
« Reply #2 on: November 04, 2004, 09:58:51 PM »
Ok,

Let me see if I have this straight
First off, I never used The acad.dvb file.
Do we create the individual Modules in The Acad.dvb project?

Then, you are saying that The Event Reactors will not do anything unless there is a VBA Module to sort of jump start VBA, hence The Dummy Module?

OK, I will try this. Keith, can you give me the code that will call dummy from Lisp?
If it like startapp etc. etc. or something like that?

I really appreciate it

Mark

TR

  • Guest
Application Level Events
« Reply #3 on: November 08, 2004, 08:54:07 PM »
Keith couldn't he use acad.rx to load acadvba.arx?

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Application Level Events
« Reply #4 on: November 09, 2004, 08:39:58 AM »
You know... that would likely work...I am glad you thought of it...
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

TR

  • Guest
Application Level Events
« Reply #5 on: November 09, 2004, 09:13:25 AM »
I can't take credit for it. I saw it somewhere in my travels on the internet. I have been using this method for a while though.

ML

  • Guest
Application Level Events
« Reply #6 on: November 09, 2004, 07:01:04 PM »
So, what exactly do you load Tim? I'm sorry, I am not very familiar with arx files

Thank you

Mark

MikePerry

  • Guest
Application Level Events
« Reply #7 on: November 09, 2004, 07:11:54 PM »
Hi

Check out the following Technical Documents on the Autodesk web site under the Knowledge Base section -

ID: TS66360 - Files that can be created by users

ID: TS28079 - Order of support file loading when starting the program

+

Take a look at "acad.rx" within the AutoCAD Online Help File [F1] contains a pretty good explanation on how to use this file and what it's used for.

Have a good one, Mike

ML

  • Guest
Application Level Events
« Reply #8 on: November 09, 2004, 07:16:12 PM »
Thanks Mike,

I appreciate it

Mark

ML

  • Guest
Application Level Events
« Reply #9 on: November 10, 2004, 07:34:05 PM »
I am curious about this ACAD.rx
What exactly does that do?

Will it get The Acad.dvb going without needing a second Lisp routine to call it up?

Thank you

Mark

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Application Level Events
« Reply #10 on: November 10, 2004, 07:42:15 PM »
Yes
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

ML

  • Guest
Application Level Events
« Reply #11 on: November 10, 2004, 07:45:53 PM »
Dam Keith

You always make me post a second question LOL, nonetheless, I really appreciate it

So, can this acad.rx be loaded automatically upon startup? Do I still code the acad.dvb file as well?

Thank you

Mark

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Application Level Events
« Reply #12 on: November 10, 2004, 07:48:35 PM »
the acad.rx olny loads the ARX modules at startup, it has absolutely nothing to do with VBA, EXCEPT that you can make it load the acadvba.arx module, thereby enabling VBA without accessing VBA first, it also can load arx modules from other developers as well.... follow the conversation will ya....
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

ML

  • Guest
Application Level Events
« Reply #13 on: November 10, 2004, 07:58:08 PM »
What conversation? Tim said he loads The acad.rx, you said go catch and that was it LOL

Anyhow, do you load that file (acad.rx) via a lisp routine, do you put it in Startup suite, do I figure it out myself, do I post 5 more questions?  LOL

 :D  :D  :D  :D  :D

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Application Level Events
« Reply #14 on: November 10, 2004, 08:04:20 PM »
you don't load it at all, open it up in notepad, type acadvba.arx in it on the last line,  save it and that is all....
You are making this a million times more difficult than it is....
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie