Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [V8i C++] Reading ElementID's from nested Reference Files

$
0
0

That information is saved in the App Settings for the current active model. I maintain an "in-memory" set of data during a session. When the model is closed, a callback writes that information to a specific XAttribute that is saved via ApplicationSettings::SaveSetting(). In my "in-memory" data, I keep the Attachment ID and modelRef for each reference file, and add/remove that information as reference files are added/removed. I need the Attachment ID because if you open/close the current model, you are not guaranteed that the reference file's modelRef will be the same, where as the Attachment ID is... As a new model is opened, the App Settings are read and the Atachement ID's are compared to the attachment IDs of all currently found reference files. If there is a match, the saved modelRef is replaced by the current modelRef.


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>