Message 1 of 2

Not applicable
03-21-2018
12:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello!
suppose i have a IAM open, the active document is the iam.
Then i doubleclick a IPT in it, so it can be edited.. this event is then fired:
Private Sub oAppEvents_OnActivateDocument(DocumentObject As _Document, BeforeOrAfter As EventTimingEnum, Context As NameValueMap, ByRef HandlingCode As HandlingCodeEnum) Handles oAppEvents.OnActivateDocument 'fire after document Is made active If BeforeOrAfter = EventTimingEnum.kAfter Then fillfields(DocumentObject) End If End Sub
Problem is that the active document remains the main IAM and not the part I am editing. How can i retrive the part I am editing from within this sub?
Thank you!
Solved! Go to Solution.