cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

When using openfile the drawing tree and model tree dont open.

Visitor

When using openfile the drawing tree and model tree dont open.

Hello all,

When i use openfile() to open a drawing the drawing tree and model tree are not opened in PROE.

I use the following statement:

var Descr = MdlDescrFactory.Create (pfcCreate("pfcModelType").MDL_DRAWING, Filedrawing, null);

var Mdl = oSession.OpenFile(Descr);

I hope somebody can help me.

Many thx in advance.

Greetings from Alwin

2 REPLIES 2
Highlighted

When using openfile the drawing tree and model tree dont open.

Alwin,
based on my J-Link knowledge you need to create a model window, activate
it and display the model in it after you have opened the file by using
these functions:

Interface IpfcBaseSession: Function CreateModelWindow (Mdl as IpfcModel)
as IpfcWindow
Interface IpfcWindow: Sub Activate ()
Interface IpfcModel: Sub Display ()

Good luck.
Bjarne




alwin Hekker <a.hekker@broshuis.com>
15-02-2010 20:44
Please respond to
alwin Hekker <a.hekker@broshuis.com>


To
-
cc

Subject
[proecus] - When using openfile the drawing tree and model tree dont open.






Hello all,
When i use openfile() to open a drawing the drawing tree and model tree
are not opened in PROE.
I use the following statement:
var Descr = MdlDescrFactory.Create (pfcCreate("pfcModelType").MDL_DRAWING,
Filedrawing, null);
var Mdl = oSession.OpenFile(Descr);
I hope somebody can help me.
Many thx in advance.
Greetings from Alwin


Site Links: View post online View mailing list online Send new post
via email Manage your subscription Use of this email content is
governed by the terms of service at:
Highlighted

RE: When using openfile the drawing tree and model tree dont open.

Thx for the response i indeed had to use the activate() method to get the model and drawing tree.

Announcements
Business Continuity with Creo: Learn more about it here.