cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

How to toggle "always on top" from javascript?

csnyder
1-Newbie

How to toggle "always on top" from javascript?

Hello,

I have a model item that I want to be on top for only a specific part of my sequence. How do I toggle this on and off using java script? Currently I am trying:  $scope.view.wdg['modelItem-1']['always on top'] = true; but this does not seem to be correct. Thank you!

ACCEPTED SOLUTION

Accepted Solutions
rabernathy
6-Contributor
(To:csnyder)

The correct syntax for "Always on top" is:

$scope.view.wdg['modelItem-1']['decal'] = true;

View solution in original post

2 REPLIES 2
rabernathy
6-Contributor
(To:csnyder)

The correct syntax for "Always on top" is:

$scope.view.wdg['modelItem-1']['decal'] = true;

Thank you! Is there a place where I can look up the javascript syntax for various fields?

Announcements

Top Tags