Creating a filled region at the location of a selected wall

Greetings,
I am trying to create a filled region over a selected wall at the location a selected wall by finding the top surface of the wall and pulling it over XY Plane, then translating the boundary lines to the elevation of the current View Range Cut Plane to used use them as boundaries of the filled region without luck!

Filled Region-3.dyn (50.5 KB)

I do appreciate it if you could help me to solve the problem.

Regards,
Farshid

i would recommand using a detail-component!

placing it in the corresponing viewâ€¦

here a 3D variation with generic modellâ€¦

KR

Andreas

Hi @Draxl_Andreas,
Thank you for your input, but I am not sure if I understood you completely. I used the main idea of getting the location line then I found the wall width and created 2 new lines by offsetting the curve on the sides of the location line, finally I made 2 other lines using the Start end End points of the lines created in the previous step.
Unfortunately, this approach did result any better and I still get errors at the end.

Regards,
Farshid

Filled Region-4.dyn (60.3 KB)

Hi @farshidkaviani you will need pull your curves on plane, filled region is a detail items and dont have any elevation

Hi @sovitek,
Thank you for your input. I did try to pull the curves onto XY Plane but still I get an error.
Filled Region-5.dyn (63.2 KB)

Regards,
Farshid

1 Like

arhh okâ€¦not 100 sure what want to doâ€¦but could something here helpâ€¦

Ps seems you use some viewrange for your curves ? it should doesnt matter as the detail items is view specific â€¦i think

1 Like

I think that the end point of line 1 must be the start point of line 2, the end point of line 2 the start point of line 3, etc.

The quick fix: make a polycurve of the curve loops (Polycurve.ByjoinedCurves), and then explode it.

1 Like

@sovitek
Thanks again for your input, but it seems your approach does not work on the walls attached to a pitched roof which is my case.

Hello
if your wall is only variable in height
is it also variable in level?

cordially
christian.stan

try with a == -1 in the codeblock

Hello
a>0 to get the upper faces for the z component of the vector?

cordially
christian.stan

1 Like

Yes Christianâ€¦but then i think user need pull on plane

@farshidkaviani in your image you have another issue as wellâ€¦

2 Likes

Hi @jacob.small ,
Thanks for your input. I tried your approach, but it seems that it does not work in my case. I do appreciate it if you could take a look at the attached script and try it with a wall attached to a pitched roof.
Filled Region-7.dyn (71.6 KB)

Regards,
Farshid

your are right pull on plane

cordially
christian.stan

1 Like

@sovitek ,
Thank you so much. It was my bad. The only modification I made in your script was adding an OR node to make it usable for walls with both flat and sloped top surfaces.

I do appreciate your time and help.

Regards,
Farshid

Hi @christian.stan,
Thank you for your input. Your approach combined with @sovitek comment seems to be functional as well.

Regards,
Farshid

1 Like

You solution will not work on topsurface, then you will need to round the vector and pull on planeâ€¦

1 Like

@sovitek ,
You are probably right, but since I only need the bottom surface to create the filled region over a selected wall in the plan views, then it seems my approach also works both for sloped and flat top surfaces of the wall.

1 Like

happy it could work

2 Likes

Hi, I was working on something similar to this and this script is helping me understand in what direction I need to go.

I do have a question and was wondering if itâ€™s possible. The way you made a filled region over an entire wall with multiple layers(finish, isolation, finish), is it possible to create multiple filled region for each layer of the wall?