Create document version for document already checked-out

Is there a function to create a new version of a document on check-in?

Parents
  • Yes, take a look at aaApi_DocumentCheckInActionDlg2().

    You may already be aware of the "problem" of finding what you are looking for in the ProjectWise SDK documentation.  A "trick" I have covered before, and cover in the ProjectWise SDK training that I teach, is to be "clever" on how you search for your item of interest.  Unfortunately, it's a bit of "you don't know what you don't know" as well as "words get in the way" type of problem, particularly if your native language is not English!

    For example, to find the function to MOVE a FOLDER, it isn't clear that the key word here is PARENT.  To move a folder, you need to change a folder's parent folder.

    That function is aaApi_SetParentProject().  And of course, in this context and this instance, a folder is called a project.  

    Another example, is how I found the function to create a version on check in, to answer the question in this post.

    What I did was to search the *.h and *.fdf files delivered with the SDK for text that I thought might be related to what I was looking for.

    To find the above function I used this search in Notepad++:

    Then by browsing through the results I noticed this:

    And clicking on line 2553 I then see this:

    Then by looking at the documentation in the help file, I found a function that will allow a new version to be created on check in!

    HTHs

Reply
  • Yes, take a look at aaApi_DocumentCheckInActionDlg2().

    You may already be aware of the "problem" of finding what you are looking for in the ProjectWise SDK documentation.  A "trick" I have covered before, and cover in the ProjectWise SDK training that I teach, is to be "clever" on how you search for your item of interest.  Unfortunately, it's a bit of "you don't know what you don't know" as well as "words get in the way" type of problem, particularly if your native language is not English!

    For example, to find the function to MOVE a FOLDER, it isn't clear that the key word here is PARENT.  To move a folder, you need to change a folder's parent folder.

    That function is aaApi_SetParentProject().  And of course, in this context and this instance, a folder is called a project.  

    Another example, is how I found the function to create a version on check in, to answer the question in this post.

    What I did was to search the *.h and *.fdf files delivered with the SDK for text that I thought might be related to what I was looking for.

    To find the above function I used this search in Notepad++:

    Then by browsing through the results I noticed this:

    And clicking on line 2553 I then see this:

    Then by looking at the documentation in the help file, I found a function that will allow a new version to be created on check in!

    HTHs

Children