- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've created some VBA codes that automatically generates REVIT file. It basically changes all the sub-assembly's representation to "REVIT" and deletes all the unnecessary small parts. Then, it will show a UI dialog asking "Ready to Shrinkwarp?" If the user chooses yes, it will do a shrinkwrap and export a adsk file.
My problem is that, the only way I know to generate a dialog is by "msgbox" but the limitation is that when a dialog shows, you are only allowed to click the options but not to operate anything in Inventor. My question is: is there a way that allows me to pan over the model to check if everything is okay, or even better, to make some changes if necessary before I click "yes"?
Thank you for your help in advance!
Sub RevitGenerator()
'Code to replace the representation and delete unnecessary code.
oUserInput = MsgBox("READY TO SHRINKWRAP?", 4)
If oUserInput = 7 Then
Exit Sub
ElseIf oUserInput = 6 Then
Call createShrinkWrapWithDefinition
End If
End Sub
Solved! Go to Solution.