Message 1 of 3
Not applicable
08-03-2012
11:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to uniquely identify a Revit model (get a project's GUID), which I presume would mean using a Document's UniqueId. The following returns the same string, regardless of what model is active:
uiApp.ActiveUIDocument.Document.ProjectInformation.UniqueId;
... where uiApp is the UIApplication from ExternalCommandData.Application. I've also noticed that the string returned is the same even between Revit sessions and creating new projects from scratch.
Any help would be appreciated!
Solved! Go to Solution.