cancel
Showing results for 
Search instead for 
Did you mean: 

How would I create these naming rule counters

Esteemed Contributor
Esteemed Contributor

I know how and where I need to specify the naming rule counters in BMIDE, but I don't want to split the complex counters into multiple simple ones, because it is not allowed to use regular expressions for patterns used with counters.

 

Here is an example of some of the counters I want to implement for the type Mfg0MENCTool.

Tool group ............... Start .... End
--------------------------------------------
Spherical Mills .......... TL0400 ... TL0599
End Mills ................ TL2000 ... TL3999
Fix boring bars .......... TL6000 ... TL6099
Adjustable boring bars ... TL6100 ... TL6299
Reamers .................. TL6300 ... TL6499
Taps ..................... TL6500 ... TL6999

 

For example the spherical mills would be split into the counters "TL04"NN and "TL05"NN, where it would be good to use "TL0"%[45][0-9]{2} instead.

 

What would be the best and future proove solution to this problem?

 

Thanks in advance.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community
4 REPLIES

Re: How would I create these naming rule counters

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

> What would be the best and future proof solution to this problem?

 

Use stupid numbers and move the intelligence (classification) someplace else.

 

Best,

/Randy


Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11.0.1.mp01 | SW 2016 | TcUA 11.2.3
Evaluating:AW 3.2

Re: How would I create these naming rule counters

Esteemed Contributor
Esteemed Contributor

We do use MTL and will be migrating to MRL in the near future.

 

We also talked to our machine operators and they wanted a rough classification trough the tool numbers.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community

Re: How would I create these naming rule counters

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

If you're stuck using intelligent numbers then you'll probably be forced into a codeful solution involving user_part_no.c to implement the numbering logic.

 

Best,

/Randy


Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11.0.1.mp01 | SW 2016 | TcUA 11.2.3
Evaluating:AW 3.2

Re: How would I create these naming rule counters

Esteemed Contributor
Esteemed Contributor

The only way currently is to cheat and split text strings into multiple parts.

 

Example:

Tool group ............... Start .... End ...... Pattern
----------------------------------------------------------------------
Spherical Mills .......... TL0400 ... TL0599 ... "TL0"NNN
End Mills ................ TL2000 ... TL3999 ... "TL2"NNN and "TL3"NNN
Fix boring bars .......... TL6000 ... TL6099 ... "TL60"NN
Adjustable boring bars ... TL6100 ... TL6299 ... "T""L6"NNN
Reamers .................. TL6300 ... TL6499 ... "TL6"NNN
Taps ..................... TL6500 ... TL6999 ... "TL""6"NNN

This is just an excerpt, so there are more tool groups, but you should get the concept.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community