No announcement yet.

GUID numbers

  • Filter
  • Time
  • Show
Clear All
new posts

    GUID numbers

    Can anyone tell me what the GUID numbers are? I see them when I look at a file in Design Review. Is there a way to export ID and GUID numbers and their element description out of Revit or Design Review?
    Motorbike riding is one long bezier curve

    The only thing I have heard about GUID numbers in Revit is in relation to the Shared parameters file. Each shared parameter has a unique identification number, or "Globally Unique Identifier" (G.U.I.D.) such as this:

    PARAM 50ac7f10-fefd-4e2a-af1c-244d7039d7d6 ObjectWidth LENGTH 1 1

    I don't know the relation between this and Design Review, though.
    Freelance BIM Provider at Autodesk Services Marketplace | Linkedin


      Every item has a GUID. From what ive read, you can access them through the API. I *think* the free COBIE exporter/importer manually writes the GUID to a text parameter, and exports that.
      Aaron "selfish AND petulant" Maller |P A R A L L A X T E A M | Practice Technology Implementation
      @Web | @Twitter | @LinkedIn | @Email


        Aaron is correct. EVERY element has a GUID, even views. They can be access through the API, but i'm not sure what the COBIE exporter/Importer is.
        Phillip Miller
        Kiwi Codes Solutions Ltd
        Makers of "Family Browser" and "Project Browser" for Revit.


          GUID is a Globally Unique IDentifier. It is a number long enough to be certain that it does not occur anywhere else in the universe. The more common ElementID for instance is only unique within a Revit project. The GUID is guaranteed to be unique across all projects. GUID’s are widely used everywhere in the IT world.
          Exporting GUID’s out of Revit does not make much sense in most cases I think. Only but important exception is the export of shared parameter GUID’s that Alfredo already mentioned. They are used to share parameters across families and projects. They can easy be exported from the Revit Parameter dialog or by using the API. There are also tools around to work with those GUID’s
          [email protected]


            You can also use the GUID in the Revit.ini file to create consistant deployments of the INI across your network.

            The GUID checks from the INI in UserAppData and compares its GUID number to that in C:\users to check for consistincies. If the GUID in the AppData is different than that in C:\users C:\users will be updated to match the INI in appdata.

            (Revit 2012)


              thanks for the quick replies guys, I'm not very clear on the API, so I'll ask another question to clear up something I'm thinking about.
              If a file was duplicated across 2 different machines, and then the files interrogated, the same element (if unchanged by either user after duplication) would have the same ID, but would each machine's file by necessity have the same GUID for that element? Does this GUID live with the element as does the ID? I take it the GUID could be called a 'more extreme ID' in layman's terms.
              Motorbike riding is one long bezier curve


                It all depends on the actions you take. Moving stuff doesn't affect the ID, nor the GUID. Mirroring stuff does. Changing parameter values doesn't. I don't think that there's an action which won't cause the ID to change but does change the GUID.
                Martijn de Riet
                Professional Revit Consultant | Revit API Developer
                MdR Advies
                Planta1 Revit Online Consulting


                  Someone from the Factory could chime in and provide better information, but we HAVE seen issues where Revit has gotten *confused* about an elements GUID and/or Element ID, and it has caused some corruption in our models, and there hasnt been a way back from it. Ive got an active project that has Note Blocks in it, where Revit keeps generating a Note Block Schedule from ANNOTATION NAME-X even though youre telling it ANNOTATION NAME-Y. It even goes so far as if you copy NAME-Y from a view and try to paste it, it pastes "Family Name Y" with a Family TYPE from "X". Its pretty funny stuff.

                  Having said that: The COBIE plugins and templates are free from the GSA. They need the GUID's to track important information for FM downstream of design. It *is* important to note, however, that its not a "live" tie to the GUID. It writes it in to a Text Parameter in a series of element schedules, so you can export it to Excel. I *think* the external commands they give you will run a check on the GUID's when instantiated, and will rewrite them if they are wrong, but i havent tested it at length, as it is a bit quirky.
                  Aaron "selfish AND petulant" Maller |P A R A L L A X T E A M | Practice Technology Implementation
                  @Web | @Twitter | @LinkedIn | @Email


                    extra info from :

                    UniqueId, DWF and IFC GUID

                    One frequent question from developers has been on how to correlate the GUIDs or globally unique identifiers used when exporting models to DWF and IFC from Revit with the element ids and unique ids used internally in the Revit model.

                    GUID and UniqueId

                    A GUID is a 16-byte, i.e. 128 bit number. It is commonly split up into several fields of varying lengths and written in groups of 8-4-4-4-12 hexadecimal characters, i.e. 32 characters to represent the 16 bytes or 128 bits.

                    On the other hand, we have the Revit UniqueId. Every element has such a unique identifier, which is returned through the API as a string. This string is formatted in groups of 8-4-4-4-12-8 hexadecimal characters. It is thus similar to the standard GUID format, but has 8 additional characters at the end. These 8 additional hexadecimal characters are large enough to store 4 bytes or a 32 bit number, which is exactly the size of a Revit element id.

                    If I create a couple of walls in a row, I note that the GUID part of the UniqueId is the same for all of them, and the last 8 bytes differ and exactly represent their individual element ids. Here are the various ids of two walls, exported to both DWF and IFC:

                    Id=130315; Class=Wall; Category=Walls; Name=Generic - 200mm;
                    UniqueId = 60f91daf-3dd7-4283-a86d-24137b73f3da-0001fd0b;
                    Dwf Guid = 60f91daf-3dd7-4283-a86d-24137b720ed1;
                    Ifc Guid = 1W_HslFTT2WwXj91DxSWxH

                    Id=130335; Class=Wall; Category=Walls; Name=Generic - 200mm;
                    UniqueId = 60f91daf-3dd7-4283-a86d-24137b73f3da-0001fd1f;
                    Dwf Guid = 60f91daf-3dd7-4283-a86d-24137b720ec5
                    Ifc Guid = 1W_HslFTT2WwXj91DxSWx5

                    You can see that the first 16 bytes or 32 hex characters of the unique identifiers are identical. This portion is apparently internally called EpisodeId in Revit. The unique ids only differ in the 4 byte or 8 hex character suffix at the end. In the case above, the two differing suffixes for the walls are indeed their element ids in hexadecimal representation: 130315 decimal equals 0x1fd0b, and 130335 equals 0x1fd1f.
                    bim cad tech com


                    Related Topics