Skip to content
  • Categories
Collapse
Solibri Society Forum
  1. Home
  2. Comments & Feedback
  3. Tech Talks
  4. Area/Footprint of component is not working correctly

Area/Footprint of component is not working correctly

Scheduled Pinned Locked Moved Tech Talks
10 Posts 4 Posters 692 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.
  • T Offline
    T Offline
    tuyennt
    wrote on last edited by
    #1

    Hi @Solibrians,
    I’m now get stucking with API get footprint of component beacause the area return of API is not correct.

    I have component like below image, with the gap in the red circle
    0e3ff319-b114-452d-99bb-e64e56c54968-image.png

    When zoom will be like this:
    0af2aa03-8130-4395-87c9-9110ea251d32-image.png

    But when using API to get footprint the result is showing a curve line instead of a gap
    56e7a17e-e4aa-41f3-8ad8-bb00e87d3cd0-image.png

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

      @tuyennt Is it possible to share a simple IFC file that duplicates the problem?

      T 1 Reply Last reply
      1
      • T Offline
        T Offline
        tuyennt
        replied to Pasi Paasiala on last edited by
        #3

        @Pasi-Paasiala Yes, but i can not upload the .ifc public. Do you have any idea?

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

          What is the component? Is it a space? How does it look like in Solibri? Does it look correct there?

          T 1 Reply Last reply
          0
          • T Offline
            T Offline
            tuyennt
            replied to Pasi Paasiala on last edited by
            #5

            @Pasi-Paasiala Yes this is space component, it’s look exactly like above.
            The gap length is: 4mm
            36ad3b07-05f5-4f70-8b3f-f4bc8c5512af-image.png

            And the edge length: 12.488m and 3.15m
            80c45336-66ce-4b5c-bc82-748a02fc7bf0-image.png

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

              @tuyennt Can you create such a space in a CAD tool and share with us? If not, can you send the IFC you have to [email protected] and refer this Society post?

              T 1 Reply Last reply
              0
              • T Offline
                T Offline
                tuyennt
                replied to Pasi Paasiala on last edited by
                #7

                @Pasi-Paasiala The IFC file is around 550MB, i can’t attach it to mail. Do you have any other way to share?

                M 1 Reply Last reply
                1
                • M Offline
                  M Offline
                  manuel.furia Solibrians
                  replied to tuyennt on last edited by
                  #8

                  @tuyennt said in Area/Footprint of component is not working correctly:

                  @Pasi-Paasiala The IFC file is around 550MB, i can’t attach it to mail. Do you have any other way to share?

                  If you send an email to [email protected], they will instruct on how to deliver the file. Please remember to include the GUID of the problematic component.

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    manuel.furia Solibrians
                    wrote on last edited by manuel.furia
                    #9

                    @tuyennt I cannot reproduce your problem, the gap is there in the footprint for me. I tested with the model you sent and the following code:

                    SMC.getModel().getComponentByGuid("1i4MKnpJr5S90peCvnYpda").get().getFootprint().getOutline()
                    

                    As a result, I get the points:

                    [(67.95, 54.126), (81.95, 54.126), (81.95, 64.668324497), (81.890478735, 65.68282960100001), (81.869988116, 65.79915983000001), (81.668163548, 66.94496696799999), (81.30156932, 68.172983014), (80.795603453, 69.350440193), (80.164043576, 70.450941802), (79.36084161800001, 71.256153156), (78.335653954, 71.780354389), (77.200775632, 71.96000000000001), (67.95, 71.96000000000001), (64.81, 71.96000000000001), (64.81, 69.764), (64.9127696, 69.764), (67.946, 69.764), (67.946, 57.466595105), (67.946, 57.275999833), (67.95, 57.275999833), (67.95, 57.216990233), (67.95, 54.126)]
                    

                    Which drawn look like this:

                    Screenshot 2025-04-17 104939.png

                    Zooming on the side where the gap should be, it is indeed there:

                    Screenshot 2025-04-17 104924.png

                    Are you sure the gap is missing in your case? Did you zoom in the right place in the graph when testing?

                    1 Reply Last reply
                    0
                    • H Offline
                      H Offline
                      HieuVH-FPT
                      wrote on last edited by HieuVH-FPT
                      #10

                      @manuel-furia I used getFootprint().getArea()
                      As a result, I get the points:
                      ===group

                      (67.94999694824219, 54.125999450683594), (67.94999694824219, 57.21698760986328), (67.94999694824219, 57.2760009765625), (67.94599914550781, 57.46659469604492), (67.94599914550781, 69.76399993896484), (64.80999755859375, 69.76399993896484), (64.80999755859375, 71.95999908447266), (77.20077514648438, 71.95999908447266), (78.33565521240234, 71.78034973144531), (79.36084747314453, 71.25615692138672), (80.16404724121094, 70.45094299316406), (80.79560089111328, 69.3504409790039), (81.30156707763672, 68.17298126220703), (81.66816711425781, 66.9449691772461), (81.86998748779297, 65.79915618896484), (81.8904800415039, 65.68283081054688), (81.94999694824219, 64.66832733154297), (81.94999694824219, 54.125999450683594)
                      

                      The draw look likes:
                      f433a431-847a-4c3f-9ee4-5a3e0d0912ba-image.png
                      zooming to the gap:
                      d5ab0390-c1e6-40ca-b0a3-2b9bc8464fa4-image.png

                      then I back to use getFootprint().getOutline() and find the draw look likes (the red one, the green one is from above)
                      39a0d287-e00c-410d-8d04-51c52fbcbd9d-image.png
                      Isn’t getFootprint().getArea() the API to get footprint of component?
                      0d454e27-8efb-4ead-bd0d-cfd8d8d6f1ad-image.png

                      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