bweir
2007-05-10, 08:46 PM
How can I create Custom Drawing Properties that keep the case of the string given?
I have a function that modifies the custom properties of a drawing to add a new property with a given value. My problem is that when the property is added the name is always created using lower case. This is a problem because I have another routine that creates text to show the values of the drawing properties and the field codes are expecting case sensitive names.
Here's a snippet of my code to create the custom property.
Dim Builder As New AcadDb.DatabaseSummaryInfoBuilder(Dwg.Database.SummaryInfo)
Dim Name as String = "My Prop"
Builder.CustomProperties.Add(Name, Value)
When I look in the Custom Properties "My Prop" has changed to "my prop". What's going on?
I have a function that modifies the custom properties of a drawing to add a new property with a given value. My problem is that when the property is added the name is always created using lower case. This is a problem because I have another routine that creates text to show the values of the drawing properties and the field codes are expecting case sensitive names.
Here's a snippet of my code to create the custom property.
Dim Builder As New AcadDb.DatabaseSummaryInfoBuilder(Dwg.Database.SummaryInfo)
Dim Name as String = "My Prop"
Builder.CustomProperties.Add(Name, Value)
When I look in the Custom Properties "My Prop" has changed to "my prop". What's going on?