i want to create a link between two object of one module. Please help me out. i write a script for that but dnt know how to take ID's of objects inorder to create links between them.
Module m = current
o_source ->"/Daimler_HLI_LCU/01 LEAR Requirements/LCU/06-L Software/DOORS Links"->o_target
Pinned topic How to create a link between two object of one module
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-02-04T08:39:53Z at 2013-02-04T08:39:53Z by SystemAdmin
Re: How to create a link between two object of one module2013-02-01T11:12:40ZThis is the accepted answer. This is the accepted answer.DXL help, heading: Finding objects
This section defines functions that allow DXL programs to navigate through the objects in a module.
Object object(int absno,Module m)
Returns the object with the specified absolute number. If no module argument is supplied, the current module is searched.
o_source = object (5)...
But: the perm "object" only works if the object is currently visible - which depends on the current filter settings etc.
If it is not clear whether the object is visible you can use the loop "for o in entire (module) do" (same heading in the dxl help) in conjunction with 'if 5 == o."Absolute Number" then o_source=o'