Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

remove unit from slider

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
op_thorsager
302 Views, 3 Replies

remove unit from slider

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.

3 REPLIES 3
Message 2 of 4
tyler.warner
in reply to: op_thorsager

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.
Message 3 of 4
WCrihfield
in reply to: op_thorsager

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)

Message 4 of 4
op_thorsager
in reply to: tyler.warner

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report