Object References

Some AspenTech Inmation objects are linked to other AspenTech Inmation objects. These links are implemented as tables, where each entry is itself a table, corresponding to one reference.

For more information on references see the refs field in the Lua API documentation.

For back-references see the brefs field.

Iterating the Object References

The following piece of code returns a table containing the paths of all references of the current object.

local self = syslib.getself()
local ref_objects = self.refs

local ref_paths = {}
for r = 1, #ref_objects do
    table.insert( ref_paths, ref_objects[r].path)
end

return ref_paths