Input box - Multiple inputs

Input box - Multiple inputs

Anonymous
Not applicable
2,211 Views
4 Replies
Message 1 of 5

Input box - Multiple inputs

Anonymous
Not applicable

Hey there

 

Is it possible to make an inputbox via ilogic where I can change multiple values at once?

 

I want to fill in my drawing header, and I want to enter it manually

 

My code this far looks like this:

 

EmneThing = iProperties.Value("Project", "Description")

iProperties.Value("Project", "Description") = InputBox("Emne", "Emne", EmneThing)
While iProperties.Value("Project", "Description") = ""
iProperties.Value("Project", "Description") = InputBox("Emne", "Emne", EmneThing)
End While

DelAfThing = iProperties.Value("Summary", "Subject")

iProperties.Value("Summary", "Subject") = InputBox("Del af", "Del af", DelAfThing)
While iProperties.Value("Summary", "Subject") = ""
iProperties.Value("Summary", "Subject") = InputBox("Del af", "Del af", DelAfThing)
End While

RevisionThing = iProperties.Value("Project", "Revision Number")

iProperties.Value("Project", "Revision number") = InputBox("Revision", "Revision", RevisionThing)
While iProperties.Value("Project", "Revision Number") = ""
iProperties.Value("Project", "Revision number") = InputBox("Revision", "Revision", RevisionThing)
End While

GodkendtThing = iProperties.Value ("Project", "Authority")

iProperties.Value("Project", "Authority") = InputBox("Godkendt af", "Godkendt af", GodkendtThing)
While iProperties.Value("Project", "Authority") = ""
iProperties.Value("Project", "Authority") = InputBox("Godkendt af", "Godkendt af", GodkendtThing)
End While



InventorVb.DocumentUpdate()

 

It causes four boxes in a row, whereas I would prefer one - If possible

 

 

0 Likes
2,212 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable

Hello Yannick,

 

isn´t it possible to make a form for filling all parameters?

The form can be fired with the command: 

iLogicForm.Show()

 

Greetz

0 Likes
Message 3 of 5

Anonymous
Not applicable

It is possible, yes - I couldn't get it to fire a global form, though.

 

Is there anything special I have to do to make it fire a global form?

0 Likes
Message 4 of 5

Anonymous
Not applicable

Yes, with:

 

iLogicForm.ShowGlobal("FormName")
Message 5 of 5

c.bloedorn
Enthusiast
Enthusiast

Is there a different option these days?

I want to trigger my code automatically, but if I were to open a form via my code, the code wouldn't "pause" like it does for input boxes.

Does anyone have a solution for this?

0 Likes