Sambo Posted May 24, 2022 Share Posted May 24, 2022 Hello, I'm wondering if its possible to create a lisp or something that would link a scale bar controlled by block visibility states to a user selected viewport and have the visibility state of the block be controlled by that viewports object field data? (specifically the custom scale field). Quote Link to comment Share on other sites More sharing options...
Emmanuel Delay Posted May 24, 2022 Share Posted May 24, 2022 I know how to read and set visibility states. Could you upload an example? Object Field data are a bit of a distant, vague memory to me. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted May 25, 2022 Share Posted May 25, 2022 Googlr "link dynamic block variable to field" Quote Link to comment Share on other sites More sharing options...
tor11 Posted August 9, 2022 Share Posted August 9, 2022 I think this file can serve as an example.Escala gráfica.dwg Quote Link to comment Share on other sites More sharing options...
BIGAL Posted August 9, 2022 Share Posted August 9, 2022 I should have mentioned CIV3D has something built in if I remember correct. AutoCAD Map 3D Help: Adding a Scale Bar (autodesk.com) 1 Quote Link to comment Share on other sites More sharing options...
tombu Posted August 10, 2022 Share Posted August 10, 2022 AutoCAD Map 3D Help: To Create a Customized Scale Bar Without Map 3D it would be a daunting task. 1 Quote Link to comment Share on other sites More sharing options...
BIGAL Posted August 11, 2022 Share Posted August 11, 2022 If you have the dynamic block with all your "CORRECT" scales then yes you can click on a viewport and insert block with correct visibility set. It looks like you know about CUSTOMSCALE. Your 1st step is make the dynamic block with the multiple vis states. 2nd is get a copy of Lee-macs dynamic block lisp. 3rd the answer is in Lee's code. LM:SetVisibilityState Last comment its not a field answer but could be automated to look through layouts. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.