Creation date/time of the UG Part file
Creation date/time of the UG Part file
(OP)
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.
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.





RE: Creation date/time of the UG Part file
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
RE: Creation date/time of the UG Part file
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.
RE: Creation date/time of the UG Part file
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