With the enhanced check-in dialog in V8i, there is a checkbox that allows a user to "create new version during check-in" if the user has version rights. While I know you can disable the ability to version on a per user basis, that is an all-or-nothing approach, which overrides our need to create versions at times other than check-in. There doesn't seem to be a way to disable the checkbox. Ideally we want to disable it because we would never want users versioning at check-in. A datasource setting to this effect would be a simple and easy solution, but I can find no such setting.
Because we have very specific processes tied to user rights and workflow states, we have PWE customizations in place that rely on AAHOOK_CHANGE_DOC_VERSION to detect and control versioning actions. It works very well in XM, but when checking in a drawing in V8i, with this new "version at checkin" checkbox selected, it isn't caught by the hook.
AAHOOK_CHANGE_DOC_VERSION is only tied to aaApi_NewDocumentVersion() and aaApi_ChangeDocumentVersion() functions. And from what I can gather, the new dialog aaApi_DocumentCheckInActionDlg2() doesn't offer any hooks either. I'm not finding any help in the SDK about this. Are there any options I'm missing that would allow me to address this issue programmatically? Or do I need to file a CR?
Thanks,
Jeff
Dear Jeff
May be there is a fault in your work flow...
If you are going to microstation then when closing microststation a projectwise checking dialog is shown with a create new version check box. Check the box and proejctwise will checkin the document and create a new version. This check box call a AAHOOK_CHANGE_DOC_VERSION hook but only when the customisation is registered to be loaded by microstation if it is only registered to be loaded by projectwise explorer it will not be called when this check box is used during checkin from microstation.
Additionally this could be the solution create a simple customisation that prevents a new version from being created but only register it to be loaded for microstation and not projectwise explorer.
I have already got a hook that acts when the above check box is set in microstation working in XM.
Best Regards,
Ian Emery.