TheSwamp

CAD Forums => CAD General => BricsCAD Users => Topic started by: theSurveyor on March 09, 2024, 10:48:25 PM

Title: Creating a Dictionary within BricsCAD
Post by: theSurveyor on March 09, 2024, 10:48:25 PM
I'm trying to create a dictionary, using .NET, to hold several values that I will need to use during the life of a drawing. While I have found information on the subject, I have not been able to get the code to work.

Basically, what I want to do is create a dictionary e.g., MyDict and store several keys and values, e.g., "Project", "New", and recall the value of "Project" later on.

I would appreciate any assistance that would allow me to implement the Dictionary.

Title: Re: Creating a Dictionary within BricsCAD
Post by: It's Alive! on March 10, 2024, 09:54:50 AM
This should be in the .NET section of you want to use .net

Though, if you just want to store a few variables, I recommenced using the custom section in DWGPROPS
it's also easy to access the via API's easily

You can also link fields to these custom properties..

Welcome to the swamp!
Title: Creating a Dictionary within BricsCAD
Post by: theSurveyor on March 11, 2024, 03:47:33 AM
Thanks for your suggestion. I've used the DWGPROPS before, so I am familiar with the method.