lisp not working well

I am using BricsCad Classic ver 16.1.06(x64) revision 40889.
One of my lisp routine is to plot cross sections.
When I start a new drawing and run the lisp for the first time, I do not encounter any problems at all. The program executes through the end.
Attached image P1.jpg of the dialog box of my routine prompting for some info.
However, if I run the routine again it fail and the dialog box prompting to enter some info did not appear at all.
Attached the image P2.jpg after I run for the second time.
Can anyone explain?
Thanks



Comments

  • Just a guess, based on the response shown in p2.jpg:  It looks like the function tries to create a new text style, but doesn't include any way to skip that step if the style already exists. When you run the function a second time, the style would already exist (from the first run). The lisp function wouldn't know what to do about that, and so it would abort.

    But that's just a guess. If you post your lisp code, using the "Insert code" button, someone will be able to find the problem and fix it.
This discussion has been closed.