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
  • Update, and partial answer to my question:

    I see that I can access the tags using the "Review Tags" tool.
    I think that would mean they are "regular" tags, and whatever data I choose to add to an element, I can add in the same way. But,

    Can I have multiple of these tag types (groups in the element inspector with various data attached)?

    The help file seems to have some information to maybe get me going on adding/retrieveing tags through VBA.

    System: Win7 64bit 16GB Ram - microStation V8i SS3 08.11.09.578. + PoinTools CONNECT. - Intel i7-4800MQ CPU@2.70GHz, 4 core / 8 Logic proc.

  • Tag Set Definitions

    Unknown said:
    Can I have multiple of these tag types (groups in the element inspector with various data attached)?

    It's not entirely clear what you are asking.

    A DGN file can contain more than one tag set definition. You can attach more than one tag set to an element.

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions

  • Unknown said:
    Can I have multiple of these tag types (groups in the element inspector with various data attached)?

    It's not entirely clear what you are asking.[/quote]

    When investigating an element using the element inspection tool, you will see various groups of information ("General", "Geometry" etc.). One of these group appear to be the data attached as "tags" by inroads to this particular DGN. I was wondering if I could have more than one of these groups added by myself so the tags were neatly ordered in the element inspector.

    Thanks for all the hints on what to investigate in the help file together with short and clear comments and the link to your site... :)

    System: Win7 64bit 16GB Ram - microStation V8i SS3 08.11.09.578. + PoinTools CONNECT. - Intel i7-4800MQ CPU@2.70GHz, 4 core / 8 Logic proc.

  • I am currently adding a datablock to a cell element (I use cells because all the elements in the cell basically is a representation of the data I have harvested). I think I see the microstation manual hinting that I cannot add tags to cell elements? So before I change my code completely from datablocks to tags, I would like to ask:

    Can I add tags to cell elements?

    System: Win7 64bit 16GB Ram - microStation V8i SS3 08.11.09.578. + PoinTools CONNECT. - Intel i7-4800MQ CPU@2.70GHz, 4 core / 8 Logic proc.

  • I have tried the examples in the help and managed to attach some kind of tag definition to the DGN, and tagged an element (sorry if my terminology is off!) BUT, I cannot see the tags in the element inspector.. I tried copying what I see in when querying elements generated by inroads but that wasnt enough.

    Any clues?

    System: Win7 64bit 16GB Ram - microStation V8i SS3 08.11.09.578. + PoinTools CONNECT. - Intel i7-4800MQ CPU@2.70GHz, 4 core / 8 Logic proc.

  • (Note that the four posts above this one, and the first post also has unanswered questions please!)

    I have observed that the elements I have generated from inroads also has an x-attribute in the inspector, where as the elements I have tagged myself does not. Indicating a conection between the x-attribute and the showing of the tags in the element inspector. Do you know if that is the case? And do you know how to handle it?

    The elements I tag in microstation displays a "linkages" parameter, as do the elements generated by inroads. I do not have inroads running or even installed on my programmin machine, nor can I expect my users to have it.


    Thanks in advance,
    /Torben

    System: Win7 64bit 16GB Ram - microStation V8i SS3 08.11.09.578. + PoinTools CONNECT. - Intel i7-4800MQ CPU@2.70GHz, 4 core / 8 Logic proc.

  • Torben

    Yes, you may attach tags to cells or even shared cell elements!

    But Don't mix the tag data with x-attribute data paradigm,  these are different things. With mircosation vba you have the possibility to archive both!

    But  for me it is not really clear what you like to archive globally!

    What is missing in InRoads that you are doing a lot programming yourself. Sure,  and have in mind the civil products (InRoads, GeoPack) are under a huge improvement work by Bentley this days and we can not be sure that the products will work that way it's doing now or in near future (2-3 years). Have you checked the new "civil geometry" and data acquisition tools ?

    What do you mean by element inspector the ms "element Info":

    like

    Regards

    Frank

    since 1985: GIS, CAD, Engineering (Civil)  Senior Consultant : [Autodesk Civil 3D , Esri ArcGIS, VertiGIS: in previous days : Bentley MS V4 - V8i, GeoGraphics, Bentley Map V8i, InRoads,  HHK Geograf, IBr DAVID] :  Dev: [C, C++, .NET, Java, SQL, FORTRAN, UML]
    [direct quote by: http://en.wikipedia.org/wiki/Helmut_Schmidt]: "Wer Kritik übel nimmt, hat etwas zu verbergen"
    Wer Grammatik- und/oder Rechtschreibfehler findet, der darf sie behalten :-)

  • Hi Frank,

    Yes, by Element Inspector I mean precisly what you have shown on the image you attached ("Elementinfos")!
    As can be seen in the pictures below, the added tags from inRoads show in a group "Horizontal Alignment" in the element inspector:
    How can I mimic this behaviour?

    When I inspect elements tagged by inRoads, they display the values in the element inspector in a new group just like "Geometrie" or "Allgemein", but the tags I have managed to add does not display in the element inspector. If I am to switch from using datablock to invisible tags, I would like to know if there is any advantages at all. I expected tags to show up in the element inspector but they do not?!

    <rant begin>As for the reason to make my own interface, we cannot wait 2-3 years for the next generation of bloated stuff to be released and then approved by the corporation and installed ;o) Rolling my own quality assurance/data inspection and output routines seems to make much more sence. I also have alot of mixed data that needs to be tied together from various DGNs. Yes it is tailormade for us, but will save us oceans of time once completed. I don't mind if a program has poor tools as long as it has great speed and functions and I can roll my own tools! You just cannot make a set of dataextraction tools to suit everybody! Never, ever!! ;)</rant end>

    The Bentley program we are currently using cannot even show us a proper 3D output of our data!!! (Took me a few days but was no real problem)

    Regards,
    /Torben

    - Back tomorrow, Take care :)

    System: Win7 64bit 16GB Ram - microStation V8i SS3 08.11.09.578. + PoinTools CONNECT. - Intel i7-4800MQ CPU@2.70GHz, 4 core / 8 Logic proc.

  • Tags & Cells

    Unknown said:
    Can I add tags to cell elements?

    Yes.

    The longer answer is: "Yes and yes!" …

    • You can tag a cell element (shared or normal) just as you can tag any other tag element

    • You can also include tag elements inside a cell definition model

      When a user places an instance of that cell, MicroStation extracts the tag elements and places them in the active model. The tags are associated with the cell element

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions

Reply
  • Tags & Cells

    Unknown said:
    Can I add tags to cell elements?

    Yes.

    The longer answer is: "Yes and yes!" …

    • You can tag a cell element (shared or normal) just as you can tag any other tag element

    • You can also include tag elements inside a cell definition model

      When a user places an instance of that cell, MicroStation extracts the tag elements and places them in the active model. The tags are associated with the cell element

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions

Children
No Data