Transaction Manager - exit code during transaction?

Transaction Manager - exit code during transaction?

Anonymous
Not applicable
335 Views
1 Reply
Message 1 of 2

Transaction Manager - exit code during transaction?

Anonymous
Not applicable

Hi All,

 

I'm working on a series of macros, and I've noticed some weird behaviour with Inventor. I think it's related to debugging the macros - which use transaction manager - and ending (breaking) the code execution during a transaction. The errors are things like the browser not updating (sketches and features have been deleted, but are still showing in the browser. Or selecting features in the browser highlights them in the window, but they don't highlight in the browser) and other errors like sketch geometry not changing on the screen when I modify them - after a few zoom-in/zoom-out actions it will eventually refresh.

 

So my question is: Is there any problems with breaking code execution after starting a transaction? If so, what should I be doing?

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

YuhanZhang
Autodesk
Autodesk

You can explicitly call the View.Update or Document.Update in your transaction. If you still see some problems can you paste your code here?



If this solves the problem please click ACCEPT SOLUTION so other people can find it easily.



Rocky Zhang
Inventor API PD
Manufacturing Solutions
Autodesk, Inc.

0 Likes