AboutScott Cook Expertise I`ve been using AutoCAD since 1987 and programming AutoLISP nearly as long. I can answer questions about programming AutoCAD (except ARX) and production enhancement techniques. I cannot answer questions about AutoCAD crashes or DWG corruption. AutoCAD PROGRAMMING (menus, lisp) related questions only!
Experience Since 1987. Author of Plot2000 software for for AutoCAD, http://www.plot2000.com.
PROGRAMMING QUESTIONS ONLY PLEASE. Questions that are NOT related to programming or AutoCAD customization (menus and lisp only please) are outside the scope of my volunteer services and will NOT BE ANSWERED.
Question I am looking for a lisp routine that will trim a line on a 2D drawing when I insert a block. this will be used on P&id's, so when I insert a valve symbol the line the block is being placed on would be trimmed away from one side of the block to the other
thanks in advance
Brian Browne
autocad 2000i
Answer That's sort of a complex question. I have something that will do that, but it's designed to work as part of a larger menu system and isn't easily seperated from it.
The approach is to insert the block, snap to line, auto-rotate, then temporarily erase the block and draw a circle the size of the area that needs to be trimmed. Then trim the underlying lines, and un-erase the block.
What I have for that won't work in your environment without a significant amount of work (beyond what I can do as a volunteer).