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

Enjoy this page? Here's another way to pay it forward...

Would you prefer to share this page with others by linking to it?

  1. Click on the HTML link code below.
  2. Copy and paste it, adding a note of your own, into your blog, a Web page, forums, a blog comment, your Facebook account, or anywhere that someone would find this page valuable.

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. What is AutoCAD Used For?

    Jan 27, 23 07:50 PM

    If you ever wondered what is AutoCAD used for, read on...

    Read More

  2. Viewport turns black

    Oct 29, 21 09:34 AM

    I was giving a dog file to work on, and when I try to insert a north arrow into layout viewport, the viewport turn black when I move my cursor into the

    Read More

  3. Converting .pdf's to .dwgs

    Oct 29, 21 09:31 AM

    I get a LOT of plans from clients where they used some cad program that will only create .pdf files or they found a plan on a site and it came to them

    Read More