The Global Archicad Community

Stay informed. Get help. Share your knowledge.

Everything about using Libraries and Library Parts - Doors/Windows/Objects/Stairs etc. (Example: How can I display a Transom above my Door?)

Moderators: Karl Ottenstein, LaszloNagy, ejrolon, Barry Kelly, Gordana Radonic, nbalogh, mnguyen, gkmethy, Gergely Feher

If you use the "ResizeContour" operation of the PolygonOperations-Addon I would expect that the resulting polygon is offsetted in all directions.
But clearly something terrible has happened here:

offset.png (9.37 KiB) Viewed 276 times

You see, the "start" point of the closed (!) polygon was not taken into account in the right manner. Now I have this corner chamfered away, gone for good.
The expected behaviour should be of course a new rectangle....
Reminds me of when you try to offset a polygon that is not closed in AutoCAD... Is there a way to ensure that the input polygon is closed?
Hi, can You share Your object placed in a .pla file? No other way I can comment this problem. Polygon operations usually work fine. Maybe there is something wrong with the initial data. I have found some bugs in the add-on and example objects.
Hi runxel,

the problem is probably that when working with dicts, PolyOperations "ResizeContour" expects a polygon whose last point is not the same as the first.

Dict polygons always have to be closed, polylines can be open or closed. A closed polyline/polygon means the last point is not the same as the first (think of it as auto-closed). An open polyline has one more vertices than edges.