How to imput parameter using Ilogic rule when creating a new part.

How to imput parameter using Ilogic rule when creating a new part.

Anonymous
Not applicable
548 Views
6 Replies
Message 1 of 7

How to imput parameter using Ilogic rule when creating a new part.

Anonymous
Not applicable

Hello,

 

I would like to write a Ilogic rule that comes with a question screen, where I can enter some parameter, when I create a new part.

 

Excempel: I have a template for a steel plate with a scetch. I need to input 3 parameter: length, width and thickness. So the rule should come with those 3 questions: input length, input width and input thickness.

 

Don't think it is very complicated but I couldn't figure it out. Appreciate all help.

 

Thanks,

 

Toon

 

0 Likes
Accepted solutions (1)
549 Views
6 Replies
Replies (6)
Message 2 of 7

mwighton
Collaborator
Collaborator
Do you want the iLogic to be specific to that part file or for any part file you open??
Did this post help out? Hope it did.
If so please use the 'Accept as Solution' or 'Kudos' Button below.
God Bless

Mwighton
0 Likes
Message 3 of 7

Anonymous
Not applicable

I only want to do it with some of my template files. External rule and trigger new document.

 

That is not the probem 😄

 

Toon

 

0 Likes
Message 4 of 7

mwighton
Collaborator
Collaborator
Accepted solution

This is code that I just wrote that works. If this is not what you were looking for let me know and I will try to fix it to get what you want.

 

SyntaxEditor Code Snippet

Length = InputBox("Input Length", "Length", Length)
Width = InputBox("Input Width", "Width", Width)
Thickness = InputBox("Input Thickness", "Thickness", Thickness)
iLogicVb.UpdateWhenDone = True


Did this post help out? Hope it did.
If so please use the 'Accept as Solution' or 'Kudos' Button below.
God Bless

Mwighton
Message 5 of 7

Anonymous
Not applicable

Hello Mwighton,

 

Your rule works fine, I get the questions I want but is it possible to assign my answers to an existing parameter and update the part?

 

Toon

0 Likes
Message 6 of 7

Anonymous
Not applicable

Never mind, I figured that part out myself. Thanks for your help.

 

Toon

0 Likes
Message 7 of 7

mwighton
Collaborator
Collaborator
No Problem. Glad I could help.
Did this post help out? Hope it did.
If so please use the 'Accept as Solution' or 'Kudos' Button below.
God Bless

Mwighton
0 Likes