How to create an Attribute Definition with multiple values in a block ?

How to create an Attribute Definition with multiple values in a block ?

ennine
Advocate Advocate
3,192 Views
9 Replies
Message 1 of 10

How to create an Attribute Definition with multiple values in a block ?

ennine
Advocate
Advocate

Generally, in the bloc we have a unique value for one Attribute Definition. Is it possible to create an array of n attributes for a unique Attribute Definition?

0 Likes
Accepted solutions (1)
3,193 Views
9 Replies
Replies (9)
Message 2 of 10

Libbya
Mentor
Mentor

No, you can't array attributes.  You could do a limited faux array using visibility states, a linear parameter, and a double lookup.  The faux array would be limited to the number of visibility states you wanted to create.

0 Likes
Message 3 of 10

ennine
Advocate
Advocate

Thank you Libbya for your prompt response.

If I understood correctly, even with this method we get a drop-list based on visibility with a single value per definition attribute and per visibility. It is also not clear why we introduce the linear parameter.

0 Likes
Message 4 of 10

Libbya
Mentor
Mentor

I assumed you would want a linear array of attributes and so mentioned the linear parameter.  This shows how to build the faux array.  Each visibility state adds an attribute (like an array would) and the states are switched based on the linear parameter length via the double lookup.  See screencast.  

0 Likes
Message 5 of 10

ennine
Advocate
Advocate

Great work Libbya et thank you for the very clear video.

In fact, I work on a gas distribution network and I want to identify each subscriber according to the references of his meter within a block. If it is an individual residential it is Ok, but if it is about a building, I must insert all the subscribers of the building which vary from one building to another within a unique block (to avoid drawing multiple blocks in the same point). The idea here is to create a definition attribute that encompasses all the references. The number of subscribers is not known in advance.

Is there any tips for this issue?

Thank you in advance for your help.

0 Likes
Message 6 of 10

Libbya
Mentor
Mentor

Can you be more specific with what exactly you would like the block to do?  Post a file with drawn examples.  

0 Likes
Message 7 of 10

ennine
Advocate
Advocate

I attach a short video that illustrates my demand

0 Likes
Message 8 of 10

Libbya
Mentor
Mentor
Accepted solution

From your video, it seems that the prior screencast I showed gives the functional solution you are looking for although it seems you could do it a bit more simply.  Just stack the attributes on top of each other within the block, delete the linear parameter and double lookup, and use the visibility grip for selecting how many customers for a given block.  How does that not meet your desire? 

0 Likes
Message 9 of 10

ennine
Advocate
Advocate

Many thanks Libbya

0 Likes
Message 10 of 10

alopez
Contributor
Contributor

Testing

0 Likes