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
Shape Number access
- aorange
- Posts:147
- Joined: Thu Nov 04, 2010 10:07 am
Re: Shape Number access
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
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:
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
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
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
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)
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
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
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