Stupid runing of a Lisp program - CUI load vs Load Application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I’ve created more programs, we made a toolbar for them, the programs were added through the CUI (Customize User Interface) . So the programs will load automatically by starting the AutoCAD program.
But one program LINE_REMOVE_ZIGZAG somehow works strange / wrong this way. But if I load this program through the Tools/Load Application than works fine.
vs
The program makes in the polyline:
- deletes from the polyline the segments with 0 length
- if between two ARCs are two or more lines will leave only one
- f one ARC segment became from more ARCs with the same radius than maks from them only one ARC
- Checks if there is a "zigzag" in the polyline
An example for good an stupid working:
What I could figure out, that there are two "big" SUB rutine in the program. Removing the lines with zero length and union of the ARCs.
I've made from this two separate programs and added them to AutoCAD so they should load automatically by starting the program.
Only added the Removing the zero length (RDI:clean_poly) had no affect to the running of the program - it worked still stupid way.
But added the RDI:ARC_union to the automatic load by start - the program worked well. Probably in this SUBrutine should be something.
Has anybody an idea how can make the loading way once running good and once wrongly the program ???
The same code should run the same way always, or ???
Has anybody experienced similar thing?