pause autolisp?

Started by Hypersonic, December 06, 2008, 10:55:38 AM

Previous topic - Next topic

Hypersonic

is it possible to pause autolisp while a dialog is open?

Thanks, Bob. :)

owenwengerd

What exactly do you mean by "pause AutoLISP"? You can use (dcl_DelayedInvoke) to execute a lisp function after a specified period of time has elapsed, but this doesn't pause AutoCAD in any way.
Owen Wengerd (Outside The Box) / ManuSoft

Hypersonic

I have a routine that is checking for a certain condition on a selection set...

When the proper condition is not met, it calls a dialog box that requests an answer.....

The problem is the autolisp routine does not stop when the dialog pops up, it continues to cycle through the
rest of the selection set.....
Ugh

Kerry

Can you post(attach) a sample dialog and code to show your problem ?

Perfection is not optional.
My other home is TheSwamp

Hypersonic



(foreach ent entlist
(setq entdat (entget ent))

(if (and (not done) (OR (eq "POLYLINE" (cdr (assoc 0 entdat)))  (eq "LWPOLYLINE" (cdr (assoc 0 entdat))) ) )
    (progn
     (plineinfo ent);sets start1 and a bunch of other info......
     ;(command "change" ent "" "p" "c" "1" "")
     (arrowit start1 "ztemp")

     (select_profile_type);This is the routine that calls the dialog.... but it keeps going...

    (notify "in mr and it kept going")
     (addx ent tlist)
     (ssadd (entlast) ssret)
    );end progn
  )


(defun select_profile_type ()

;if open already, close the old and reopen.....
(if (Odcl_Form_IsActive Parametrics_PM_select_profile_type)
  (Odcl_Form_Close Parametrics_PM_select_profile_type)
)

(Odcl_Form_Show Parametrics_PM_select_profile_type)
(set_initial_values_profile_type)
)


);end foreach

owenwengerd

It looks like you are not using OpenDCL, but to do what you want will require a modal dialog, not a modeless one.
Owen Wengerd (Outside The Box) / ManuSoft

Hypersonic

Awesome, I can try that.

Thanks Owen!