Function to call on event

Started by Vaidas, December 22, 2009, 12:14:52 AM

Previous topic - Next topic

Vaidas

Hello,

Is it strongly required to define functions on events as commands? I mean to define function as (defun c:xxx () (princ))
Question is for my interest at the moment, not for a task.


Kerry


Yes, event handlers MUST be commands,  ie C:blablaBla
Perfection is not optional.
My other home is TheSwamp

Fred Tomke

Hi, Vaidas, yes otherwise it won't work. I had a quick test with your sample. I have cutted the prefix c: from the events in lsp and odcl. No event worked anymore. But there are exceptions. Please have a look here.

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

Vaidas

Thanks Fred, I did the same and asked when not worked. Not a problem, just testing.
As newcomer, I will let you know about me from time to time :)