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 4,800+ 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. Custom cabin coop

    Jul 18, 17 10:32 AM

    We started out with a chicken showing up in our front yard we feed it and it started laying eggs so I decided to build a coop for it I ended up going all

    Read More

  2. 5 Simple 8X12 Shed Plans

    Feb 20, 17 09:21 PM

    5 easy to use 8X12 shed plans. How to use free blueprints to construct your very own storage shed.

    Read More

  3. Command ribbon for Autocad Lt 2014 version disappeared.

    Feb 03, 17 12:42 PM

    Friend was using my program and in the process somehow removed the command ribbon. Can now only get generic command ribbons from earlier versions... any

    Read More