Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Need help - unable to execute the Journal file in the command line mode

Status
Not open for further replies.

GKR123

Computer
Jan 25, 2019
2
Experts,

Attached is my journal.vb file which I created from NX. All I did as part of recording this Journal file is to load a CAD Part, perform the simulation and finally solving it to generate the .op2 file for NX Nastran.

I am trying to play this journal in the command line and it always fails at line # 121 as shown below:

Dim part1 As NXOpen.Part = CType(theSession.Parts.FindObject("Part2"), NXOpen.Part)

It fails saying

Journal execution results for C:\Apps\NX12\UGII\journaltry.vb...
Runtime error:
NXOpen.NXException: No object found with this name
at NXOpen.PartCollection.FindObject(String name)
at NXJournal.Main(String[] args) in C:\Users\pack\AppData\Local\Temp\NXJournals1396\journal0.vb:line 121

Can anyone help me get this one fixed as it is very urgent.

I am attaching my journal file.

 
 https://files.engineering.com/getfile.aspx?folder=a1fa41c7-f96a-4574-8f6b-ca3fa539fb80&file=journal.vb
Replies continue below

Recommended for you

As the error says, there is probably no part with the name "Part2" when you re-run the journal.

The Getting Started with NX/Open guide has a section describing various ways to deal with FindObject problems.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor