Reactors to fix add-ons
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Reactors to fix add-ons

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization
Author Message
Clarence
Guest





Posted: Thu Apr 07, 2005 9:26 pm    Post subject: Reactors to fix add-ons Reply with quote

I don't know much about reactors, but I want to learn more about them. And I have a few questions to see if it would be beneficial or not. I'm running A2K5 and Land Desktop 2005.

I'd like to create reactors to fix some of the imperfections of Land Desktop.

1. Right now for drawing profiles, you can set the layer names in the default settings, but no other layer info. I want a reactor that will add color and linetypes to this.

2. I'm also having problems with Sheet Manager. It draws some storm/sanitary sewers with the north arrow pointing south. In this situation I would want the reactor to flip the view and profile so that my north arrow always points from 0 to 180 degress.

Are either possible? What are some good resources about reactors?

I'm reading what I can find on the net and in the ACAD_DEV.CHM.

Any comments/suggestions are more than welcome.

Back to top
Luis Esquivel
Guest





Posted: Thu Apr 07, 2005 10:31 pm    Post subject: Re: Reactors to fix add-ons Reply with quote

Clarence....

Quote:
1. Right now for drawing profiles, you can set the layer names in the
default settings, but no other layer info. I want a reactor that will add

color and linetypes to this.
Quote:

2. I'm also having problems with Sheet Manager. It draws some
storm/sanitary sewers with the north arrow pointing south. In this

situation I would want the reactor to flip the view and profile so that my
north arrow always points from 0 to 180 degress.
Quote:

Are either possible? What are some good resources about reactors?

There is nothing about reactors out there.... many of the open samples you
may find them doing a google search.

I think that might be good that someone could publish a book, panflet or
whatever with real world samples for normal and object reactors.....

What you are asking it is possible, the part for the SSM.... it is the hard
one.


LE.
Back to top
Clarence
Guest





Posted: Thu Apr 07, 2005 11:03 pm    Post subject: Re: Reactors to fix add-ons Reply with quote

thanks Luis!

I've been searching for sample after sample. I wish someone would write something about reactors too. I'd probably ask for their autograph with all the grief I'm experiencing trying to decipher potentially worthless code just to find something that MIGHT be useful!

yeah I think the SSM will be far from easy. So I'm going to focus on the easier one first.

I'd like to modify some code I found on this ng to create my layer altering reactor. (i'd like to thank Vince for posting this. I hope you don't mind that I am borrowing it for a foundation for my command reactor.) Could someone help me tweak this?

I have a slight understanding of the code, but don't know where to begin with callbacks. Help me?!

Re: Explode Reactor
I use this simple reactor to notify users when they activate the "Explode" command.

(vl-load-com)

(or DexplodeReactor (setq DexplodeReactor (VLR-Command-Reactor nil '((:VLR-commandWillStart . VinceEd::CommandWillStart)))))

(defun VinceEd::CommandWillStart (pReactor sCommandName / )
(if (= (car sCommandName) "EXPLODE")

(ALERT ".....You Have Activated The Explode Command.........Please Do Not Explode ATTRIBUTES, DIMENSIONS or HATCHES With This Option.....
...........Thank You For Your Cooperation..........!!!")

)
)

Just load the file on startup and it should work OK.

Regards,
Vince

reminder of my goal for this reactor:
i want to replace the explode command with the command that will draw the profiles in LDT. In the callback I want to somehow get it to change the color and linetypes of the LDT created Layers.

Back to top
Luis Esquivel
Guest





Posted: Thu Apr 07, 2005 11:24 pm    Post subject: Re: Reactors to fix add-ons Reply with quote

I wish I have Land Desktop... and time to play with it.....

LE.

Quote:

reminder of my goal for this reactor:
i want to replace the explode command with the command that will draw the
profiles in LDT. In the callback I want to somehow get it to change the

color and linetypes of the LDT created Layers.
Back to top
Clarence
Guest





Posted: Fri Apr 08, 2005 12:23 am    Post subject: Re: Reactors to fix add-ons Reply with quote

wait for 2006.......and i'm not playing with it....i'm customizing standards! :)

we're already creating a vba program to do my layer changes using layer states files. I am simply researching alternatives.

thanks for your assistance. time for me to read. and read some more.
Back to top
Clarence
Guest





Posted: Fri Apr 08, 2005 12:29 am    Post subject: Re: Reactors to fix add-ons Reply with quote

and thanks for all of your previous posts about reactors, Luis. I will try to refer to them first before coming back here.

i need to remember to search first and then post if I can't find anything.
Back to top
Clarence
Guest





Posted: Fri Apr 08, 2005 8:54 pm    Post subject: Re: Reactors to fix add-ons Reply with quote

i posted more info. in the LDT customize ng.

http://discussion.autodesk.com/thread.jspa?threadID=396173
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB