How to apply relative path in a symbol

4 Posts
2 Users
0 Likes
27 Views
(@i.shahrizan@arcinfo.com)
Posts: 0
New Member Guest
 

Hi all,
I'm trying to create a generic symbol that can be used for any project. My problem is that the symbol will require referencing to 2 variables. 1 variable will be something like B1.B2.B3.Current.Value and the other 1 will be something like B1.B2.Max. Is there a way to reference the variable backward from the same path something like a relative path ..// . I cannot use #S1.#S2.Max because the variable will be created from app architect and I cannot control how many branches that will exist before Current.Value. Tq

rgds

 
Posted : 23/06/2015 2:14 pm
(@admin_doc72)
Posts: 493
Member Admin
 

Hi Irwan.

Relative referencing is difficult. Usually you are limiting yourself in some way when trying to achieve this. As you said you need to be agnostic of the amount of leading context branches. Therefor, I think the best is probably to think the other way around.
Generally, what the symbol needs to know is its basic context, which is in fact the least common denominator of the variables that you are using in the animations in your symbol. In your example this would be #B1.#B2.

As you know internal structure of your object you can apply the rest of the variable's path directly in the symbol animations, or as an alternative you could use substitution in addition to that. By the way, you can also combine absolute referencing and wildcard characters in animations (see below example #1).

Example #1 (not exactly matching your use case, but illustrating how you can combine absolute referencing (@) and symbol context in an animation):

2370=334 symboldemo

Example #2 (matching the use case that you described):

2370=335 symboldemo fixed

Example #3 (with substitution):

2370=336 symboldemo substitution

Hope it helps!

 
Posted : 24/06/2015 1:18 pm
(@admin_doc72)
Posts: 493
Member Admin
 

Addendum to example #3:

And of course you can also use wildcards in substitutions...

 
Posted : 24/06/2015 1:21 pm
(@i.shahrizan@arcinfo.com)
Posts: 0
New Member Guest
 

Hi Armin,
Tq for the examples. I will try your suggestions and will let you know if it is not working for me. Thanks a lot

rgds

 
Posted : 24/06/2015 1:35 pm