Conditional plug-in load

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello!
I'm trying to get my plug-in to successfully load its commands only if certain parameters are met like a prefix in the DWG file name. (I know I would have to use GETSYSTEMVARIABLE("DWGNAME") ) I haven't been able to implement a restriction successfully.
Also, is there a way to load a plug-in only within the scope of a document and not the entire AutoCAD executable?
This way, if the user has open document A and it's not a valid document of use of the plug-in, he won't be able to use the commands, but if he loads document B with a valid format (name prefix), the plug-ing will automatically load for the document B intance only. Is this possible?
(Working with AutoCAD 2010 and .net 3.5)
P)lease let me know if it's not possible under that configureation but it is for other configurations.
Thanks in advance.