Skip to content
  • Categories
Collapse
Solibri Society Forum
  1. Home
  2. General Discussion
  3. SOL/203/2.4 - Required property sets - Checking spesific values up against model

SOL/203/2.4 - Required property sets - Checking spesific values up against model

Scheduled Pinned Locked Moved General Discussion
5 Posts 3 Posters 1.1k 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.
  • S Offline
    S Offline
    SimeonRH
    wrote on last edited by
    #1

    Hi,

    I am currently working on a ruleset that checks if our model has specific values from our PBS(Project Breakdown Structure).

    I tried using SOL/9/3.1 but this did not work as intended since it doesn’t give feedback when a value is missing. I did however import the values correctly and it also excluded all empty rows.

    I am trying on SOL/203/2.4 - here I can check that a value must exist and import an excel sheet. My issue is the import itself, it does not exclude empty rows and all imports come in as enumerations, no matter how I change the import.
    I have an excel-sheet with a bunch of values, see picture below:

    9c2e99c8-8bdf-4d03-ab8e-3e6e1f7d9f00-image.png

    This is just a screenshot, the list is far bigger. Anyways, the values all the way to the right from this list, are the only ones allowed in the model. When I import them, however I try to, I get this:

    c7ea3a4c-b4fa-41dc-add2-ca073b2949c1-image.png

    They all come up as Enumeration and as such, when I run the ruleset, it fails to recognize all values that actually are correct.

    3368e427-ef8c-458b-a913-b9b83fa98ad1-image.png

    To put it short:
    I want to import a bunch of numbers from an excel-sheet and run them against the model. Any numbers that differ from the list, are missing or otherwise, will fail the control.

    I may have missed something or another rule, but as of now, I’m mentally stuck right here. Any comments on this would be greatly appreciated

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Pasi Paasiala Solibrians
      wrote on last edited by
      #2

      @SimeonRH Would it be possible for you to give the Excel file that you are trying to import?

      S 1 Reply Last reply
      0
      • S Offline
        S Offline
        SimeonRH
        replied to Pasi Paasiala on last edited by
        #3

        @Pasi-Paasiala HI Pasi, yes I can share the file.PNS Modell_final.xlsx

        Any help would be greatly appreciated!

        john.lippJ 1 Reply Last reply
        0
        • john.lippJ Offline
          john.lippJ Offline
          john.lipp
          replied to SimeonRH on last edited by
          #4

          @SimeonRH

          If I understand correctly, any listing in the Allowed Value column of these rows is allowed. Therefore, you need to a semicolon delimited list in a single cell for the Allowed Value. Please see:
          https://society.solibri.com/topic/1116/import-excel-worksheet-rule-203/17

          First, you’ll need to add the Value Type column with Enumeration listed.

          Another problem I see is that the rows values in the openings sheet are being pulled from the PNS-Model sheet, so you need to somehow concatenate those rows into a single cell for Solibri.

          In the formula, I see that it places a " " space if a value doesn’t exist. However, the TEXTJOIN function in excel that you can use to concatenate these ignores a cell only if it is blank, so you would need to change the formula as such:
          example: =IF(‘PNS-Modell’!F8=0,“”,‘PNS-Modell’!F8)
          721eb401-6309-4b3c-bb97-54aea0070b4a-image.png

          Then at the top you can add =TEXTJOIN("; ",TRUE,F4:F690) to the next column to concatinate those rows with a semicolon delimiter.
          39d23dcd-56b6-4606-b076-3eace9b38d3f-image.png

          That will then allow you to import that single row into the rule using the exel:
          72707a11-cf1a-4c81-8b87-5d18f3c11dbe-image.png

          You’ll then have them all listed in the value condition: 8aa52daf-0c3a-4697-9c00-5d5d4bba167f-image.png

          Here is the excel that worked for me: pns-modell_final_support.xlsx

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SimeonRH
            wrote on last edited by
            #5

            This appears to work, I cannot thank you enough for this @john-lipp ! Makes my job alot easier 🙂

            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