Need assistance with MbeDatabaseLink.daType

Discussion in 'Microstation' started by Clay Tumlin, Sep 15, 2003.

  1. Clay Tumlin

    Clay Tumlin Guest

    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?
     
    Clay Tumlin, Sep 15, 2003
    #1
  2. Clay Tumlin

    Dave Preston Guest

    I'll try and take a look at this. I have been having problems reading this
    NG and only just saw it.
     
    Dave Preston, Sep 16, 2003
    #2
  3. Clay Tumlin

    Dave Preston Guest

    I replied off line as I'm having trouble with my ISP's News Server. Did you
    get my reply?
     
    Dave Preston, Sep 18, 2003
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.