ref()

Synopsis

Performs a rule reference by evaluating refChain in the context of part . This function is used when a reference needs to be made and the direct reference chain syntax is not permitted. Note that ref(a.b.c, :d) is equivalent to ref(a, "b.c.d"), and also to a.b.c.d. Ref only needs to be used when part cannot be directly interpreted as a part . Use refMethod() to call methods in the same way.

Syntax

ref ( part As Part, _
      refChain As Any ) As Any 
Argument Type Description
part Part The part where the reference is to be made.
refChain Any A Name or String . Simple references can just supply a name, and reference chains require a string .

Example 1

Intent >ref(root, :designName) 
--> :Assembly1 

Example 2

Intent >ref(root, "parent.designName") 
--> :%%project