You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like
When loading the 3D model, it should be possible to automatically select a specific part identified by its name, passed as an argument in the URL. This feature will allow directing the user to a predefined view that highlights a particular part without requiring manual selection.
How I implemented it to meet my immediate need
In website.js, the OnModelLoad() function triggers after the model loads.
At its end, I added a call to PreselectMesh() (self implemented), which retrieves the URL argument using GetPartSettings() and StringToPartSetting() (self implemented) in parameterlist.js.
It then calls GetMeshIdByName() (self implemented) in model.js and finally invokes SetSelection() (already implemented) to select the desired mesh.
If you are interested in this feature i would gladly help implement it following your guidelines.
The text was updated successfully, but these errors were encountered:
Describe the solution you'd like
When loading the 3D model, it should be possible to automatically select a specific part identified by its name, passed as an argument in the URL. This feature will allow directing the user to a predefined view that highlights a particular part without requiring manual selection.
How I implemented it to meet my immediate need
In website.js, the
OnModelLoad()
function triggers after the model loads.At its end, I added a call to
PreselectMesh()
(self implemented), which retrieves the URL argument usingGetPartSettings()
andStringToPartSetting()
(self implemented) inparameterlist.js
.It then calls
GetMeshIdByName()
(self implemented) inmodel.js
and finally invokesSetSelection()
(already implemented) to select the desired mesh.If you are interested in this feature i would gladly help implement it following your guidelines.
The text was updated successfully, but these errors were encountered: