# Curve into square

**URL:** <https://discourse.mcneel.com/t/curve-into-square/118725>\
**Category:** Rhino\
**Tags:** windows\
**Created:** [February 17, 2021, 4:37pm UTC](https://discourse.mcneel.com/t/curve-into-square/118725 "2021-02-17T16:37:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![darrenrogers23](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/darrenrogers23/32/725750_2.png) [@darrenrogers23](https://discourse.mcneel.com/u/darrenrogers23)\
**Post date:** [February 17, 2021, 4:37pm UTC](https://discourse.mcneel.com/t/curve-into-square/118725/1 "2021-02-17T16:37:01Z")

</div>

Hi can anyone help me. In the image you will see a structure I have built. I started with a line drawing and then piped it in rhino. But what i actually want is a for the structure to made of .6mm by .6mm solid square and not a circle as you get with the pipe command.  
Is there anyway I can turn my line drawing into a 3 dimensional square. Exactly like the image provided except not circular but square.  
I hope its clear what I am asking. Any help would be greatly appreciated.  
Thanks  
Darren

 ![aaa11](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/7/0/0/7006f1e976226a58765cd70d6930b0e61c9779fe.png)  
 ![aaaa1](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/2/b/1/2b18372ebb24f395aa4423463468e32acc1b22d6.png)

---

<div class="post-metadata">

**Author:** ![encephalon](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/encephalon/32/611970_2.png) [@encephalon](https://discourse.mcneel.com/u/encephalon)\
**Post date:** [February 17, 2021, 4:43pm UTC](https://discourse.mcneel.com/t/curve-into-square/118725/2 "2021-02-17T16:43:56Z")

</div>

if you look around on the forum somebody made a script for this, not sure was it @Helvetosaur

---

<div class="post-metadata">

**Author:** ![darrenrogers23](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/darrenrogers23/32/725750_2.png) [@darrenrogers23](https://discourse.mcneel.com/u/darrenrogers23)\
**Post date:** [February 17, 2021, 5:00pm UTC](https://discourse.mcneel.com/t/curve-into-square/118725/3 "2021-02-17T17:00:28Z")

</div>

Ok thank you although I don’t know what a script is. I will have to look into that, pretty new to this. In the meantime I have been looking and I think what I need to do is called square pipe.  
Although rhino is telly me unknown when I type square pipe.  
Thanks for taking the time.  
Best  
Darren

---

<div class="post-metadata">

**Author:** ![Helvetosaur](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/helvetosaur/32/635974_2.png) [@Helvetosaur](https://discourse.mcneel.com/u/Helvetosaur)\
**Post date:** [February 17, 2021, 5:44pm UTC](https://discourse.mcneel.com/t/curve-into-square/118725/4 "2021-02-17T17:44:40Z")

</div>

Yes, I have a square pipe script, but the problem is that you can’t really control the orientation of the square cross-section around the curve. In any case the joints at the corners will be difficult. Here is the result of a simple cube standing on a corner:

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/8/0/5/805ac59ded8ab47ab0c78817b1b1527e1f708022.png)

Anyway, fwiw, here is the script. To run it, copy it to your desktop, then type \_RunPythonScript, browse to the .py file on your desktop and Open. Then follow the command prompts.

[MultisquarePipe.py](https://discourse.mcneel.com/uploads/short-url/6VKzDesfFOMDG6uCeWUYREOKZlu.py) (5.8 KB)

---

<div class="post-metadata">

**Author:** ![darrenrogers23](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/darrenrogers23/32/725750_2.png) [@darrenrogers23](https://discourse.mcneel.com/u/darrenrogers23)\
**Post date:** [February 17, 2021, 6:55pm UTC](https://discourse.mcneel.com/t/curve-into-square/118725/5 "2021-02-17T18:55:37Z")

</div>

Thanks very much. I see what you mean alright. That may be a problem for me. But I will take a look and have a mess around and see what happens.  
Thanks for your time.  
Appreciate it.  
Best  
Darren
