Set relative References

Set References in the relative reference mode by passing a pair of the References’ names and values as keyword arguments.

Setting a Reference by this method is equivalent to calling set_ref() by passing “relative” to refmode.


A and B are UserSpaces and foo is a Cells in B. The code blow assigns the Cells to References with the same names as the Cells in Space A:

>>> A.absref(

<Cells foo(x) in Model1.B>

By passing multiple keyword assignments, multiple References can be assigned. Below bar and baz are Cells in B:

>>> A.absref(, baz=B.baz)

<Cells bar(x) in Model1.B>

>>> A.baz
<Cells baz(x) in Model1.B>

See also

set_ref() absref()