Cancel
Showing results for 
Search instead for 
Did you mean: 

Reset Naming Rule Number Generator

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Hi,

 

We are making a roll back and would like to manually reset the intial value for the naming rules ( 'NNNNN' ) to a different number.

 

Changing the InitialValue in BMIDE did not do the trick. Is there something we are missing?

 

Thanks in advance

 

 

5 REPLIES

Betreff: Reset Naming Rule Number Generator

Solution Partner Legend Solution Partner Legend
Solution Partner Legend

Try to change the Rule 'NNNNN' to 'nnnnn'. This should reset the value.

Michael
Teamcenter UA | NX CAD

Betreff: Reset Naming Rule Number Generator

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

I meant to write 'nnnn'. Sorry for confusion.

Betreff: Reset Naming Rule Number Generator

Solution Partner Legend Solution Partner Legend
Solution Partner Legend

No matter how the rule pattern looks like. The trick is to change the pattern in a way to keep the rule and reset the counter. Therefore, try to change any 'N' to 'n' or 'A' to 'a' or 'X' to 'x'. This is just an example...

Michael
Teamcenter UA | NX CAD

Betreff: Reset Naming Rule Number Generator

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Thank you for the explanation. I will get back to you after testing :) Kudos!

Betreff: Reset Naming Rule Number Generator

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

You can build a query to get the naming rule counters, see the XML code below.

<?xml version="1.0" encoding="utf-8"?>
<!-- GENERATED BY: PLM XML SDK 7.0.4.411 -->
<plmxml_bus:PLMXMLBusinessTypes xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
 xmlns:plmxml_bus="http://www.plmxml.org/Schemas/PLMXMLBusinessSchema"
 language="en-us" time="16:15:31" schemaVersion="6" author="Teamcenter V10000.1.0.70_20161101.00" date="2018-04-05" languages="en-us fr-fr de-de it-it es-es pt-br">
<plmxml_bus:SavedQueryDef id="id1" name="Admin - Find nameing rule counters" nameRef="#id2" descriptionTextRef="#id3" queryFlag="0" queryClass="NameCounter">
<Description>Search for naming rule counters</Description>
<ApplicationRef application="Teamcenter" label="RyBABjYqRr3t9B" version="RyBABjYqRr3t9B"></ApplicationRef>
<plmxml_bus:QueryClause id="id4" stringValue="SELECT qid FROM NameCounter WHERE &quot;counter_name&quot; = &quot;${counter_name = }&quot;"></plmxml_bus:QueryClause></plmxml_bus:SavedQueryDef>
<plmxml_bus:Text id="id2" primary="en-us"></plmxml_bus:Text>
<plmxml_bus:Text id="id3" primary="en-us"></plmxml_bus:Text></plmxml_bus:PLMXMLBusinessTypes>

You will have to import the query with query builder to use it.

Deleting the counter object is the same as resetting it, since there is no ability to reset it.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.1, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0

Employees of the customers, together we are strong ;)
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide