Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross 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
May 26, 2010
81
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.
 
Replies continue below

Recommended for you

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