Lisp/code request to make block text display viewport scale.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey all!
I have a request for some help if some kind soul would be willing to give me a hand. I had previously posted my original question over in the other AutoCAD forum at this link https://forums.autodesk.com/t5/autocad-forum/auto-updating-text-based-on-viewport-scale/td-p/8983764 but the answers I received told me that the default options in Autocad does not allow for this, so I thought I would seek help here :).
I am needing help with getting text within a block to display a viewport scale that I want to "assign" the block to. Our workflow is to first create a viewport in layout space and then insert a block of a bar scale from the tool palette. What I need, if possible, is a lisp/routine that allows me to insert the blocked bar scale, then select the viewport I want my bar scale to be linked to so that the text on my bar scale will auto-update as I change the zoom level of the viewport? Is this possible?
I am including a pic of my bar scale block.