Shape Number access

Find and share HowTos to various installations / configurations!
7 posts • Page 1 of 1
eMTy
Posts:22
Joined: Wed Aug 17, 2011 3:33 pm

Shape Number access

Post by eMTy »

Hi guys,

it seems to be possible to add some references to a panel and give them all the same name. Is there a possibility to access each of them (e.g. by the shape number)?

kr
Michel

aorange
Posts:147
Joined: Thu Nov 04, 2010 10:07 am

Re: Shape Number access

Post by aorange »

Hi Michel, you cannot give the same name to multiple shapes and there is as far as I know no way to access the properties of a shape using its ID. What are you trying to achieve exactly?

eMTy
Posts:22
Joined: Wed Aug 17, 2011 3:33 pm

Re: Shape Number access

Post by eMTy »

Not in case of shapes, but in case of references. There are several parts which belong to each other,
but there's not enough space for them in one row, so the other parts are in the next row and to make
sure (and show) that they belong to each other, they have the same name :dry:

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Shape Number access

Post by leoknipp »

Hello,

I didn't understand what the problem is.
If an object or reference is inserted in a panel it get's a default-name. If this name is changed afterwards by the user you can define same names.
The objects of same references will always have the same name but the reference name is different.
Objects inside of a reference can be accessed with the "."-notation.
setValue("reference-name.object-name",.....);

Is this the solution for your problem?

Best Regards
Leopold Knipp
Senior Support Specialist

eMTy
Posts:22
Joined: Wed Aug 17, 2011 3:33 pm

Re: Shape Number access

Post by eMTy »

Yes the objects of the references have the same name, but the references can also have equal names.
Let's say I drag two references into a panel and name them both (e.g.) "refAbc". Now I have two
references with the same name, and I just wanted to know, if it is possible to select each of them
with a script (e.g. by the id or something else unique) ;)

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Shape Number access

Post by leoknipp »

Hello,

this is not possible.
You have to ensure that reference names are not defined with the same name to be able to set the objects.

Best Regards
Leopold Knipp
Senior Support Specialist

eMTy
Posts:22
Joined: Wed Aug 17, 2011 3:33 pm

Re: Shape Number access

Post by eMTy »

Ok, thank you :)

7 posts • Page 1 of 1