Area/Footprint of component is not working correctly
-
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
When zoom will be like this:
But when using API to get footprint the result is showing a curve line instead of a gap
-
@tuyennt Is it possible to share a simple IFC file that duplicates the problem?
-
@Pasi-Paasiala Yes, but i can not upload the .ifc public. Do you have any idea?
-
What is the component? Is it a space? How does it look like in Solibri? Does it look correct there?
-
@Pasi-Paasiala Yes this is space component, it’s look exactly like above.
The gap length is: 4mm
And the edge length: 12.488m and 3.15m
-
@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?
-
@Pasi-Paasiala The IFC file is around 550MB, i can’t attach it to mail. Do you have any other way to share?
-
@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.
-
@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:
Zooming on the side where the gap should be, it is indeed there:
Are you sure the gap is missing in your case? Did you zoom in the right place in the graph when testing?
-
@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:
zooming to the gap:
then I back to use getFootprint().getOutline() and find the draw look likes (the red one, the green one is from above)
Isn’t getFootprint().getArea() the API to get footprint of component?
Copyright © 2025 Solibri Inc. | Powered by NodeBB