iLogic - Behaviour

iLogic - Behaviour

NachoShaw
Advisor Advisor
179 Views
1 Reply
Message 1 of 2

iLogic - Behaviour

NachoShaw
Advisor
Advisor

Hey

 

i have a need to use ilogic for the most simplest of functions-

If (LENGTH + MAX_TOL) > RAKE_HEAD Then
	LENGTH_HEAD = LENGTH
Else
	LENGTH_HEAD = RAKE_HEAD
End If
	
InventorVb.DocumentUpdate()

 

the logic in the function works but it requires 2 model updates for it to work. This is placed in a part Base Model. I had this last week also when using a Max function for a largest value, the result was correct after 2 updates, not one......

 

Why is this and what do i need to do in order for the function to run and update once?

 

 

Thanks

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 Likes
180 Views
1 Reply
Reply (1)
Message 2 of 2

NachoShaw
Advisor
Advisor

This appeared to resolve it

 

 

iLogicVb.UpdateWhenDone = True

 

 

whats the 

InventorVb.DocumentUpdate()

for then if it doesnt truly update?

 

 

thanks

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 Likes