Hello,i am making a control application,i want to do a function called "new file" like in navisworks,so if i have open a nwd file and add it into the application,then i want to create a new,empty environment,what kind of things should i release?or i just use Application.MainDocument.clear() is ok?
TKS~~~~
hi,
yes, I think you are correct. from help doc, this method deletes entire contents of document, returning to default (untitled, empty) state.
Hi,Mr.Liang
so what about the MainDocument?the doc says it can't be change during the lifetime,what is the difference between the maindocument and activedocument?
in the vs' monitor,the maindocument is the same as activedocument
and another additional question ,not about the api ,i've heard the navisworks 2014 is coming this month?
Hi,
Navisworks is still SDI (single document) currently. The MainDocument is always the same as the ActiveDocument. If the development of Navisworks is improved to work with MDI(multiple documents) in the future, this will imply that the ActiveDocument may not always reference the same object, like AutoCAD.
yes, as I know.
In addition, if you have any new questions which are not related with the orignal, please log a new post. The forum intends to be a knowledge base for global developers. A clear discussion history would be helpful. Thank you 🙂