×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Creation date/time of the UG Part file

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.

RE: Creation date/time of the UG Part file

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
 

RE: Creation date/time of the UG Part file

(OP)
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.

RE: Creation date/time of the UG Part file

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
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources