How do you keep your Form from opening multiple times?
see example code in <cdsroot>/share/pcb/examples/skill/cmds/cns-design.il
Need a unique global form handle:
; doing this prevents multiple instances of form from opening unless(boundp('_AcDesignFw) _AcDesignFw = nil
Then at top of your code's entry point (this code needs to use prog statements instead of let to allow return):
;; Good pratice - If form is open expose it and return fw = _AcDesignFw when( fw axlUIWExpose(fw) return(t) )
In reply to fxffxf:
Thank You. Works perfectly as expected.