Array Color+Value of an attribute in dynamic Block

Array Color+Value of an attribute in dynamic Block

jsinobasN8VK5
Contributor Contributor
468 Views
5 Replies
Message 1 of 6

Array Color+Value of an attribute in dynamic Block

jsinobasN8VK5
Contributor
Contributor

Hello all,

 

im creating a seating plan based on a module with 4 seats. The requirements are the following

 

1.- to be able to change between steps or seating module

2.- to be able to color the individual seats on the first row and array the result

3.- to be able to XY Array the module.

 

1.- Solved this with a visibility state. OK

2.- I create an attribute for each seat. then, editing the attribute Properties, i can select a different layer so the attribute color changes.

3.- Array works fine except for the Attributes 😞

 

after checking for days, I´m certain now that, unfortunately, i will not be able to array the attributes. However, i though that maybe there was a way to create a text with an inserted field that retrieves the result from the attribute values for <Value+Layer Color> I tried using a formula by copying the expressions from autocad but it doesnt work. I read about Diesel Expressions but i cannot put together a string that works as i needed.

 

my goal is simple as the array that i need will be repeating the initial module color coding, nothing fancy there...

 

can anyone help me? Please.. 🙂

 

regards in advance!

 

 

 

0 Likes
469 Views
5 Replies
Replies (5)
Message 2 of 6

illusionistNUGXG
Advocate
Advocate

I tested a bit...but the result wasn't perfect.

My approach was the usage of nested blocks:

I created a block for one seat and set the colour of the attribute to "ByBlock". The colour of the block determines now the colour of the attribute. Now i created the frame-block with the 4 seat-blocks inside.

This seat-blocks (with different colours) can now be arrayed.

 

The downside of this method:

The attributes can't be changed from the outside (They are not enlisted in the PROPERTIES of the frame-block).

You have to edit the frame-block to access and change the individual attributes of the 4 seat-blocks.

0 Likes
Message 3 of 6

jsinobasN8VK5
Contributor
Contributor

Thanks for the answer. Unfortunately i also tested that solution and disregarded as i need the seats to be modified from outside the block and later on i need to do a dataextraction of them by color.

 

Seems weird that we cannot create something like this in autocad no?

 

 

0 Likes
Message 4 of 6

illusionistNUGXG
Advocate
Advocate

I have another idea, that could be the right solution...i guess.

Attributes can't be arrayed, because they would need input information for each copy.

 

So...let's array something else:

At first, create a 3rd visibility state and place all attributes inside and hide them in the other visibility states.

Now create MTexts at the positions where the attributes used to be and link the content of the attributes with a field function into the Mtexts.

Set the layer of the MTexts to their individual layer.

Now the MTexts, witch mimic the attributes, can be arrayed and counted with the data extraction (i guess).

And this time the attributes are accessible from the PROPERTIES again.

 

Only odd thing about this version is the 3rd useless visibility state option to choose from.

0 Likes
Message 5 of 6

jsinobasN8VK5
Contributor
Contributor

This, as i see it is the right way. However when i tried to do like this, i cannot copy all the properties of the Attribute, just one of them. Do you know about how to create formula or Diesel Expression to grab the value and color of the attribute?

0 Likes
Message 6 of 6

illusionistNUGXG
Advocate
Advocate

Sorry, haven't played much around with fields and never tried diesel-stuff. Maybe you should open another thread for this problem to get attention to the field.

 

But i found another fault in my last suggestion:

The attributes vanish from the PROPERTIES list, if a visibility state is selected in which they are hidden.

Another method would be:

I just found out, that attributes can be made invisible when created (a checkbox in the top left).

With invisible attributes, the 3rd visibility state is not needed anymore and the attributes are not disappearing from the list.

0 Likes