Skip to content
  • Categories
Collapse
Solibri Society Forum
  1. Home
  2. General Discussion
  3. Checking the length of Attribute Names

Checking the length of Attribute Names

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 618 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nathan Ashton
    wrote on last edited by
    #1

    Dear all,

    Hello! Our Prefabricator uses Allplan and needs to import my IFC to prepare the building elements contained for prefabrication.

    Problem: Allplan does not accept Attribute Names which are longer than 32 characters.

    Is there any way to check in Solibri that no Attribute names are longer than 32 characters?

    Thanks in advance,

    Nathan

    Nathan Ashton
    BIM Coordinator
    Nokera Planning, Leipzig, Germany

    john.lippJ 1 Reply Last reply
    0
    • john.lippJ Offline
      john.lippJ Offline
      john.lipp
      replied to Nathan Ashton on last edited by
      #2

      Hi @nathan-ashton

      Interesting question. Unfortunately, out-of-the-box there isn’t a very elegant way to check the number of characters a property name has. It is easy to do for a property value, but for the name of a property, you’ll have to search for the violating property sets of a components that are returned.

      You can use wildcard characters ? and * in the component filters for the property set name and property name:
      977e6c05-920e-4033-929a-0f4f3989bcf5-image.png

      So for example, this will match any component that has any property set (using the * for the property set name) that has a property name that has 33 characters or more (using ???*)

      You can use the Property Rule Template with Component Filters in this manner as a gatekeeper rule and pass the components that pass to a Manual Checking Rule to then look over the properties of the returned failed components. Unfortunately, it doesn’t state what property matched ???*.

      Alternatively, you could use Comparison Between Property Values to check that no components are contained in the project:

      2a26b8b3-6b7d-4e0a-bc83-3743e9824885-image.png
      70ee7126-0b9b-4826-95c2-eba106a1536a-image.png

      The best method would be to use the API to create a rule that counts the length of properties itself.

      More information on this can be found here:
      https://society.solibri.com/category/7/solibri-developer-platform

      If you don’t have access but would like to view these pages, please email [email protected].

      I created a simpler example of using the API to return the properties that have names that are greater than 32 characters in a Javascripted ITO:
      5aa2cfac-74cf-4515-a9af-c328e184fc3a-image.png

      It lists in a comma separated list any property names along with their Pset they reside in that are 33 or greater chars.

      Hopefully you can find this of some use. It is included in the example .smc here:Solibri Building_MAX_32_Char.smc

      1 Reply Last reply
      0
      • N Offline
        N Offline
        Nathan Ashton
        wrote on last edited by
        #3

        Hi @john-lipp,

        Thanks so much for your suggestions, I tried them out and found the Property Rule Template with Component Filters as a Gatekeeper tricky, as it woudl disappear from my checked Rules view as soon as the check was done (after I adapted it to my own parameters), and the Comparison Between Property Values didn’t quite react to my Project parameters as expected.
        However you brought me to a new idea of how to use the Manual Checking Rule :
        8885a5f1-ae46-49b6-b966-1b308fc07d7b-image.png
        I include all of my own models according to their category, and search the company PSet for Attribute values with more than 32 characters.

        Best Regards, Nathan

        Nathan Ashton
        BIM Coordinator
        Nokera Planning, Leipzig, Germany

        1 Reply Last reply
        0

        Copyright © 2025 Solibri Inc. | Powered by NodeBB

        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories