Active document if editing a iam

Active document if editing a iam

Anonymous
Not applicable
368 Views
1 Reply
Message 1 of 2

Active document if editing a iam

Anonymous
Not applicable

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!

0 Likes
Accepted solutions (1)
369 Views
1 Reply
Reply (1)
Message 2 of 2

marcin_otręba
Advisor
Advisor
Accepted solution

try use ActiveEditDocument instead...

Hi, maybe you want to check my apps:


DrawingTools   View&ColoringTools   MRUFolders