Checkin Active Document in PDM by API

Hello Everyone,

I am not able to checkin the active document in WorkgroupPDM by API .Any Closed document can be checked in easily.How to checkin active Document

Thanks

SolidworksApi macros
Answers 2
KR
KR 2012-05-02 Best Answer

Anjani,

I don't think you can.  IPDMWConnection::CheckIn says in the description, "Checks the specified closed document into the vault."  And I don't see any other methods for check-in.

Keith

Video Tutorials for the SolidWorks API

SF
SF 2012-05-02

When the document is open, get the path of the document (.GetPathName).

Close it (.CloseDoc)

Check in the document (.CheckIn)

And reopen it once check in is done.