Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iLogicVb.UpdateWhenDone = True

5 REPLIES 5
Reply
Message 1 of 6
DeerSpotter
1907 Views, 5 Replies

iLogicVb.UpdateWhenDone = True

how can i get this code to pop up a msg box asking me "do you want to update the assembly?" and then i get to choose yes or no.

 

iLogicVb.UpdateWhenDone = True

 

thanks!

Image and video hosting by TinyPic
..........................................................................................................................
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.
..........................................................................................................................


See My LinkedIn Profile
5 REPLIES 5
Message 2 of 6
mrattray
in reply to: DeerSpotter

box = MsgBox("Would you like to update?", vbYesNo, "Update")
If box = vbYes Then
    InventorVb.DocumentUpdate()
End If

 

Mike (not Matt) Rattray

Message 3 of 6
DeerSpotter
in reply to: mrattray

that didnt work,

 

but i fixed it.

 

iLogicVb.UpdateWhenDone = MsgBox("Would you like to update?", vbYesNo, "Update")
If iLogicVb.UpdateWhenDone = vbYes Then
    InventorVb.DocumentUpdate()
End If

Image and video hosting by TinyPic
..........................................................................................................................
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.
..........................................................................................................................


See My LinkedIn Profile
Message 4 of 6
mrattray
in reply to: DeerSpotter

Why didn't it work? I wouldn't expect what you have there to work.

Mike (not Matt) Rattray

Message 5 of 6
DeerSpotter
in reply to: mrattray

I am using inventor 2010.

 

it wouldn't recognise the box command.

Image and video hosting by TinyPic
..........................................................................................................................
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.
..........................................................................................................................


See My LinkedIn Profile
Message 6 of 6
mrattray
in reply to: DeerSpotter

There is no "box" command. "box" is a variable that holds the results of the MsgBox prompt. What was the error message you received?
Mike (not Matt) Rattray

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

Post to forums  

Autodesk Design & Make Report