How to create a display tool for a current variable value?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone, I felt like I needed to proceed with this post even though I didn't research it much - because I'm not really sure how to describe it so here we go!
I am setting up a system of controlling a faux elevation property - one that only holds the value as a (real) variable (not actually using the AutoCAD elevation property due to users - some outside of our organization - experience level with 3D concepts). I am placing dynamic blocks which will have attributes and properties that adopt the current value of this "elevation" variable and calculate through lisp programs during insertion, what size support dynamic blocks will need to have their height range settings set to in order to hold our equipment at the right level. I already have a system to read the blocks in the drawing and collect their properties and set the new block properly to go with it.
What I want to do is find a way to have a button in a toolbar, tool palette or ribbon panel that could display the current value of this elevation variable. It would work just like the current layer or current dimstyle or current color control toolbar object. I'd like it to be a real-time editable button to always be in the user's interface to display the current value of my elevation variable and even change it on the fly. I would assume that .net has ways of doing this, but we are restricted to lisp methods since many users are outside the organization and using AutoCAD 2010 and anything newer.
Any ideas?