gedkins
Mechanical
- May 11, 2001
- 45
Folks,
Somewhat of a philosophical question.
Since Custom Property names are case sensitive regarding capture via VB &
VBA does anyone have a nice clean way of "looking past" the case of a
property to grab the value regardless of how it was defined originally
(example: Cost, cost, COST,etc). var1 =
ModelDoc.GetCustomInfoValue(ConfigName, "COST" would miss the prop Cost.
I have a method I use but feel its somewhat clunky (read slow). The
philosophical part of this is that if one used a software tool to define the
custom props at part creation they would all be uniform case and the problem
is solved, but alas we all know there are always exceptions!
Thoughts.... ruminations?
Guy Edkins
Managing Partner
Delta Group Ltd
gedkins@deltagl.com
Somewhat of a philosophical question.
Since Custom Property names are case sensitive regarding capture via VB &
VBA does anyone have a nice clean way of "looking past" the case of a
property to grab the value regardless of how it was defined originally
(example: Cost, cost, COST,etc). var1 =
ModelDoc.GetCustomInfoValue(ConfigName, "COST" would miss the prop Cost.
I have a method I use but feel its somewhat clunky (read slow). The
philosophical part of this is that if one used a software tool to define the
custom props at part creation they would all be uniform case and the problem
is solved, but alas we all know there are always exceptions!
Thoughts.... ruminations?
Guy Edkins
Managing Partner
Delta Group Ltd
gedkins@deltagl.com