Changes to Drawing API Events when placing a base view of part in 2019
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We have some custom programming that runs when a baseview is placed on a sheet. Basically it's taking and automating a note that goes into the center of the view (i.e. the part number/name) when placed. Currently this runs during OnDocumentChange event. In 2018 this works fine as you place the view. The code fires after initial view placement. I have been working on upgrading our programs to inventor 2019 interop and .net 4.7. After changing this one, our OnDocumentChange code fires before the actual base view is placed on the sheet causing undesired results. (i.e. the text is placed at 0,0 because the view position is invalid) I have run the eventwatcher tool from the SDK and found that in 2019 an OnDocumentChange event with an internal name of "EditDrawingBaseView" is actually being fired and in 2018 this does not. I have searched and searched trying to find if and/or what may have changed in this regards in 2018 vs 2019 but haven't come up with anything I would say is pinpointing my issue other than this additional change firing. I will attach a word doc of my comparison. Can anyone shed any light on this for me?
Thanks in Advance.
If this response answers your question please click "Accept as Solution".