Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone.
Do you think it is possible to memorize the data inserted in a form without using NOD?
Thanks a lot, bye.
Solved! Go to Solution.
Hi everyone.
Do you think it is possible to memorize the data inserted in a form without using NOD?
Thanks a lot, bye.
Solved! Go to Solution.
Hi,
It depends on the kind of storing
I have used the "dwgprops" custom category to store form information in the past. These properties are exposed to users. Link below
Hello and thanks for the replies.
I really think I'll have to use Xrecords connected to a NOD but I asked myself a question that I ask you too.
"Is it possible to create a NOD accessible only by my application and not by others? If yes, how?"
Thanks a lot, bye.
I don't think you can hide anything in a dwg file. Some user who digs around will find it and mess with it.
You could try "Properties.Settings"? Something like "MyAppnamespace.Properties.Settings.Default.somesetting".
That seems to work for text anyway (read / write).
Hi everyone.
I'm still evaluating the best solution for my case and I would like to ask you some questions.
How should I go about:
1. Connect a new XRecord to layer 0?
2. See the list of XRecords connected to layer 0?
3. Read all the XRecords connected to layer 0 or one in particular?
Thanks and sorry for the questions (for you they will be trivial) but I still have to learn a lot.
Bye.
Xrecords belongs to DBDictionaries and are accessible by their "name" (key) which is unique within the owner dictionary.
There's two kinds of dictionaries:
- named dictionaries that belongs to a DBDictionary (typically the Named Objects Dictionary which is the root dictionary for named dictionaries). As Xrecords they are accessible by their name.
- extension dictionaries that belongs to any DBObject.
So, to store some xrecords, you could either use the extension dictionary of the layer 0 or simply create a new named dictionary in the NOD.
You can find in this reply some extension methods to read/write xrecord data. These extension methods are extracted from a largest library: Gile.AutoCAD.Extension.
hello and thank you very much to all.