Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

[Journal] 'Rule already exists' Exception

Status
Not open for further replies.

kukelyk

Industrial
Mar 21, 2005
315
Hi,
on the GTAC, there is a create_and_unite_two_solids vb journal, which is operating with UFModl functions,
Modl.CreateBlock1
Modl.CreateCyl1
UniteBodies
When I run it the first time, everything is OK. But the second run produces an exception at the first createblock line.
Could anyone please help me out?



----
kukelyk
 
Replies continue below

Recommended for you

You got here faster than I thought..
Im on NX12
Link

----
kukelyk
 
The error comes about because the journal assigns names to the system expressions that are created for the block and cylinder. On the 2nd run of the journal, those named expressions already exist and it throws an error. If you rename the expressions after the first run, the 2nd run will complete. If you want to create named expressions in your code, always check to see if an expression with that name already exists.

www.nxjournaling.com
 
ah, i let myself be fooled by the error message, what told 'rule'..
I could have thought..
big thanks cowski

----
kukelyk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor