Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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

Posted

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

......

Posted

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

Posted

That sounds like some serious programming would need to be involved.

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...