Cancel
Showing results for 
Search instead for 
Did you mean: 

Find part properties and attributes in teamcenter integrated NX

Creator
Creator

Hello, I am new to teamcenter . I wanted to know how do you get attributes and properties of part in teamcenter integrated NX? How do I get to know the PH,PRH ,PN and PRN of part inside the teamcenter for automatically changing the part when required ?? Please somebody help me out with this doubt of mine .

 

.addComponent("%UGMGR=3.2 PH= znZx0h PRH=zrex0hgUh PN= part1 PRN=001 RT =\"has shape"\ AT=\"UG master part file\".......

How do I get the values of the PH, PRH, PN ; Is there a way to find the values of the latter ??

Help me out..

6 REPLIES 6

Re: Find part properties and attributes in teamcenter integrated NX

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

The recorded journal does it the complex way, that you don't need. It uses the encoded part file name.

You are able to use just the part object, since addComponent() has three overloads, see the documentation.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.2, 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 Smiley Wink
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide

Re: Find part properties and attributes in teamcenter integrated NX

Creator
Creator
Thank you a lot for your assistance.
Highlighted

Re: Find part properties and attributes in teamcenter integrated NX

Creator
Creator

I was wondering if we could get model history data of .prt file in the NX using NXOpen or spreadsheet . I have tried find it in the features class but I couldn't find it . Can you please help me out with this topic ?? 

Re: Find part properties and attributes in teamcenter integrated NX

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

I'm unclear exactly what you want...

1) Part history (Menu -> info -> Part -> Part History)

2) Part Navigator (e.g. "Datum Coordinate System(0)" then "Block(1)"...)

 

 

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


Re: Find part properties and attributes in teamcenter integrated NX

Creator
Creator

I am talking about the history of the steps which we do;for example-

sketch(1)

extrude(2)

sketch(3)

revolve(4)

I have attached the screenshot of the above description .Please help me out!!!!screenshoot.png

Re: Find part properties and attributes in teamcenter integrated NX

Phenom
Phenom

The function below will return the tag of first feature in  part.

static tag_t ask_first_feature(tag_t part)
{
    tag_t
        feat = NULL_TAG;

    while (!UF_CALL(UF_OBJ_cycle_objs_in_part(part, UF_feature_type, &feat))
        && (feat != NULL_TAG))
        if (UF_OBJ_ask_status(feat) == UF_OBJ_ALIVE) return feat;

    return NULL_TAG;
}

Pass this tag to UF_MODEL_ask_next_feature to traverse the feature tree.

 

Suresh
Technisites Australia
Production: NX10.0.3 Developing: NX11.0.2.7, NX12.0.2, NX1847,
Development: C++, C# .Net, VB .Net, Python, KF