AllExperts > Experts 
Search      
AutoCAD
Volunteer
Answers to thousands of questions
 Home · More 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 > Specific Line types

AutoCAD - Specific Line types


Expert: Scott Cook - 6/11/2008

Question
Hallo,

I would like to know how I can draw lines which are somewhat different from the ones that appear in the normal line type menus. For example, I want to draw sewage lines which will have the arrow in the middle of the line and will start with a small circle. Something like this
0---->------

Also on a different issue, I would like to creat somthing like this:  O----->  and the O should contain a number in it. This will be used to annotate objects.

Thanks

Answer
If you only want one arrow, it might not be possible with a linetype. If I recall correctly, linetypes repeat (meaning you could end up with more than one arrow). I think you might be able to specify a starting segment that does not repeat. To make a circle with a linetype (and perhaps the arrow too) would require an .shx file, a shape file.
You can read up on linetype definitions in the customization guide. it's  not fun.
I'd recommend a different approach: write a lisp routine or menu macro to do it for you by inserting a couple of blocks for the arrow and the circle. To do that, identify the sequence of commands you would use to create the object. You can automate it to the point where only a couple of picks would be required.
the menu syntax is easy to deal with. semicolons are enters, and backslashes are pauses for input. the other commands are entered as you would at the command line without dialog boxes. for example, -insert blockname mid;\;;\


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.