Skip to main content
1-Visitor
Mar 9, 2020 5:27 AM UTC
Question

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

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
Mar 9, 2020 6:23 AM UTC

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 

Translate