How to uniquely identify the Original and Copied Models in Autodesk Inventor

How to uniquely identify the Original and Copied Models in Autodesk Inventor

pts_user
Contributor Contributor
433 Views
3 Replies
Message 1 of 4

How to uniquely identify the Original and Copied Models in Autodesk Inventor

pts_user
Contributor
Contributor

Hello everyone,

 

I'm facing a situation where I am copying a model and need to distinguish between an original Inventor model and its copied model.

Upon copying a model, I require a unique identifier that can differentiate between the original and the copied instance.

 

Upon digging into the APIs, I noticed that certain attributes such as internal name, revision ID, DatabaseRevision ID, and others remain consistent even after the model has been copied.

 

Please let me know a way if there is any to uniquely differentiate between the original and copied models.

 

0 Likes
434 Views
3 Replies
Replies (3)
Message 2 of 4

jewol
Explorer
Explorer

It would depend on if you modify the saved instances. If you do the InternalName will be the same as the original file but the revisionID and the DatabaseRevisionID will be different than the original.

 

Of note even just changing an iproperty and saving will cause the revisionID and DatabaseRevisionID to change so that could be an option for you.

0 Likes
Message 3 of 4

pts_user
Contributor
Contributor

Hi @jewol,

 

I am getting the different revisionID and DatabaseRevisionID if I modify the model.

But I don't want to modify it. I want to get the difference if model is copied.

Is there any way for that?

0 Likes
Message 4 of 4

jewol
Explorer
Explorer

If you are doing the copy through iLogic an option would be to make the file "Dirty" then save it. This will also change the RevisionID and DatabaseRevisionID.

Dim doc = ThisDoc.Document
doc.Dirty = True
doc.Save

 No change is made to the model but the RevID and DRevID change when I tested this. If this is not a solution to the problem maybe give us a few more details on what you are doing and the result you are looking for so we can find an answer that works for you.

0 Likes