.NET

Reply
Mentor
santoshr0114
Posts: 161
Registered: ‎03-21-2012
Message 1 of 10 (255 Views)

Monitor Check-In Event. Validation before Check-In into vault

255 Views, 9 Replies
11-14-2013 09:01 PM

Dear All,

 

Before the file is checked Into vaule using AutoCAD i need to do few validations, for that i am planning to use the Longtransactionmanager and checkInEvent.

But if i used that the document will be in Lock mode. and gets checkin into vault.

 

i want to stop the checkIn event from processing if the validation failes.

 

Is there any way to get this done?

 

Regards

 

Regards
Santosh
Distinguished Mentor
BlackBox_
Posts: 741
Registered: ‎02-25-2013
Message 2 of 10 (234 Views)

Re: Monitor Check-In Event. Validation before Check-In into vault

11-15-2013 01:17 PM in reply to: santoshr0114

Not sure I am understanding you fully... If that is not possible, rather than preventing the check in from happening, perhaps you could instead evaluate the drawing after it has been checked in, is not locked, and then could close/remove the drawing based on failed validation?



"Potential has a shelf life." - Margaret Atwood


Autodesk Exchange Apps ~ Autoloader ~ AutoCAD Security

*Expert Elite*
dgorsman
Posts: 5,106
Registered: ‎10-12-2006
Message 3 of 10 (228 Views)

Re: Monitor Check-In Event. Validation before Check-In into vault

11-15-2013 02:13 PM in reply to: BlackBox_

Or, disable any kind of check-in operation unless the file has a validation flag set.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
Adopt. Adapt. Overcome. Or be overcome.
A good question will be halfway to a good answer.


Distinguished Mentor
BlackBox_
Posts: 741
Registered: ‎02-25-2013
Message 4 of 10 (221 Views)

Re: Monitor Check-In Event. Validation before Check-In into vault

11-15-2013 03:32 PM in reply to: dgorsman

Not sure that I know enough about Vault to have chimed in this early, but certainly if that is possible to accomplish, I'd have to say it would be the OP's preference... Question was how to accomplish?



"Potential has a shelf life." - Margaret Atwood


Autodesk Exchange Apps ~ Autoloader ~ AutoCAD Security

Mentor
santoshr0114
Posts: 161
Registered: ‎03-21-2012
Message 5 of 10 (206 Views)

Re: Monitor Check-In Event. Validation before Check-In into vault

11-15-2013 09:31 PM in reply to: BlackBox_

OK. Let me try to focus on a simple operation

 

I have a template for my drawings created in AutoCAD 2014 which is block with attributes.

The user has to enter all the values for all the block attributes before CHECKING-IN the file into vault.

 

Sometimes user forget some values or might purposely leave a value null due to shortage of time.

 

I want to validate the block attributes for any null value before the CHECKIN operation is completed.

 

If there are any invalid or null values the CHECKIN operation has to be aborted and display a message.

 

This is what i want to do.

Regards
Santosh
Mentor
santoshr0114
Posts: 161
Registered: ‎03-21-2012
Message 6 of 10 (202 Views)

Re: Monitor Check-In Event. Validation before Check-In into vault

11-15-2013 09:40 PM in reply to: BlackBox_
It s event operation. It has nothing to do with vault.
When the checkin event is triggered do some validation and if it fails abort the event.
Regards
Santosh
Mentor
santoshr0114
Posts: 161
Registered: ‎03-21-2012
Message 7 of 10 (202 Views)

Re: Monitor Check-In Event. Validation before Check-In into vault

11-15-2013 09:41 PM in reply to: dgorsman
Ok. This sounds like a workaround. How can i do this?
Disable the checkin?
Regards
Santosh
Distinguished Mentor
BlackBox_
Posts: 741
Registered: ‎02-25-2013
Message 8 of 10 (187 Views)

Re: Monitor Check-In Event. Validation before Check-In into vault

11-16-2013 08:04 AM in reply to: santoshr0114
I do not use vault, so take from this what you like, it sounds like you either need to hook the checkin event itself, or the Document lockModeChanged event for the insert / attedit / bedit command (forget which one is invoked with block attribute value entry at insert, and am only in my iPhone now), in order to evaluate the block's attribute values and then call the Veto() Method accordingly.



"Potential has a shelf life." - Margaret Atwood


Autodesk Exchange Apps ~ Autoloader ~ AutoCAD Security

Mentor
santoshr0114
Posts: 161
Registered: ‎03-21-2012
Message 9 of 10 (181 Views)

Re: Monitor Check-In Event. Validation before Check-In into vault

11-16-2013 08:24 AM in reply to: BlackBox_

This sounds ok, this will work only if the user tries to modify the file, or use the block editing command.

 

I jumped through this link today.

http://through-the-interface.typepad.com/through_the_interface/2006/08/cancelling_an_a.html.

 

I am currently travelling. Will try and get back on Monday and its good that you are in sunc using iPhone..

 

Regards
Santosh
Distinguished Mentor
BlackBox_
Posts: 741
Registered: ‎02-25-2013
Message 10 of 10 (173 Views)

Re: Monitor Check-In Event. Validation before Check-In into vault

11-16-2013 08:52 AM in reply to: santoshr0114

Instead of the link you posted, using an escape character, this is one that came to mind when making my earlier post, which actually provides a means by which to Veto() the Command:

 

http://through-the-interface.typepad.com/through_the_interface/2006/10/blocking_autoca.html

 

 

 

... I've made use of this methodology recently here, offering user three TaskDialog options when QUIT is invoked, as an example:

 

http://forums.augi.com/showthread.php?146176-Warning-upon-exit&p=1248909&viewfull=1#post1248909

 

 

 

Cheers



"Potential has a shelf life." - Margaret Atwood


Autodesk Exchange Apps ~ Autoloader ~ AutoCAD Security

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community