Unique field of Model item

Unique field of Model item

Anonymous
Not applicable
1,187 Views
6 Replies
Message 1 of 7

Unique field of Model item

Anonymous
Not applicable

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

0 Likes
1,188 Views
6 Replies
Replies (6)
Message 2 of 7

xiaodong_liang
Autodesk Support
Autodesk Support

Hi JohnHon,

 

Could you isolate and share a copy of the model? I'd like to take a look at the scenario you mentioned. Thank you!

0 Likes
Message 3 of 7

Anonymous
Not applicable

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!

0 Likes
Message 4 of 7

xiaodong_liang
Autodesk Support
Autodesk Support

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.

 

0 Likes
Message 5 of 7

Anonymous
Not applicable

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

0 Likes
Message 6 of 7

Anonymous
Not applicable

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.

 

 

0 Likes
Message 7 of 7

xiaodong_liang
Autodesk Support
Autodesk Support

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.

0 Likes