Editing interface labels
DSPuzzles
Member Posts: 17 EDU
I am writing a rather complex FeatureScript feature that takes in a length as an input, stored in definition.length. Depending on a few options (enums), I would like the label of this input to either read "Edge length", or "Short edge length", or "Long edge length", while still storing the value in definition.length.
I know I can simply make 3 different length parameter inputs and then, with the aid of an if statement, set a variable "length" equal to the relevant one, but I am doing this to avoid overly complicated feature preconditions with several different inputs that essentially refer to the same thing. All I really want to do is change the label. Is this possible?
Thank you for your time!
I know I can simply make 3 different length parameter inputs and then, with the aid of an if statement, set a variable "length" equal to the relevant one, but I am doing this to avoid overly complicated feature preconditions with several different inputs that essentially refer to the same thing. All I really want to do is change the label. Is this possible?
Thank you for your time!
Tagged:
0
Best Answer
-
Jake Rosenfeld - Modeling Team5
Answers
-
Jake Rosenfeld - Modeling Team5
-
It's ok, FeatureScript is a great thing to have regardless. One of the main reasons I use OnShape.Jake_Rosenfeld said:2

