MoI discussion forum
MoI discussion forum

Full Version: Edge Flange Script

Show messages:  1-17  18-36

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 


From: Booleano
20 Oct   [#33] In reply to [#32]
Hi Michael

This screen appears

Image Attachments:
Screenshot_1.jpg 


From: Michael Gibson
20 Oct   [#34] In reply to [#33]
Hi Booleano, ok that's what is supposed to happen. So you have it installed ok.

Can you maybe describe a bit more about what problem you're having?

I thought you were having a problem with getting it set up but it sounds like you're running it ok.

- Michael
From: Booleano
20 Oct   [#35] In reply to [#34]
Hi Michael

But it only allows me 2 parameters "s" and "f"
And I want to get everything that appears in the MO example (MO_TE)
that is, the parameters of "0 1 2 3 4 5 6 7"
How is this done, I want the entire exercise
Thanks
From: Michael Gibson
20 Oct   [#36] In reply to [#35]
Hi Booleano,

re:
> And I want to get everything that appears in the MO example (MO_TE)
> that is, the parameters of "0 1 2 3 4 5 6 7"
> How is this done, I want the entire exercise

Those parameters are options you can set up in the keyboard shortcut or button that you use to launch the command.

You would use those by putting them in to the keyboard shortcut or button.

Like for a keyboard shortcut for the "Command" value instead of putting in just:
edgeFlange
you would instead put in:
edgeFlange 5 true false 4 Auto 1 false false

For a button like you have set up instead of having command="edgeFlange" you would put command="edgeFlange 5 true false 4 Auto 1 false false"

That can be helpful if you are using the command frequently with some specific values, so you can set up different shortcuts to launch it with different default values.

- Michael

Show messages:  1-17  18-36