- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've just rewritten some lisp routines that were annoyingly laggy, to use entmake instead of autocad commands. It has cured the laggyness. The routines include some simple trans commands to allow them to work in a UCS where the x,y plane is rotated around the z axis.
Attached example-LP-routines
I don't really understand these lines - (setq NORMAL (trans '(0.0 0.0 1.0) 2 0 T)) and (cons 50 (angle '(0.0 0.0 0.0) (trans '(1.0 0.0 0.0) 2 NORMAL T))) but they work ...
In another routine I'm now trying to entmake a 4 point closed polyline (rectangle) that is based upon the 2 points of a textbox, in a UCS created as follows -
WCS is rotated some amount in the x,y plane around the z axis.
UCS is set to view.
UCS is then rotated -90 degrees around the x axis and a new UCS is set.
The routine in it's current form using autocad commands works fine in the above UCS settings, but I'd like to convert it to using entmake, and I can't figure out what trans coding I need to use.
Routine attached in it's current working form with the possible entmake part currently commented out (arrow-down-annotated).
Thanks for any help.
Solved! Go to Solution.