USERR1 variable display

USERR1 variable display

info
Contributor Contributor
736 Views
5 Replies
Message 1 of 6

USERR1 variable display

info
Contributor
Contributor

Using Rtext, is there a way to display the value assigned to the USERR1 variable as a 3 place decimal?

0 Likes
Accepted solutions (1)
737 Views
5 Replies
Replies (5)
Message 2 of 6

cheryl.buck
Autodesk Support
Autodesk Support

Hi @info,

 

Great question.  There does not appear to be a way to do this directly from the RTEXT command, text formatting appear to be limited to style, height, and rotation. 

 

There may be a way to do this using DIESEL, the members of the AutoCAD Customization Forum would be a great resource for how to do this.

 

If a post was helpful, Likes are always welcome.

Please click the Accept Solution button for any posts that resolve the issue or answer your question.

 

All the best,

 

[This post has been edited for clarity by cheryl.buck]

Cheryl Buck
Technical Support Specialist



Did a post answer your question or help resolve the issue? Please click the Accept Solution button.
If you find a response helpful, consider Liking the post.

Message 3 of 6

info
Contributor
Contributor

Thank you, Do I need to repost this to the other forum?

0 Likes
Message 4 of 6

Kent1Cooper
Consultant
Consultant
Accepted solution

Yes [to the question of whether it can be done -- no, you don't need to post to the Customization Forum].

 

RTEXT command, Diesel option, put in:

 

$(rtos, $(getvar, userr1), 2, 3)

 

The setting of your DIMZIN System Variable will determine whether leading and/or trailing zeros are displayed.  If you change the value, the displayed value can be updated with REGEN.

Kent Cooper, AIA
Message 5 of 6

info
Contributor
Contributor

Thank you, that did it.

Message 6 of 6

cheryl.buck
Autodesk Support
Autodesk Support

Hi @info,

 

Thank you for letting the community know that the info helped. Thank you @Kent1Cooper!

 

All the best, 

 

Cheryl Buck
Technical Support Specialist



Did a post answer your question or help resolve the issue? Please click the Accept Solution button.
If you find a response helpful, consider Liking the post.

0 Likes