JonSnow Posted March 26, 2009 Posted March 26, 2009 Hi there, I'm looking to try and create a block that automatically changes (for example the colour of a section) based upon a value in one of it's attributes. Is this possible? I have been able to make it selectable using a dynamic block but as I use data extraction and insertion frequently it would be nice to have this automatically update certain features of my blocks to represent the inputted data. Thanks Quote
fuccaro Posted March 26, 2009 Posted March 26, 2009 I am not sure I understood exactly what you wish to dio, but I think a dynamic bloc with visibility states could solve your problem. Quote
JonSnow Posted March 26, 2009 Author Posted March 26, 2009 I have a dynamic block that changes visible states but I want to change the states based upon an attribute rather than changing the visual state. Basically at the end I want a block that changes colour of a particular part when I change a value. values 0-2 green value 3 yellow value 4+ red Quote
fuccaro Posted March 26, 2009 Posted March 26, 2009 So make a block with say 10 visibility states: -for state 1 it displays "1" and hides all the sections except the green one. -for state 2 ... as above except it displays "2" -for state 3 it displays "3" and shows only the yellow section ...... Quote
JonSnow Posted March 26, 2009 Author Posted March 26, 2009 I have that but I want to make it dependant on a value that I can input outside of AutoCAD, i.e. a normal attribute Quote
NBC Posted March 26, 2009 Posted March 26, 2009 That sounds like some serious programming would need to be involved. Quote
JonSnow Posted March 26, 2009 Author Posted March 26, 2009 What I was thinking of was using a Dynamic Block with visual states, as mentioned, and using the ATTOUT - ATTIN combo. However those commands don't take into account custom properties made by the dynamic blocks. If there is anyway around that or if there is another way of inputing data similar to ATTIN then that could be used as the normal Data Extraction can be used to cover the Custom Property value. Quote
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.