- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
just learning Revit API and I am trying to do a simple test addin.
1) Open a new Document, 2) Import a CAD file 3) Save it as a rvt file 4) Close the new Dosument and return to the old one.
If anyone has some pointers regarding the whole procedure please let me know. Right now I am trying step 1)
Using the NewProjectDocument() method. This method says that it needs a template to open. I found the directory where Revit has its rte template files but is there a method which return the file path in the API? I dont want to hardcode them.
Using the New->Project user interface command there is also a <None> option how can this be provided using the above method?
Regarding step 2) I see that the New->Project user interface command opens immediately a new unsaved document. But this is not happening with NewProjectDocument(). I have an empty document already open when I call the addin but the new document created by NewProjectDocument() does not show up.
Thanks in advance
Dimi
Solved! Go to Solution.