How to retrieve Created and Modified time of features in the part navigator using NXOpen ?
How to retrieve Created and Modified time of features in the part navigator using NXOpen ?
(OP)
Hello Everyone ,
Can someone help me out with a sample code on how i can retrieve the created and modified time of all the features in the part navigator using NXOpen in NX 7.5?
Thanks and Regards,
Amitabh
Can someone help me out with a sample code on how i can retrieve the created and modified time of all the features in the part navigator using NXOpen in NX 7.5?
Thanks and Regards,
Amitabh





RE: How to retrieve Created and Modified time of features in the part navigator using NXOpen ?
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: How to retrieve Created and Modified time of features in the part navigator using NXOpen ?
Well in that case i am interested in knowing as to how i can retrieve the modified and the created date using NXopen of all the features in the part navigator.
Regards,
Amitabh
RE: How to retrieve Created and Modified time of features in the part navigator using NXOpen ?
Don't know if you can get the that information directly, but you can use the "theSession.information.displayfeatureinformation()
method and redirect the information window output silently to a temporary file that you then read, parse and delete.
RE: How to retrieve Created and Modified time of features in the part navigator using NXOpen ?
1. Use a NXOpen function or the equivalent wrapper function to get the part history creation version number and last modified version number for the object
int UF_OBJ_ask_cre_mod_versions
(
tag_t object,
int * creation_version,
int * lastmod_version
)
2. Use the part history to get the dates and time.
int UF_PART_ask_nth_history
(
UF_PART_history_list_p_t history_list,
int index,
char * * program,
char * * user,
char * * machine,
int * version,
int * gmtime
)
Frank Swinkels
RE: How to retrieve Created and Modified time of features in the part navigator using NXOpen ?
Regards,
Amitabh
RE: How to retrieve Created and Modified time of features in the part navigator using NXOpen ?
I implemented the wrapper functions as mentioned by you.
But the second wrapper function gives the part history and not the feature history ehich i am actually interested in, can you let me know how can i get the feature history (of all the features in the part navigator)
Regards.
Amitabh
RE: How to retrieve Created and Modified time of features in the part navigator using NXOpen ?
For each feature in work part call UF_OBJ_ask_cre_mod_versions
This will return the creation_version (ie the part version when the feature was created)
and return the lastmod_version (ie the part version when the feature was last modified)
Now call UF_PART_history_list_p_t history_list and use creation_version to get gmtime for the
feature creation and call UF_PART_history_list_p_t history list and use lastmod_version to gmtime for the feature last modified.
Hope this helps.
Frank Swinkels
RE: How to retrieve Created and Modified time of features in the part navigator using NXOpen ?
This really helped and i am able to get what i had ventured out for.
By the way Wish you a Very Happy New Year.