MoI discussion forum
MoI discussion forum

Full Version: Edge Flange Script

Show messages:  1-12  13-32  33-36

From: MO (MO_TE)
4 Sep   [#13] In reply to [#10]
Hi Mik

I think doing an unfold tool for all kinds of surfaces is just way beyond me! :) I don't have enough geometry/programming information to do this.

On the other hand, I read your thread about using flow as an unfold tool since 2015.
And I think this technique can be a good fit for edge flange script as it can produce simple objects.

Here are some thoughts:

In V5 there is a function to store user information to objects (setUserText), Also one to get the information. (getUserText)

I think it is possible to change the edge flange script to store some information like bend radius, bend start point, arc center, arc length and hierarchical order of the produced objects.
Then maybe a script can use this information to flatten the parts like you demonstrated in this thread. ( I don't know how yet! )
https://moi3d.com/forum/index.php?webtag=MOI&msg=7406.1

Here is a screenshot of using flow to unfold an object created with edge flange script. (Manually)


Right now I don't have the time and a solid plan to work on it.
Also, you can use freecad's dedicated SheetMetal Workbench and SheetMetal Unfold tool. Although, I haven't tried it myself.

Image Attachments:
EdgeFlange_IMG_Unfold.png 


From: Frenchy Pilou (PILOU)
5 Sep   [#14]
Cool script and links!

And with SubDiv_beta9 by Max Smirnov



Will be fine if we can have this choice! ( Negative Angle or Flip Direction don't give that!
(edit see following posts that is yet possible! :)


From: mk (MARKY)
6 Sep   [#15] In reply to [#14]
It's great for HVAC ducts routes in architecture, at least in the concept design stage.
From: Frenchy Pilou (PILOU)
6 Sep   [#16]
In fact that is working! :) Bravo!

But you must be in "Manual" and make a full rotation in "Flip Direction" before draw!

French Version
https://moiscript.weebly.com/brides-de-rives.html


From: Frenchy Pilou (PILOU)
8 Sep   [#17] In reply to [#1]
@Mo_te
Can you make something for have the possibility to recall your script at the end ?

Because now when we make Right Click it's the Extrude function who is recalled! :)
From: MO (MO_TE)
8 Sep   [#18] In reply to [#17]
Hi PILOU
The extrude part can be skipped by setting the last command parameter to true.
code:
edgeFlange 5 true false 4 Auto 1 false true

code:
edgeFlange 5 true true 4 Auto 1 false true

This way you can repeat the 'edgeFlange' command by right click.

But if you like to run the extrude command at the end, It will change the last executed command to 'extrude'. That's why right click repeats the extrude command.
Another option is to set a shortcut key for 'edgeFlange' command and run it from there.
From: Frenchy Pilou (PILOU)
8 Sep   [#19] In reply to [#18]
Of course i wish run the "Extrude" at the end of the process before the "remake" ! ;)

So maybe Michael will have a trick! ;)
From: Frenchy Pilou (PILOU)
9 Sep   [#20]
<<< Sorry no there isn’t currently a way to do that.
I have some ideas for a mechanism that would manage running a sequence of several commands in a row.
That would probably help with this case but it’s currently at the idea stage and is not implemented yet.

Michael>>>

So wait & see! :)
From: Mik (MIKULAS)
9 Sep   [#21] In reply to [#13]
Hi MO,

never mind, Edge Flange Script is awesome itself and unfold proces it can proceed manually in several ways, as you mentioned.

I know, that freeCAD dispose SheetMetal Workbanch, but I prefer to do all my construction job inside MoI, because I simply love this piece of software :-)

Mik
From: MarkBTomlinson
9 Sep   [#22]
Really nice little script, thank you for sharing!
From: Frenchy Pilou (PILOU)
17 Sep   [#23]
Works fine with SUbDiv_Beta9! :)

_SSplit
EdgeFlenge
Boolean Union
_SubDiv_Beta9

This sort of volume will be some difficult to make in pure Nurbs! :)


From: Frenchy Pilou (PILOU)
17 Sep   [#24]
So in free Alpaca :)


From: Frenchy Pilou (PILOU)
17 Sep   [#25]
The good thing seems other than rectangle face can be "Flanged" !:)
Careful if the face is not a rectangle!
You must "split" it ...if possible...for SubDiv!
All takes 10 seconds! :) (sculpting) + render (5 seconds)...



So inside Alpaca :)



Vizcom

From: Frenchy Pilou (PILOU)
18 Sep   [#26]

Alpaca






Vizcom




From: Booleano
17 Oct   [#27] In reply to [#1]
Hi

Can you explain me how I can implement this script.
I have copied it to the commads folder and then in the icons folder I have put a 138x138 pixels png file.
To invoke it I access my scrips window “attached image” and click on it.
I don't see any options for the examples that you put.
Thanks

Image Attachments:
Screenshot_1.jpg 


From: Michael Gibson
17 Oct   [#28] In reply to [#27]
Hi Booleano, do you see anything happen at all when you push your button?

Is your scripts window an .htm file that you have edited? Can you please attach it here so I can see if it's a problem in launching the command?

- Michael
From: Booleano
18 Oct   [#29] In reply to [#28]
Hi
If it is a file it is called “SidePane1.htm” and it is in the folder “commands”.

Attachments:
SidePane1.htm


From: Michael Gibson
18 Oct   [#30] In reply to [#29]
Hi Booleano, is that possibly an older version that you posted?

The one you posted seems to stop at "Voronoi" and does not contain EdgeFlange.

- Michael
From: Booleano
19 Oct   [#31] In reply to [#30]
Hi
Sorry I got the wrong file, this is the correct one
This file is also called "SidePane1.htm" and is in the "commands" folder

The last line of the file
Thanks
<moi:CommandButton icon="icons/EdgeFlange.png" command="edgeFlange"></moi:CommandButton>EdgeFlange

Attachments:
SidePane1.htm


From: Michael Gibson
19 Oct   [#32] In reply to [#31]
Hi Booleano, it looks like your button has the correct command="" value set on it.

What happens when you push the button?

Do you get an error message like this:



Or do you see a prompt in the upper right like this:



- Michael

Image Attachments:
CommandNotFound.png  SelectFaceToRotatePrompt.png 


Show messages:  1-12  13-32  33-36