AllExperts > AutoCAD 
Search      
AutoCAD
Volunteer
Answers to thousands of questions
 Home · More AutoCAD Questions · Answer Library  · Encyclopedia ·
More AutoCAD Answers
Question Library

Ask a question about AutoCAD
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Scott 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.
 
   

You are here:  Experts > Computing/Technology > Computer-Aided Design > AutoCAD > LISP ROUTINE

AutoCAD - LISP ROUTINE


Expert: Scott Cook - 9/15/2004

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).  

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.