Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

remove unit from slider

op_thorsager
Enthusiast
Enthusiast

remove unit from slider

op_thorsager
Enthusiast
Enthusiast

Hi, is i've set up these controls for my drawing, which lets the user move and scale specific views. The sliders are driven by numerical parameters.

my issue is that i think it looks "ugly" when you can see the unit after the number, so i wanted to hear if its possible to remove it somehow.. example of form:

op_thorsager_0-1675334521033.png

If possible i'd like the "set scale" to be "1:VALUE" where the value updates with the set scaling from the slider.

0 Likes
Reply
Accepted solutions (1)
343 Views
3 Replies
Replies (3)

tyler.warner
Advocate
Advocate
Accepted solution

Not sure about removing the unit on the current slider value.

 

For the "Set Scale" question... It doesn't seem like you can make a parameter label blank, so I made it an underscore & moved it below the slider. Then I created a label above the slider whose parameter name is tied to another created text parameter called "Slider_Name". Then add a rule where you insert the below code. This will change the label text as you change the slider value. I also made the slider based on the parameter "Silder_Value" which is used in the rule below.

Slider_Name = "Set Scale 1:" & Slider_Value

 

If this solved your problem or answered your question, please click ACCEPT SOLUTION.
If this helped you, please click LIKE.

WCrihfield
Mentor
Mentor

Similar results here.  I created something earlier this morning for this, but since it did not meet your requirements, I did not post anything.  I could not get it to not show the units String, which was the main point of your post.  But I did create something to put the resulting numbers above the slider.  The result is not even as good looking as what @tyler.warner posted though.  I also had put the slider's label below it, but used a period instead, because it was least visible.  Oh well.  You could always create your own Form using vb.net if you wanted, instead of the iLogic Form Editor, but that would be a lot more complex to set-up.

WCrihfield_0-1675349385469.png 

WCrihfield_1-1675349443264.png

 

 

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

op_thorsager
Enthusiast
Enthusiast

Thank you! its not the prettiest, but it will suffice for now!

0 Likes