OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Syncmas on September 26, 2013, 11:38:45 AM

Title: Events show up in 2014 command list when typing in a command
Post by: Syncmas on September 26, 2013, 11:38:45 AM
Is there any way to make the OpenDCL events invisible when typing in a command in Autocad 2014? If I remove the "c:" from the defun's then they disappear however then the dialog events no longer appear to work.

Any info would be helpful.

Thanks
  Scott
Title: Re: Events show up in 2014 command list when typing in a command
Post by: Peter2 on September 26, 2013, 01:28:43 PM
Quote from: Syncmas on September 26, 2013, 11:38:45 AM
....If I remove the "c:" from the defun's then they disappear however then the dialog events no longer appear to work.....
Have you also removed the "c:" from the events itself?
Title: Re: Events show up in 2014 command list when typing in a command
Post by: owenwengerd on September 26, 2013, 05:34:35 PM
Good question. I don't know of any programmatic way to hide lisp defined commands, but it sure doesn't make sense for them to be included in the auto-complete list.
Title: Re: Events show up in 2014 command list when typing in a command
Post by: Syncmas on February 17, 2014, 11:04:45 AM
I still have not found a way to get these events from appearing. Just curious if anyone else has a way around this yet?
Title: Re: Events show up in 2014 command list when typing in a command
Post by: MiD-AwE on February 24, 2014, 02:41:52 PM
Unless all of the commands are converted to sub-functions, it won't happen. I considered many possibilities even tripping the atoms-family with no luck. I'm wondering what is the issue with ODCL calling subs instead? (Of course it'll have to be an internal change.) Maybe a future version since "AutoComplete" isn't going away; but then again, what would happen to backward compatibility?..

Sounds like a fleeting objective. just my 2ยข  :-X
Title: Re: Events show up in 2014 command list when typing in a command
Post by: owenwengerd on February 24, 2014, 03:25:25 PM
For synchronous events that are never called asynchronously, there is no technical reason why the c: prefix would be required, but I don't think there's any reliable way to call asynchronous events without initiating them as commands (which obviously requires the c: prefix). I'm assuming that you guys are dealing with modeless forms where it's not possible to fire events synchronously. For modal forms, you can just set the event handler function symbols to NIL after the form is closed.
Title: Re: Events show up in 2014 command list when typing in a command
Post by: khann on February 24, 2014, 04:24:27 PM
Hi, Owen.
I was also wondering about that, why 2014 ACAD shows up the Open DCL "c:event command" strings.
You mean there is no way to hide it, when using modeless form?
Title: Re: Events show up in 2014 command list when typing in a command
Post by: owenwengerd on February 24, 2014, 04:33:22 PM
Quote from: khann on February 24, 2014, 04:24:27 PMYou mean there is no way to hide it, when using modeless form?

If they chose to, Autodesk could expose a way to filter the list. The only other solution I can think of is to somehow push all event handler calls through a single command, but that would require major changes.