How to add your knowledge

ref()

    Table of contents
    1. 1. Synopsis
    2. 2. Syntax
    3. 3. Example 1
    4. 4. Example 2

    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