Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Input box - Multiple inputs

4 REPLIES 4
Reply
Message 1 of 5
yannicknielsen
1755 Views, 4 Replies

Input box - Multiple inputs

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

 

 

---------------------------------------------------------------------------------------------------------------------
Product Design Suite Ultimate 2021
4 REPLIES 4
Message 2 of 5
D_Bo
in reply to: yannicknielsen

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

Message 3 of 5
yannicknielsen
in reply to: D_Bo

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?

---------------------------------------------------------------------------------------------------------------------
Product Design Suite Ultimate 2021
Message 4 of 5
D_Bo
in reply to: yannicknielsen

Yes, with:

 

iLogicForm.ShowGlobal("FormName")
Message 5 of 5
c.bloedorn
in reply to: yannicknielsen

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?

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

Post to forums  

Autodesk Design & Make Report