Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: tag definition or tagset

$
0
0

good morning
I apologize I thought I had understood
but maybe not
SetTagValue2 the macro assigns a tag
I want to assign 8 tags to element

Private Sub SetTagvalue2(el As Element, tagName As String, tagValue As Variant)

    On Error GoTo ErrorHandler

    Dim tags() As TagElement
    tags = el.GetTags

    Dim i As Long

    For i = LBound(tags) To UBound(tags)      ' 0 to 7
        If (tags(i).TagDefinitionName = "0_nome") Then
            tags(i).Value = point1.nome
            tags(i).Rewrite

        ElseIf (tags(i).TagDefinitionName = "1_est") Then
               tags(i).Value = Format(point1.x, "0.00")
               tags(i).Rewrite

        ElseIf (tags(i).TagDefinitionName = "1_est") Then
               tags(i).Value = Format(point1.y, "0.00")
               tags(i).Rewrite

        ElseIf (tags(i).TagDefinitionName = "2_nord") Then
               tags(i).Value = Format(point1.y, "0.00")
               tags(i).Rewrite
.......................
Else
Exit Sub End If Next i ErrorHandler: End Sub

It is correct what I'm doing?

thank you




Viewing all articles
Browse latest Browse all 7260

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>