Creating Custom Linetypes

by Rich Mannices
(Springfield, PA, USA)

I am trying to create custom linetypes that will allow CAD (AutoCAD 2008) to prompt me for a number when I choose a specific linetype.

In other words:

I need to draw fiber optic linetype on a plan and each of the lines has a specific Fiber Optic Count (and varies each time) such as:

-----A-----240 FOC------A-----240 FOC------

OR

-----A-----350 FOC------A-----350 FOC------

OR

-----A-----120 FOC------A-----120 FOC------

etc...

Whereas the 240 or 350 or 120 is the fiber optic count in the cable - so it varies all the time.

I want to draw a line and have Autocad ask me "What is the FOC, then it will draw the line accordingly.

Can this be done???

Comments for Creating Custom Linetypes

Average Rating starstarstarstarstar

Click here to add your own comments

Mar 16, 2011
Rating
starstarstarstarstar
Use LISP to Create Linetype
by: Jacob

I know there is a LISP routine that does pretty close to what you are trying to do with creating your linetypes.

This AutoLISP routine prompts you for the string of text you would like to use in your linetype.

So you would need to load the LISP routine into AutoCAD first, using the APPLOAD command, then type the name "MAKELT" to start the command.

It will then prompt you for the text you want in your custom linetype as well as ask you for the text height. I believe it creates the text style in the line type according to what your current style of text is set to in AutoCAD.

Here is the LISP routine I found on the Cadalyst website

Click here to add your own comments

Join in and write your own page! It's easy to do. How? Simply click here to return to AutoCAD Questions and Answers.


Sign up for our FREE CAD Tips and Tricks Newsletter:
"The CAD Times"

Enter Your E-mail Address
Enter Your First Name (optional)
Then

Don't worry — your e-mail address is totally secure.
I promise to use it only to send you "The CAD Times".

Join "The CAD Times"  Newsletter Along With 5,000 Subscribers

Enter Your E-mail Address
Enter Your First Name (optional)
Then

Don't worry — your e-mail address is totally secure.
I promise to use it only to send you "The CAD Times".



Recent Articles

  1. CAD Work from Home

    Nov 06, 17 06:30 PM

    Part one article on CAD work from home jobs.

    Read More

  2. AutoCAD Fonts

    Oct 24, 17 06:44 PM

    Is there a font that gives a clear definition between a capital O and the number 0? I use both in serial numbers of items and it would be helpful if a

    Read More

  3. Free AutoCAD Hatch Patterns

    Oct 12, 17 07:58 PM

    Great resource for downloading free AutoCAD hatch patterns.

    Read More