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


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
2 REPLIES 2

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:

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