- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have been experiencing following issue:
Depending on the way I extract ModelItems from NavisWorks I get different amount of Information and exspecially different "LcRevitId" Values for the same ModelItem. For me it happens if I use CableTrayFittings. When I use Seach class I get the actual Revit Id:
If I use
ModelItemCollection selectionModelItems = new ModelItemCollection();
Autodesk.Navisworks.Api.Application.ActiveDocument.CurrentSelection.SelectedItems.CopyTo(selectionModelItems);
I get a different Id for the same Element
Two Questions:
1) What is the Reason for this and why does it on ly happen to certain Element Categories: For example it does not happen for CableTrays
2) What I have been doing so far is Quering all the Items with the Search class and then to mapping the two modelItems, the only thing I found that might works is to check if the bounding boxes are the same. Are their any better options on how to map the ModelItems?
Solved! Go to Solution.