Change color of an object by parameter

Change color of an object by parameter

Anonymous
Not applicable
4,542 Views
6 Replies
Message 1 of 7

Change color of an object by parameter

Anonymous
Not applicable

Hello, 

 

I'm trying to create a block that changes the color of a polyline by a defined parameter.  

 

The situation is: 

 

The block has two parameters (Lenght and Height) and these distances are already defined in a block properties table. 

 

For exemple: 

 

Distance 1 = 2.00 and Distance 2=1.00.

 

Name: 2x1

 

I'd like for this situation polyline color change.

 

In this block, I've so many situations for these distances, and I don't want do with VISIBILITY STATE. 

 

Is there any possible way to do this in Dynamic Block? 

 

Best regards, 

 

Thanks.

0 Likes
4,543 Views
6 Replies
Replies (6)
Message 2 of 7

jerry.ford
Alumni
Alumni

Sorry, there is no existing functionality in the block editor that allows for this capability (triggering a property change for objects in the block - color, layer, etc. ).

 

Perhaps with lookup tables and visibility states, you might be able to turn off/on some duplicate geometry with different colors when a parameter changes, but otherwise no.


Jerry Ford

Senior Interaction Designer
Message 3 of 7

Libbya
Mentor
Mentor

You can certainly combine duplicate linework, visibility states, and block properties or lookups in order to automatically change the visibility state based on a different parameter's value.  

Message 4 of 7

Anonymous
Not applicable
Thanks Jerry,

I'll do this by a lookup pararameter with visibility states. This is gonna take a while, because I need to create actions (rotate, scale and strech) for each block, but it's the only way to do.

Thanks for the suggestion.

0 Likes
Message 5 of 7

Anonymous
Not applicable

I've got a solution for this block based on your answer. 

 

It has take a long time, indeed, but worked!

 

Thanks, 

 

Best Regards.

Message 6 of 7

jerry.ford
Alumni
Alumni

Very cool!

 

I attached an example that may give you some more ideas.  

 

Thanks,

Jerry

 


Jerry Ford

Senior Interaction Designer
Message 7 of 7

mbickelVMG55
Enthusiast
Enthusiast

This is a great block. I am inspired to learn more about lookup tables and visibility states.

0 Likes