- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I've recently been trying to work with an AutoLISP routine that was written in 1997 and I've run into a few problems with the TRIM command. I haven't worked much with trim commands in general, so I've been doing my best to piece together what it's trying to do.
So I know that when this code was originally written, you would give the TRIM command some reference lines and then a point so that it could trim the desired section of the line. When you type TRIM into the command line now, however, I see that you're able to hover over a section of a line and it will assume what the section of line that you're looking to trim is.
In my case, I'm looking to trim off the top section of a circle, as shown below:
The image on top is what I'm currently working with and the image on the bottom is what I'm looking to get to (ignoring all the added centerlines, angles, and pass lanes of course).
As of right now, the code that is written into the program is:
(command "trim" NOZL "" "" (polar BASEPT3 ( + LNOZANG (* 0.5 pi)) (* 0.5 TSTDIA)) "" "")
(setq TRIMMER (ssadd (entlast)))
In this case, the NOZL selection set is referring to the 3/4 of a rectangle that is sitting on top of the circle. I've verified that the polar command that is spitting out a reference point is doing so correctly, with the point being at the very top of the circle, directly between the legs of the NOZL selection set.
I've tried adding (initcommandversion) before the line, as well as using "_.TRIM" instead of what I've currently got, but it still won't get rid of that section of the circle.
Any help or insight into how the TRIM command works would be greatly appreciated!
Solved! Go to Solution.