Script: Projectwise checkin within autocad

Script: Projectwise checkin within autocad

Anonymous
Not applicable
1,104 Views
1 Reply
Message 1 of 2

Script: Projectwise checkin within autocad

Anonymous
Not applicable

I am working on some tools which help the general management of files on a project. As a CAD manager I want to be able to checkout all drawings on the project and run some cleanup tools over night. Ideally I don't want people coming in early and finding the drawings still checked out to me nor do I want to sit here waiting for it to checkin a whole bunch of files, so would like them to check in as they are processed.

 

Have been looking into this and can't seem to find any routines which which checkin an open drawing then close it, similar to how you can in vault. Only opportunity I seem to have is when the drawing is closed and the integrated checkin dialogue box comes up. This obviously won't work in a script.

 

 

Anyone have any ideas. Running Autocad 2015 with fully integrated projectwise.

 

Any help would be much appretiated.

 

Regards,

 

C

0 Likes
1,105 Views
1 Reply
Reply (1)
Message 2 of 2

JustoAg
Contributor
Contributor

Depending on the things want to do in your checking and cleanup process you might use reactors callback functions at the time the close command or any other is invoked which has some limitations, but it would be easier to undefine the CLOSE (or the SAVE or SAVEAS) command and redefine it the way you need it (command C:CLOSE (vla-PurgeAll *active-document*) (command ".CLOSE") ), for instance. The trick is to have a startup routine in every acad workstation session, which undefine the command of your choice, located at a central location in your network, this approach also has other benefits for your CAD management job.
Hopping to help.
Justo Aguiar

0 Likes