I'm struggling to create a drawing specific dictionary of strings.
I have blocks that I'm inserting which will obey the properties of certain types. These types can be edited per drawing, so aren't predefined.
I've looked into the NOD, but so far I've only used it for xrecords, whose data isn't keyed. I was hoping to not have to create a new xrecord for each type, but rather store the information in a dictionary that can manipulated by the user.
I've seen and used DBDictionaries, but they appear to only accept DBObjects which strings are not. The first thing I want to store against a key is a hatch pattern background colour.
If there's a better way of doing what I'm looking for, I'm open to suggestions.
Thought, it might be interesting for you as a possible solution:
Use a dictionary to house an XRecord which contains a single string. House the entire set of dictionaries under its own dictionary to avoid conflicts with other dictionaries.
Thanks for your replies. I've ended up doing this:
to set the dictionary, and this:
to retrieve it (lots of WriteMessages because debugging complains about symbols).
It's an Xrecord in the NOD, which has a DBDictionary of single value Xrecords in it. Just tested it and it works. Now I'm going to manipulate the list with the GUI...
Start with some of our most frequented solutions to get help installing your software.