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

RE: [V8i SS2 VBA] tag element code

$
0
0

I see two problems...

[quote user="minion"]

Set td = GetTagSet.TagDefinitions.Add(TagName, msdTagTypeCharacter)
td.IsConstant = True

[/quote]

You've defined a tag as constant, but without giving it a default value.  The tag value is empty.

[quote user="minion"]

TagMyElement someline, "testTagName", "TestTagValue"

[/quote]

  1. In your _DataPoint event, you attach the tag to the element (successfully).  However, since the tag definition is constant, you can't assign the value and the tag remains blank.
  2. Remove CommandState.StartDefaultCommand from that _DataPoint event to resume normal MicroStation behaviour.

Viewing all articles
Browse latest Browse all 7260

Trending Articles



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