cancel
Showing results for 
Search instead for 
Did you mean: 

Does tag of an object differes in session or it is permanent for each object. New bee

Pioneer
Pioneer

Hi,

 

i know in NX every object has got a tag, I wonder

 

1. Is this Tag for each object is generated per session? or 

2. Tag is permanent for a particular object?

 

Thanks,

Maddy.

Windows 7 x64
NX 8.5, NX 9.0. And also NX 7.5
Visual Studio 2010 SP1, 2012 Update 4
9 REPLIES

Re: Does tag of an object differes in session or it is permanent for each object. New bee

Esteemed Contributor
Esteemed Contributor

Tags are session specific, there is usually no permanent identification that can be used across sessions, despite of giving the object a unique name, attribute, etc.

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: Does tag of an object differes in session or it is permanent for each object. New bee

Esteemed Contributor
Esteemed Contributor

As Stefan said, tags can NOT be relied on across sessions (or even closing & re-opening a part in the same session)

 

There is the concept of a Handle, which (supposedly) *is* persistant across sessions.

See UF_TAG_ask_handle_of_tag, or search the API docs for "Handle"

 

Or you could define your own object (as a UDO) and the links it stores are persistant across sessions.

 

Possibly other ways as well.

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Re: Does tag of an object differes in session or it is permanent for each object. New bee

Esteemed Contributor
Esteemed Contributor

I think the question here is, what the OP tries to achieve, since in most cases handles are not needed at all.

 

I personally never had the need to use a handle, for instance.

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: Does tag of an object differes in session or it is permanent for each object. New bee

Valued Contributor
Valued Contributor

Hi,

 

you can use the functions UF_TAG_compose_handle  and UF_TAG_decompose_handle  to handle Tags from one session to an other.

 

 

Mit freundlichen Grüßen / With kind regards

i.A. Dipl.-Ing. (FH) Stefan Walder
CAD Management
----------------------------------------------------------------------
stefan.walder@gira.de
Tel +49(0)2195-602-319, Fax +49(0)2195-91603-319
----------------------------------------------------------------------
Gira Giersiepen GmbH & Co. KG, Elektro-Installations-Systeme
Industriegebiet Mermbach, Dahlienstraße, 42477 Radevormwald, Deutschland

Intelligente Gebäudetechnik von Gira. www.gira.de

Handelsregister AG Köln HRA 16352
Persönlich haftende Gesellschafterin: GAV Management GmbH,
Handelsregister AG Köln HRB 50479
Geschäftsführer: Dipl.-Kfm. Dirk Giersiepen, Alfred A. Bulitz,
Dipl.-Kfm. Thomas Musial
----------------------------------------------------------------------
Gira Giersiepen GmbH & Co. KG, Electrical installation systems
Industriegebiet Mermbach, Dahlienstraße, 42477 Radevormwald, Germany

Intelligent building technology by Gira. www.gira.com

Register of Business Names: AG Köln HRA 16352
Partner Personally Responsible: GAV Management GmbH,
Register of Business Names: AG Köln HRB 50479
Managing Directors: Dipl.-Kfm. Dirk Giersiepen,
Dipl.-Wirtschafts-Ing. (FH) Oliver Borchmann, Alfred A. Bulitz,
Dipl.-Kfm. Thomas Musial

Re: Does tag of an object differes in session or it is permanent for each object. New bee

Pioneer
Pioneer

Hi,

 

But how to use them on a Tag of an object to identify the object from previous session.

 

Regards,

Maddy

Windows 7 x64
NX 8.5, NX 9.0. And also NX 7.5
Visual Studio 2010 SP1, 2012 Update 4

Re: Does tag of an object differes in session or it is permanent for each object. New bee

Esteemed Contributor
Esteemed Contributor

Handles are left over from a time, where there where no object names, attributes and some such.

 

Currently you would use object names or attributes to identify objects across sessions.

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: Does tag of an object differes in session or it is permanent for each object. New bee

Pioneer
Pioneer
Hi, stefan,

Yes true, thats what i found out,

But my only question is,

If the object got *renamed and moved* in tree then, i will not get the same
object by using name.

Do you think we cant to do anything In this case? and there is no
workaround as well.

Regards,
Maddy
Windows 7 x64
NX 8.5, NX 9.0. And also NX 7.5
Visual Studio 2010 SP1, 2012 Update 4

Re: Does tag of an object differes in session or it is permanent for each object. New bee

Esteemed Contributor
Esteemed Contributor

If you rename/move a feature in the part navigator, *attributes* should still be there.

Try (right click on feature) -> Properties -> "attributes" tab - assign some attributes to your features, then move them around.

 

I think the only other way might be (non-trivial to implement) UDOs (User defined objects).  These can store persistant links to other objects.  The behavior of the UDO object can be based on those links (e.g. if the "linked to" object is deleted, should the UDO be deleted or retained or ...)

 

 

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Re: Does tag of an object differes in session or it is permanent for each object. New bee

Esteemed Contributor
Esteemed Contributor

For features, there are two names, the feature name and the display name, where only one can be changed by the part navigator rename context entry.

The other one must be changed through the properties dialog of the feature.

Attributes are independent and can only be changed through the objects properties.

 

Anything that should be persistent over sessions should be expressed in attributes.

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