Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Purge Action with Pro-toolkit

kishorev

New member
Hello,


I searched for the Pro-Engineer Purge option in the Pro-Toolkit API,It is not availible.Where as there are some notification API are avail with Purge.I need to do the purge action using pro-toolkit API directly.How do i perform this action?


With regards,


Kishore V
 
Hi Williams,


I build the application using pro-Toolkit.Application will saves some of the models


in the assembly.When i save the model it creation new versions.
I would like to delete the old version created using the Pro-Toolkit API.When i


search for the API i could not find any.


Is it possbile to do in Pro-Tookit the similar activity using the Pro-Engineer>Open


Systme Window,Purge.


I hope you understand what i am trying for.



With regards,
Kishore V
 
If you are connected to a workspace then I think you can do it with Pro/INTRALINK Toolkit but I would not advise it. Otherwise if you are not connected to a workspace then you will have to interrogate the file system and delete all previous versions of a file. For example if you have myasm.asm.1, .2, .3, .4. Then you will have to write an algorithm that deletes all myasm.asm* except the .4 version.
 
Hi,

A small batch file might be useful.
1.Set the current directory:
CHDIR %cd%
2. Then call purge.bat
@CALL "C:\Program Files\proeWildfire 3.0\bin\purge.bat"

I hope this information is useful.

Regards,
Amar


Edited by: amar.junankar
 
Kishore,

I have done this for one of my application.

Here are the steps
1. Call PTK API ProFilesList() to get the files in the specified directory, filter out the unwanted files.
2. Call C function - qsort, to arrange the array of elements returned by ProFilesList().
3. Visit all the elemets of the sorted queue and call the C function remove(str), to remove the unwanted elements.

Let me know if you require the code for the same, send me your email ID.

- Jay
 
Hello Jay,


Thank you very much fro your idea.I do not require any code as if now.I will ask if it really required.


Are you Indian? Are you working in UK Company or...?





With regards,


Kishore V
 

Sponsor

Back
Top