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
I think the Navigator is just for read-only opertation but the ReplaceCurrentElement method will try to change the element.
HTH, Yongan.Fu
Thank you Yongan for the answer, but I don't want to change the element in file (I don't use elem.Rewrite). My need is only to change the element symbology in memory to put it in a transient and display it temporary with the changed symbology.
Regards
More, I can create lines, arcs, cells in the overlay file, so I am surprised that a in-memory element operation may be disallowed.