petrbroz / vscode-forge-tools

Visual Studio Code extension for accessing Autodesk Forge services and content.
https://marketplace.visualstudio.com/items?itemName=petrbroz.vscode-forge-tools
MIT License
75 stars 17 forks source link

Using the "rename object" menu item will break the link between the object and any derivatives #47

Closed garethem closed 3 years ago

garethem commented 3 years ago

if you are tempted to rename an object to make it more meaningful after loading, there is a "rename object" selection available on the menu. Using this will lose the connection with any derivatives and seems to prevent doing actions like "translate object" on the renamed object.
The only solution is to reload the object from scratch

petrbroz commented 3 years ago

Thank you for bringing this up Gareth.

There is no close connection between designs in the Data Management service and their derivatives in the Model Derivative service. Derivatives are simply stored under the base64-encoded ID of their (original) design in OSS. When you rename the object, the derivatives are not lost or removed, it's just that the vscode extension (just like any other typical Forge application) starts querying the MD service with new ID for which there are no derivatives yet.

Having said that, I agree that this behavior may be a bit surprising, and I'll add a popup dialog with a warning.