Message 1 of 15
What's best way to save this data?

Not applicable
12-07-2001
10:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm going to collect some info from objects in dwg.
In lisp I'd store it momentarily in a list of lists to be operated on later.
eg;
(setq lst
(list
((0 . "lyr1")(( lst1 lst2 ... lstn)))
((0 . "lyr2")(( lst1 lst2 ... lstn)))
((0 . "lyr3")(( lst1 lst2 ... lstn)))
)
)
lst1 lst2 ... lstn would each be in the form (for example)
(
(5 handle)
(10 pointlist)
(11 . real)
(12 . real)
(13 . real)
(14 pointlist)
(15 string)
(16 ename)
etc
)
assuming I'm only going to collect and then act on the info and don't need
to store it in the dwg persistently what kind of object would I want to use
in vb?
collections are just for objects right?
there are no lists per se in vb are there?
would i use arrays of arrays?
or can you have collections of variables?
whats the equivalent of an association list?
or do i need to store in like xrecords or???
or is this where classes come in so an association list would translate to
something like for example
class circle
properties center layer size elevation color - whatever else
where circle1 would be the equivalent of lst1 above
circle2 = lst2 circlen = lstn etc???
or user data type or is that the same as class?
sorry for my ignorance, I've just been reading and reading and searching
posts and archives but I can't seem to get it yet.
Thanks for any help
Mark
In lisp I'd store it momentarily in a list of lists to be operated on later.
eg;
(setq lst
(list
((0 . "lyr1")(( lst1 lst2 ... lstn)))
((0 . "lyr2")(( lst1 lst2 ... lstn)))
((0 . "lyr3")(( lst1 lst2 ... lstn)))
)
)
lst1 lst2 ... lstn would each be in the form (for example)
(
(5 handle)
(10 pointlist)
(11 . real)
(12 . real)
(13 . real)
(14 pointlist)
(15 string)
(16 ename)
etc
)
assuming I'm only going to collect and then act on the info and don't need
to store it in the dwg persistently what kind of object would I want to use
in vb?
collections are just for objects right?
there are no lists per se in vb are there?
would i use arrays of arrays?
or can you have collections of variables?
whats the equivalent of an association list?
or do i need to store in like xrecords or???
or is this where classes come in so an association list would translate to
something like for example
class circle
properties center layer size elevation color - whatever else
where circle1 would be the equivalent of lst1 above
circle2 = lst2 circlen = lstn etc???
or user data type or is that the same as class?
sorry for my ignorance, I've just been reading and reading and searching
posts and archives but I can't seem to get it yet.
Thanks for any help
Mark