Trimble Connect User Forum

 View Only

 ghost mode for extension

Jump to  Best Answer
Yasin Rafiq's profile image
Yasin Rafiq posted 07-25-2024 13:54

Hi, 
What is the hiarchy of Ghost Mode? I am developing extension for TCWEB and need the function GhosMode to work
Is this correct api.viewer.presentation.ghost(true)? 
Based on this documentation:
Presentation | Trimble Connect Workspace API

Darshan Rajaram Kamat's profile image
Darshan Rajaram Kamat  Best Answer

Hi Yasin,

Checked this with our Engineering team.  There are some changes needed. 

Please use the following API call for toggling ghost mode toolbar item.

// activating
await API.viewer.activateTool("ghostMode");

// de-activating
await API.viewer.activateTool("ghostMode");

Regards

Darshan Kamat

Yasin Rafiq's profile image
Yasin Rafiq

Thanks Darshan, 
And do you know about the funtion wireframe as well?