Update node text

Hi! I'm updating some text from excel to Microstation. Until now I'd been able to update Text and Tags, but I have problems with Text nodes, here is my code:

If myWS.Cells(FileRow, 2) = "NODE" Then
Set myNode = myDGN.GetElementByID(myID)     'Store ID High and Low
myNode.TextLine(1) = myWS.Cells(FileRow, 4)    'Store new Textnode Value
myNode.Rewrite                                                            'Write TextNode
End If

The error is "Run time error -69652(ffeefec) at the line three. I have been looking for information regarding the text nodes, but I can't find something similar, even in the help files.

Thanks!

Parents Reply Children
No Data