Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iLogic Form Button

14 REPLIES 14
SOLVED
Reply
Message 1 of 15
zdhrichard
6369 Views, 14 Replies

iLogic Form Button

1. Can I add more button into iLogic Form?

2. I want to define "Button1" to run "Rule 1", "Botton 2" to run "Rule 2". How can I do it?

Rich

Autodesk Inventor Professional 2018 (64 Bit Edition)
Build: 284, Release 2018.3
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory
14 REPLIES 14
Message 2 of 15
Cadmanto
in reply to: zdhrichard

Richard,

I don't know much about iLogic, but am learning slowly.

Are you talking about a custom button on the ribbon that executes a rule?

Can post an image?

 

check.PNGIf this solved your issue please mark this posting "Accept as Solution".

Or if you like something that was said and it was helpful, Kudoskudos.PNG are appreciated. Thanks!!!! Smiley Very Happy

 

New EE Logo.PNG

Inventor.PNG     vault.PNG

 

Best Regards,
Scott McFadden
(Colossians 3:23-25)


Message 3 of 15
zdhrichard
in reply to: Cadmanto

Here it for example iLogic Form. There are three button which Inventor defined. I want to add more button and define their function.

 

Rich

Autodesk Inventor Professional 2018 (64 Bit Edition)
Build: 284, Release 2018.3
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory
Message 4 of 15
zdhrichard
in reply to: zdhrichard

I do not know why I cannot attached my attachment.

If you are familiar with iLogic Form, you should know what I am talk about. There are three pre-defined buttom in Inventor iLogic Form (OK, Apply and Cancel). I want add more.

Rich

Autodesk Inventor Professional 2018 (64 Bit Edition)
Build: 284, Release 2018.3
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory
Message 5 of 15
zdhrichard
in reply to: Cadmanto

Here is the picture which has Inventor pre-defined Button in Form.

Rich

Autodesk Inventor Professional 2018 (64 Bit Edition)
Build: 284, Release 2018.3
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory
Message 6 of 15
Cadmanto
in reply to: zdhrichard

Thank you for sharing that.  That is not quite what I was thinking it was.  I was thinking these were buttons on the ribbon.

 

check.PNGIf this solved your issue please mark this posting "Accept as Solution".

Or if you like something that was said and it was helpful, Kudoskudos.PNG are appreciated. Thanks!!!! Smiley Very Happy

 

New EE Logo.PNG

Inventor.PNG     vault.PNG

 

Best Regards,
Scott McFadden
(Colossians 3:23-25)


Message 7 of 15
mrattray
in reply to: zdhrichard

Simply flip to the rules tab in the form editor and drag the rule onto the form.

 

Capture.JPG

Mike (not Matt) Rattray

Message 8 of 15
zdhrichard
in reply to: mrattray

Thanks lot Mike.

It is what I want.

Could you please let me know how I can adjust the location of this button also? This button is mixed with pre-defined botton in Forms.

And coudl you please help me answer the question in fololowing link?

http://forums.autodesk.com/t5/Inventor-General/Parameters-Sequence-in-iLogic-Form/td-p/4861938

Thanks.

Rich

Autodesk Inventor Professional 2018 (64 Bit Edition)
Build: 284, Release 2018.3
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory
Message 9 of 15
mrattray
in reply to: zdhrichard

The form editor doesn't give you much freedom to get creative with your forms. There's no way to mix it in with the predefined buttons, sorry. If you really need to have more control over your forms, you can create one in the API. The API forms feel much more like VB.net forms, which I suspect you're familiar with and can be called using a simple VBA macro which in turn can be called using iLogic. This is something I've had to do in the past.
Mike (not Matt) Rattray

Message 10 of 15
danmachen1990
in reply to: zdhrichard

Hi zdhrichard, I am trying to create a unique part number generator through inventor using radio group buttons like you have in your picture here.

I am interested in the code you used to create the model part number in the text box from inputting values to the radio buttons.

Could you help?

Message 11 of 15
zdhrichard
in reply to: danmachen1990

Hello Danmachen,

 

For using radio group buttons, you need to know your input at first. So, when you define a user parameter, you could use let it to be multi-valve list and put your multi input in the list.

 

 

Then in Forms under iLogic Browser Tab, you could Add Form. In Form Editor, you could pull the parameter into the form which you want to make. Rest, I believe you could do it. You do not need extra code, I think.

Rich

Autodesk Inventor Professional 2018 (64 Bit Edition)
Build: 284, Release 2018.3
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory
Message 12 of 15
danmachen1990
in reply to: zdhrichard

Ok, So I have created radio group buttons using the form and with fx parameters and made them multi-choice.

 

I want to be able to take the Selections from the Radio Group buttons to piece together a part number. For example in the attached image, I would like the part number to be:

AA_EXAMPLE_PART_NAME_A

 

I Noticed you had something similar to this in an attached image you posted.

 

Ideally, I would like a macro which automatically numbers part in sequential order based on their Structure and Section (see image).

 

Example:

 

AA001A_EXAMPLE_PART_NAME

AA002A_EXAMPLE_PART_NAME2

EC001A_EXAMPLE....

 

ETC.

 

Any advice?

 

If I can create this sequential numbering system in the VB script, I can assign it to a variable and use it to name my file to the same as the part number.

 

 

Message 13 of 15
zdhrichard
in reply to: danmachen1990

You could seperate your P/N to a few parts (parameters). As I could see:

The first parameter could be "FIRST" multi-valve as: (AA001A, AA002A, EC001A,.......)

The second one could be "SECOND" as (PART_NAME, PART_NAME2, ......)

If you like, you could make more.

 

Then you could get your part number by code

 

PartNumber = FIRST &  "_EXAMPLE_" & SECOND

 

You could add this code to a rule. And let this rule to be run after finish your input. And you may or may not need to put code

iLogicVb.UpdateWhenDone = True

 

to let it be updated.

 

 
Rich

Autodesk Inventor Professional 2018 (64 Bit Edition)
Build: 284, Release 2018.3
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory
Message 14 of 15
danmachen1990
in reply to: zdhrichard

That sounds like exactly what I want.
Do you know how I can extract the AA or EC from the selection of the radio buttons on the user form?

The part number needs to be generated from the user form selection.

Thank you.

Dan
Message 15 of 15
zdhrichard
in reply to: danmachen1990

Two options could do.

1. Seperate the first two letter as a parameter.

2. If you do not want tdo so, you could use following code:

 

FirstTwoLetter = mid (partnumber, 1, 2)

or

 

FirstTwoLetter = left (partnumber, 2)

 

Rich

Autodesk Inventor Professional 2018 (64 Bit Edition)
Build: 284, Release 2018.3
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report