Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

vb journal to open non master part

Status
Not open for further replies.

Ehaviv

Computer
Jul 2, 2003
1,012
Hi

Interactively when I open a non master part sometimes its open in drafting anf
Sometimes in modeling.

Programmaticly how to open a non master
part and know if it will be opened
in modeling mode or in drafting mode.

Is the command are the same for both
native and manager.

Thanks in advanced.
 
Replies continue below

Recommended for you

Is opening non master is the same as
opening a master part in nx manager
mode I mean programmaticly using the same
function.

Thank you.
 
Hi,
You can set a customer default to open the part according to the last "saved" actif module (modeling, drafting, cam...)

Regards
Didier Psaltopoulos
 
Thank you Didiet

But I need to do it in vb journal api
methods.
 
I got it by journal recording.
 
Hi Ehaviv,

OK, but it's so simple with this setting in Customer default

entre_application_where_file_was_saved_jztcfv.jpg


Regards
Didier Psaltopoulos
 
Thank you Didier.

The problem was arise to me in a journal
that need to open a non master drawing
that should be run regardless of the
setting on the customers default.

I can't know the setting of each user.
 
Hi Cowski and thank you.

Actually these lines of code, I got by
Journal recorded as mentioned on my above post.

theSession.Parts.SetNonmasterSeedPartData(strOpenString)
Dim prtBasePart As BasePart
Dim lsBasePart As PartLoadStatus
prtBasePart = theSession.Parts.OpenBaseDisplay(strOpenString, lsBasePart)
lsBasePart.Dispose()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor