Topic
2 replies Latest Post - ‏2013-05-09T14:45:51Z by llandale
bungle_77
bungle_77
44 Posts
ACCEPTED ANSWER

Pinned topic Link to Baseline

‏2013-05-08T15:23:50Z |

Hi

In the current module i have objects out-linked to objects that are in the baselines of another module.

with my code  i have to find the value of the attribute "TIS ID" of the target object (in the BL) and the baselines information of the target module.

I can get the target object ( o_trg= target l) but when i try it, the code give me an error

null Object parameter was passed into argument position 1
-I- DXL: execution halted

 

[CODE]

Module mCurr = current
print fullName mCurr "\n\n"
Object o, o_trg
Link l
Module mTrg
ModName_ trgModRef
ModuleVersion mv
Baseline bl
for o in mCurr do {
print "ID: " o."TIS ID" "\n"
    for l in all o->"*" do {

        trgModRef= target l
        print fullName trgModRef "\n"
        mv=targetVersion l

        bl=baseline(mv)
        print "BL: " major bl "." minor bl " - "suffix bl "\n"
        o_trg= target l
        print "ID trg: " o_trg."TIS ID" "\n"
            
    }

}

[/CODE]

 

p.s.

i am sorry i don't know the tag for the code

Updated on 2013-05-08T16:04:40Z at 2013-05-08T16:04:40Z by bungle_77
  • bungle77
    bungle77
    11 Posts
    ACCEPTED ANSWER

    Re: Link to Baseline

    ‏2013-05-09T10:45:39Z  in response to bungle_77

    solved :-)

  • llandale
    llandale
    2809 Posts
    ACCEPTED ANSWER

    Re: Link to Baseline

    ‏2013-05-09T14:45:51Z  in response to bungle_77

    Yes, you cannot get the target object Handle unless the target module is open.  You need

    • load(mv)

    -Louie