TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: JohnSnow on April 23, 2021, 03:46:47 AM

Title: Display the process?
Post by: JohnSnow on April 23, 2021, 03:46:47 AM
Does anyone know if there is anyway to display the whole process when executing?
So, say I have a lisp that the function is to generate a circle and delete that circle and regenerate a circle with increased radius and delete and on and on. Now I want the whole process can be seen instead of being executed all at once. It is pretty much like I want to generate a dynamic ripple if you get what I am saying. Something like a timer control? Is it possible in lisp? Thanks.
Title: Re: Display the process?
Post by: David Bethel on April 23, 2021, 06:23:02 AM
(trace) can help for autolisp calls

There is also (setvar "CMDECHO" 1)

I use old versions and can use crtl Q to toggle output to the printer rather than screen

Maybe VLIDE has some tools as well

Good luck  -David
Title: Re: Display the process?
Post by: tombu on April 23, 2021, 07:58:49 AM
Use AutoCAD DELAY (Command) https://help.autodesk.com/view/ACD/2022/ENU/?guid=GUID-C352A9F4-0057-43AD-9642-9BAA881224F8
Code: [Select]
(command "DELAY" 1000) would pause 1 second.
Add one after each circle is added.
Title: Re: Display the process?
Post by: JohnSnow on April 25, 2021, 12:05:29 AM
Thank you David and Tom.

Is there any script as examples? What I want to achieve is, say, move a object from point a to point b. I want the movement to be shown smoothly instead of showing the object directly being moved to point b. I feel like the functions like 'delay' is 'hard' to achieve this?
Title: Re: Display the process?
Post by: tombu on April 25, 2021, 09:34:02 AM
Look at modifying theses smooth view transition system variables in your code:
VTDURATION (System Variable) https://help.autodesk.com/view/ACD/2022/ENU/?guid=GUID-6D9BC830-B194-4B07-91F5-9F9B359CF870
VTENABLE (System Variable) https://help.autodesk.com/view/ACD/2022/ENU/?guid=GUID-D0AF2638-DE82-4CB2-A7D8-C771EB5CDD6D
VTFPS (System Variable) https://help.autodesk.com/view/ACD/2022/ENU/?guid=GUID-2E80345C-4F20-4C50-A7EC-0E361A388B68
Title: Re: Display the process?
Post by: JohnSnow on April 26, 2021, 11:38:10 PM
Thank you very much. I will have a look