Message 1 of 7
checking selection set for similar items

Not applicable
02-21-2001
10:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hoping some one can give me some insight into how to do this in vb. I'm a
relatively new vb programmer.
I have a selection set of mtext objects. The text string of these objects
is in the following format: (4-EACH) MAPLE TREE
I'm doing a BOM takeoff for all of these labels and what I need to do is
combine the labels of similar items together so that I have a grand total of
each item in the drawing in my output file. For clarification: I have the
following labels in my drawing (4-EACH) MAPLE TREE, (2-EACH) MAPLE TREE,
(9-EACH) MAPLE TREE. In my output file, I don't want to have three separate
lines for the maple tree I only want one: 15 Maple Trees. How can I loop
through the selection set to determine if I have more than one type of item
in the set. I'll have to do some type of string parsing to retrieve the
number and the actual item.
Thanks,
Ryan
relatively new vb programmer.
I have a selection set of mtext objects. The text string of these objects
is in the following format: (4-EACH) MAPLE TREE
I'm doing a BOM takeoff for all of these labels and what I need to do is
combine the labels of similar items together so that I have a grand total of
each item in the drawing in my output file. For clarification: I have the
following labels in my drawing (4-EACH) MAPLE TREE, (2-EACH) MAPLE TREE,
(9-EACH) MAPLE TREE. In my output file, I don't want to have three separate
lines for the maple tree I only want one: 15 Maple Trees. How can I loop
through the selection set to determine if I have more than one type of item
in the set. I'll have to do some type of string parsing to retrieve the
number and the actual item.
Thanks,
Ryan