Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creation date/time of the UG Part file

Status
Not open for further replies.

aszepesi

Mechanical
Joined
May 26, 2010
Messages
81
Location
HU
Dear All,

How could I read the creation date or time with VB.NET function from the Part File tab of the Display Part Properties window?

I tried the GetHistoryInformation() function from the GTAC but it gave the original Siemens template file's creation date ([Program=,User=,Machine=NT Intel,Time=27 Mar 2008 10:38,Version=1]) back.
Thanks for your help.
 
This could be potentially difficult, because the information you posted is the creation date of the TEMPLATE part used to create your actual design part.

I believe your best bet is to retrieve the date properties from the file on the system (*.prt). There should be a possibility to extract the creation date. Unfortunately I don't think that there is no NX API function for this; therefore you might have to dig into the standard .NET classes.

HTH!

Marc
NX Software Developer
 
MarckyMON,
The Part History is an array. I can read it with GetHistoryInformation(). I have to read that first array element which contains non null User value. This array element's time has a small minutes difference to the Creation Time of Properties. but maybe it is good for the customer.

I found the right functions in C in the help but these functions do not have .Net equivalent functions.

I will try that you offer.
Thanks a lot.
 
Dutra1000,

I am aware that the part history information can be retrieved as an array and I know of the function in C. However, a large portion of the .NET API are wrappers for their C variant. You might want to check out the UF.* functions, in particular the UF.Part.AksPartHistory, which is the wraper for UF_PART_ask_part_history.

HTH!

Marc
NX Software Developer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top