datablock vs. tags

Hi group,

I am in the process of designing a tool that needs to store information "on" elements in a dgn. Various strings and doubles to connect the elements to data from various databases and such.

I have succeeded in using datablock to do this, but maybe tags would be a better way?

I have successfully added tags to an alignment DGNfile using inRoads, and can now see various extended information in a new group: "Horizontal Alignment" in the microstation element inspector information window. I like that! I like it a lot actually! But I am a bit confused.. So my question goes:

Can I add tags to elements so they aren't visible, but show up in the element inspector AND are avaiable through VBA?

If so, any hints as to how they are added to the elements, and also how they are retreived would be greatly appreciated. Or if you have any thoughts about using datablock over tags or vice-versa I would like to know why.

Thanks,
/Torben (of to read the manual...=)

Parents
  • Tag Definition: Display property

    Unknown said:
    Can I add tags to elements so they aren't visible, but show up in the element inspector AND are available through VBA?

    In your tag set definition, you apply the Display property to a tag definition by default.  Set Display off to make the tag invisible.  You can set that property in the tag definition using VBA.

    From the VBA programming point of view, non-displayed tags behave like visible tags.  A benefit is that they cannot be deleted by the user.  The user can nonetheless see the tag's value when querying an element using MicroStation tag tools.

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions

Reply
  • Tag Definition: Display property

    Unknown said:
    Can I add tags to elements so they aren't visible, but show up in the element inspector AND are available through VBA?

    In your tag set definition, you apply the Display property to a tag definition by default.  Set Display off to make the tag invisible.  You can set that property in the tag definition using VBA.

    From the VBA programming point of view, non-displayed tags behave like visible tags.  A benefit is that they cannot be deleted by the user.  The user can nonetheless see the tag's value when querying an element using MicroStation tag tools.

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions

Children
No Data