Message 1 of 8
Creating Objects

Not applicable
05-03-2001
04:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I know I can create my own custom objects and collections using class
modules. Can you create a displayable custom AutoCAD object and insert it
into a drawing?
I'd like to be able to draw "widget" object (say a displayable line) that
has all the properties of a line object (like layer, linetype, and geometry
data), but also has other properties and methods, like .density or
.materialtype. I know I can attach Xdata to objects (like dictionaries),
but I'd like to encapsulate these properties for easy code manipulation.
I hope I am making sense to someone.
So, can you do this in VBA? If not, what is the right tool to create these
new objects?
Thanks, Brian
I know I can create my own custom objects and collections using class
modules. Can you create a displayable custom AutoCAD object and insert it
into a drawing?
I'd like to be able to draw "widget" object (say a displayable line) that
has all the properties of a line object (like layer, linetype, and geometry
data), but also has other properties and methods, like .density or
.materialtype. I know I can attach Xdata to objects (like dictionaries),
but I'd like to encapsulate these properties for easy code manipulation.
I hope I am making sense to someone.
So, can you do this in VBA? If not, what is the right tool to create these
new objects?
Thanks, Brian