Sweep1 Issue - Sweep could not be created

I’m trying to create window frames using sweep, but its not working…how can I solve this problem… I attached a screenshot of the GH definition and the section, rail I’m using.
CrossSection


Hi @Husam_Melhem ,

Welcome! Please upload your GH file with the profile curves and window outline curves internalized and I’m happy to help!

Thankyou,
sure here are 2 files the grasshopper one and a rhino file with the outline and the section
and I did initialize the in grasshopper.

Outline.3dm (54.2 KB)
Window.gh (17.3 KB)

Taking a look now,

FYI though your geometry was referenced in GH but not internalised.

Here’s how you internalise data (right click menu):

While this will break the referenced link, it is best for sharing files on the forums and such so that you don’t need to share the Rhino file, only the GH script.

1 Like

Hi @Husam_Melhem ,

Please take a look at the attached gh file and let me know if this works for your purposes.

Sweep1 in gh doesn’t seem to like closed curves, so in this example I’m splitting the window outline in two, sweeping both and recombining after the sweep.

I also added some logic for you to select the “snapping edge” of the cross section and specify the rotation value of the cross section locally on the window frame outline.

Keeping your original cross section profile in world xy is a good practice (in my opinion) as this allows you to draft various profiles easily from the Top View and then we can always assume the origin plane of the cross section profile is already world xy and therefore we don’t need to query it with additional logic prior to the orientation component.

Graph Space:

Model Space:

20230801_Window_Response_01a.gh (22.4 KB)

3 Likes

Thank you @michaelvollrath this solves the problem, it works perfectly.
Didn’t know about the internalize data ‘’.‘’

1 Like

Happy to hear that! Happy window sweeping :window:

1 Like

nice solution!!

1 Like

Thanks @Rajeev2