I want to do some processing on every model in a list of dgn files. I need to be able to do this in batch mode (initapps) as well as interactive mode.
I tried mdlDgnFileObj_traverseModelIndex, but the models are not actually made active, so when the processing uses mdlElmdscr_read, I still just get elements from the default model.
I have thought about using mdlSystem_exchangeDesignFileAndModel, but can't find a concise way to get the model names. I'm thinking this is my best bet, even if I have to use mdlDgnFileObj_traverseModelIndex to get the model names first. Speaking of which, is there something like the StringList for MSWChar strings?
The other idea I had was to use mdlDgnFileObj_getModelRefList, mdlModelRefList_get and mdlModelRefActivateAndDisplay. The problem with this is that it seems the "display" part of the function may not work so well for an initapp, and I can't find a better version of the function.
I am not looking for anyone to spend much time on this, but I thought some of you might be willing to give me some advice.
Thanks, John
John: Is there something like the StringList for MSWChar strings?
Yes: the ListModel and its children ListRow, ListColumn, and ListCell provide an excellent and much more capable substitute.
Regards, Jon Summers LA Solutions
Jon:
I never did thank you for this suggestion.
The funny thing is that I used one of these when I first got into v8, in conjection with a tree view. I had completely forgotten about them (stringlists are a little easier when they can do the job).
The ListModel worked perfectly! (And was easier than I thought it would be).