• 2 replies
  • Latest Post - ‏2013-05-09T14:45:51Z by llandale
58 Posts

Pinned topic Link to Baseline

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


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



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

        print "BL: " major bl "." minor bl " - "suffix bl "\n"
        o_trg= target l
        print "ID trg: " o_trg."TIS ID" "\n"





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
    11 Posts

    Re: Link to Baseline


    solved :-)

  • llandale
    3035 Posts

    Re: Link to Baseline


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

    • load(mv)