.NET

.NET

Reply
Distinguished Contributor
pocketmerlin
Posts: 112
Registered: ‎08-24-2013
Message 1 of 4 (192 Views)
Accepted Solution

How to program plug-ins with dynamic, continual effects?

192 Views, 3 Replies
11-12-2013 03:34 PM

I've got a few months' experience tinkering with .NET programming for AutoCAD under my belt, and I feel like I have a decent understanding of how to do various basic one-time operations in the drawing space...

 

But now I find myself wanting to create things that are dynamic and self-updating...say, for example, a "custom" version of a GEOMCONSTRAINT operation or something that draws custom entities based on the properties of a Civil 3D object and then erases and redraws these entities whenever the Civil 3D objects are changed.

 

I'm kind of at a loss as to where I should start...I know that for performing one-time operations, transactions are the "vehicles" that get the job done...what is the "vehicle" I'm looking for here? (I'm hoping that what I'm describing is indeed possible?)

 

Thanks!

Distinguished Mentor
BlackBox_
Posts: 745
Registered: ‎02-25-2013
Message 2 of 4 (182 Views)

Re: How to program plug-ins with dynamic, continual effects?

11-12-2013 05:12 PM in reply to: pocketmerlin

Methinks you're after event handlers... The ability to 'hook' an ObjectModified event, evaluate what has been modified, and if the target Object type, or instance (your AECC* Object), then perform additional action(s) on another Object (your custom Object).

 

There are some specific rules to follow, generally speaking, but linking one Object to one degree or another, is not necessarily uncommon... I will say though, a great deal more information is needed to help with your specific topic.

 

Cheers



"Potential has a shelf life." - Margaret Atwood


Autodesk Exchange Apps ~ Autoloader ~ AutoCAD Security

Distinguished Contributor
pocketmerlin
Posts: 112
Registered: ‎08-24-2013
Message 3 of 4 (161 Views)

Re: How to program plug-ins with dynamic, continual effects?

11-13-2013 07:37 AM in reply to: BlackBox_

Aha...I thought it might have to do with that...going back and reading the developer's guide confirms this.

 

Guess I should have looked a little harder.

 

Thanks!

Distinguished Mentor
BlackBox_
Posts: 745
Registered: ‎02-25-2013
Message 4 of 4 (147 Views)

Re: How to program plug-ins with dynamic, continual effects?

11-13-2013 11:24 AM in reply to: pocketmerlin

No worries; we all start somewhere.

 

Cheers



"Potential has a shelf life." - Margaret Atwood


Autodesk Exchange Apps ~ Autoloader ~ AutoCAD Security

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.