Author Topic: Creating a Dictionary within BricsCAD  (Read 519 times)

0 Members and 1 Guest are viewing this topic.

theSurveyor

  • Mosquito
  • Posts: 2
Creating a Dictionary within BricsCAD
« 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.


It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8718
  • AKA Daniel
Re: Creating a Dictionary within BricsCAD
« Reply #1 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!

theSurveyor

  • Mosquito
  • Posts: 2
Creating a Dictionary within BricsCAD
« Reply #2 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.