OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Hypersonic on October 04, 2008, 06:40:34 AM

Title: Cancel Autocad command......Or maybe Upgrade?
Post by: Hypersonic on October 04, 2008, 06:40:34 AM
I am trying to find out how to get the line command,,, and any other command for that matter to cancel, when a button on an object dcl button is hit...

I was then informed that this happens automatically when a button is hit in "Open" dcl,

So my bigger question is: is Open dcl different?  I thought I had the same "stuff"?

Will my code be compatible?

Thanks for any advice!
Title: Re: Cancel Autocad command......Or maybe Upgrade?
Post by: owenwengerd on October 04, 2008, 05:20:01 PM
Try adding ^C^C to the front of your event handler name on the events tab for the OnClicked event.
Title: Re: Cancel Autocad command......Or maybe Upgrade?
Post by: Kerry on October 04, 2008, 08:42:49 PM
Quote from: Hypersonic on October 04, 2008, 06:40:34 AM
............

So my bigger question is: is Open dcl different?  I thought I had the same "stuff"?

Will my code be compatible?
.......

Yes, they are different.
No, the code will not be compatible.




Title: Re: Cancel Autocad command......Or maybe Upgrade?
Post by: Hypersonic on October 05, 2008, 05:39:48 AM
So how majorly different is it?

Will "everything" need to be re-written?

Are the .odc files compatible i.e. where you make the forms etc?

are the button calls the same....

Trying to figure out how to attempt an upgrade....

Title: Re: Cancel Autocad command......Or maybe Upgrade?
Post by: owenwengerd on October 05, 2008, 06:35:02 AM
Quote from: Hypersonic on October 05, 2008, 05:39:48 AM
So how majorly different is it?
Will "everything" need to be re-written?
Are the .odc files compatible i.e. where you make the forms etc?
are the button calls the same....
Trying to figure out how to attempt an upgrade....

It depends which version of ObjectDCL you're using.  If it's an older version, your forms and code should port pretty easily with minor changes in some of your code.