Need assistance with MbeDatabaseLink.daType

Need assistance with MbeDatabaseLink.daType

Post by MrBree » Tue, 16 Sep 2003 22:57:47


I have written a uStn Basic Macro that will read through the design
file, locate any textnode with a specified DA# and then reassign it a
new DA# thus updating my maps without having to re-populate the map
from my access database and then go over the map and correct
overpostings.

Where my problem comes in is here:
____________________________________________________________________________
______
Sub locate_manipulateElement (elem as MbeElement)
Dim NewLink As New MbeDatabaseLink '(Not Used)
Dim OldLink() As MbeDatabaseLink
Dim stat As Integer
Dim Origin As MbePoint


' turn off graphics while changing element
MbeState.noElementDisplay = 1

If elem.extractDBLinkages(OldLink) = MBE_Success Then
For ilink = LBound(OldLink) to UBound(OldLink)
If OldLink(iLink).datype = OldDA Then
OldLink(iLink).datype = NewDA


THIS IS WHERE I NEED ASSISTANCE ON WRITING THE MBEDATABASELINK BACK TO
THE ELEMENT AND REWRITING THE ELEMENT TO THE FILE


End If
Next ilink
End If

MbeState.noElementDisplay = 0
elem.display MBE_NormalDraw

' set MicroStation to a neutral state.
MbeSendCommand "NULL"
End Sub
____________________________________________________________________________
______

How do I rewrite the element (textNode) back to the file with the new
MbeDatabaseLink.daType?
 
 
 

Need assistance with MbeDatabaseLink.daType

Post by Dave Prest » Wed, 17 Sep 2003 15:28:20

I'll try and take a look at this. I have been having problems reading this
NG and only just saw it.

Regards
Dave Preston




____________________________________________________________________________
____________________________________________________________________________

 
 
 

Need assistance with MbeDatabaseLink.daType

Post by Dave Prest » Fri, 19 Sep 2003 15:20:31

I replied off line as I'm having trouble with my ISP's News Server. Did you
get my reply?
Regards
Dave Preston






____________________________________________________________________________
____________________________________________________________________________