VBA Runtime Error '70' in ProjectWise Navigator

Hello,

In my code I get a runtime error '70' in ProjectWise Navigator V8i (08.11.07.188) at execution of the red line (the same code works fine in Microstation and PowerDraft V8i and also Redline XM)

 

DIm elem as CellElement

dim tmp_el as Element

.........

    elem.ResetElementEnumeration
    Do While elem.MoveToNextElement
        Set tmp_el = elem.CopyCurrentElement
        tmp_el.color = 2
        elem.ReplaceCurrentElement tmp_el

    Loop

.......

 

Is this a limitation of Navigator or sould it work?

 

Thank you

 

Jean-Claude

 

Parents Reply Children