Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Change Aktive Window in SE with VB.Net

Experimenter
Experimenter

Hi,
has someone an idea how to switch between to dokuments e.g. x1.dft and x2.dft via VB.NET.

The SolidEdge Spy gives the commands AfterActiveDocumentChange and AfterWindowActivate)
But I find no equivalent in the documentation.


Thank you in advance.

4 REPLIES 4

Re: Change Aktive Window in SE with VB.Net

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Hi,

 

simply use the method Activate of your document variable of type DraftDocument or SolidEdgeDocument.

Kind regards,
Wolfgang Kunert - www.wksyspro.de

Re: Change Aktive Window in SE with VB.Net

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Hi,

 

just use the method Activate of your document variable.

Kind regards,
Wolfgang Kunert - www.wksyspro.de

Re: Change Aktive Window in SE with VB.Net

Experimenter
Experimenter

Thx
With objApp.Documents.Item(2) the IDE didn't show the method "Activate".

With
objDraft = objApp.Documents.Item(2)
objDraft.Activate()

 

"Activate" was directly shown.Smiley Happy

Re: Change Aktive Window in SE with VB.Net

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Hi,

 

without using a document variable directly, casting would have helped.

 

CType(objApp.Documents.Item(2), SolidEdgeFramework.SolidEdgeDocument).Activate
Kind regards,
Wolfgang Kunert - www.wksyspro.de