Hello everyone,
I'm trying to change a hyperlink description using VB.NET
following is the code:
Using acLockCurrDoc As DocumentLock = acDoc.LockDocument()
Using acTrans As Transaction = acCurDb.TransactionManager.StartTransaction()
Dim MyEntity As Entity = CType(acTrans.GetObject(MyObjID, OpenMode.ForWrite), Entity)
Dim hyperlinkColl As HyperLinkCollection = MyEntity.Hyperlinks
Dim hyperL As HyperLink = hyperlinkColl.Item(0)
hyperL.Description =" Some description"
acTrans.Commit()
End Using
End Using
Stepping through the code in debug mode, after passing hyperL.Description =" Some description" row, the Description property of the hyperlink is
effectively modified as I can see from the variable window of VisualStudio, but when I go to the drawing in order to verify if the modification have taken place, the hyperlink description was not modified.
Any suggestion?
Thanks alot in advance.
Luigi
Please show/demonstrate how you have determined that the hyperlink description was not updating?
Some ideas:
hyperL.Name =" Some name"
HTH