Hello together,
I am trying to get the RectangleObject from the path, which I get from OffsetPolyline3DByDistance, see Visual-Code-Picture below.
If I use float numbers (-0,15m; +0,15m) it works fine, but if I put 0 it just doesnt work.
The Allplan says:"RectangleObject: Path is empty". I tried to build the new polyline from the origin polyline and use ExecPythonScript with the following code in order to make a lind of if-statement, but I think I want to much from this node. I think the node can not return objects..
def function_to_execute(count, polyline_with_offset, polyline_original): if count == 1: result = polyline_with_offset elif count == 0: result = polyline_original return result
My questions:
1) what could be the reason, why the polyline with 0 offset even doesnt get created?
2) how can I build something as "if statement":
if distance = 0 → use polyline_original; else → use polyline_with_offset?
Thank you very much in advance for the help.