Message 1 of 2
Modules and CommandMethods

Not applicable
04-08-2008
10:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm using VB for development with the .NET api. In VB, a module is in fact a
disguised notinheritable and not creatable class with only shared members.
So, I've tried to declare command methods in modules and this seems to
work... so far.
One advantage of doing this is not having to type "Shared" and the second is
that you cannot *forget* to add "Shared" (in which case AutoCAD creates a
new instance of a class for every document). Still I wonder if anybody
ever had any problems doing this, some snake in the snodgrass, say. Thanks
for any information on this.
disguised notinheritable and not creatable class with only shared members.
So, I've tried to declare command methods in modules and this seems to
work... so far.
One advantage of doing this is not having to type "Shared" and the second is
that you cannot *forget* to add "Shared" (in which case AutoCAD creates a
new instance of a class for every document). Still I wonder if anybody
ever had any problems doing this, some snake in the snodgrass, say. Thanks
for any information on this.