Hi all,
I am new joiner of naviswork Api.
I guess there is a unique field(say ElementId,Item-Guid,InstanceGuid) for every model item.
However, it seems that ElementId,Item-Guid,InstanceGuid are not unique for a complicated nwd file, especially those containing dwg file.
How can I access that unique field?
Thanks,
John
Thanks Xiaodong.
However, I cannot submit the model to you as it is a property of my company.
I will try to find the unique key in Sample viewer.
Thanks again!
Hi JohnHon,
I understand. I just wanted to get a demo to dig into such scenario. probably you could remove most models, remove the confidential information and keep the two objects which have the same guid. But I am not pushing you since it may be still difficult for you to share a copy 🙂
In addition, API uses the same properties which are visible in UI. If UI cannot find an unique object with an ID, it would be same to API. Then, you may have to consult in product board if there is any comment. But as far as I know, it seems no way except you add additional property (in term of a guid) to all objects yourself.
Hi,
We have experienced the same issues. I've added a simple file where we cannot find a unique key for the objects in the properties of the objects. This file is created by creating multiple instances of a linked Revit file. In our daily work we come across these type of models.
I'm curious to see how you would uniquely identify each object.
greetz mark den heijer
Hi greetz mark den heijer,
Yes! Our situation are almost the same.
Xiaodong, could you help us to see whether there is an unique key /unique keys for an element?
Currently, I am using partition(file name),layer, Element Id and Guid for my unique keys.
Hi all,
thanks for the good question (actually we are frequently asked). As far as I know, we still have to live on the specific attribute of the specific file format, as you have known. For Revit file, you could take advantage of InstanceGuid.
Sorry, I have not a further informationa this moment, but I have made a note.