variables to parameters

variables to parameters

anavazquez5LRNJ
Enthusiast Enthusiast
250 Views
2 Replies
Message 1 of 3

variables to parameters

anavazquez5LRNJ
Enthusiast
Enthusiast

How can I pass variables from visual basic.net to inventor?
I would like to change the width and length of any part from a form in vb.net, I would appreciate if you could guide me.

0 Likes
251 Views
2 Replies
Replies (2)
Message 2 of 3

Lucas.dolinarVFXZU
Collaborator
Collaborator

you won't even need code to do that...

do you know about the Forms? in the ilogic tab, subtab: Form / global form >RMB> create new form

 

you can add parameters to this form.

Message 3 of 3

marcin_otręba
Advisor
Advisor

yiou can do it trough:

 

oDoc.ComponentDefinition.parameters.UserParameters.Item("height").Expression = "height-10mm"  'valid parameter name must be enter

 

or 

 

oDoc.ComponentDefinition.parameters.UserParameters.Item("height").value = 245 ' adjust to correct inventor unit.

Hi, maybe you want to check my apps:


DrawingTools   View&ColoringTools   MRUFolders