Skip to main content
1-Visitor
March 9, 2020
Question

How do I remove the step number mentioned in the 2D label from Creo Illustrate?

  • March 9, 2020
  • 1 reply
  • 630 views

I have written a code to display the name of the sequence step for each new step inside a 2D label widget. But I want to hide the step number for eg.  (1/15)

1 reply

19-Tanzanite
March 9, 2020

Hi @Ace_Rothstein_310668 ,

 

You can use substring to remove () from step string.

 

 $scope.setWidgetProp( labelId, "text", arg.substring((arg.indexOf(')') + 1),arg.length));

 

 

/VR