AutoCAD Civil 3D General

Reply
Distinguished Contributor
cadman33619
Posts: 157
Registered: ‎07-21-2009
Message 1 of 13 (665 Views)

why do my custom line types look different in new drawing?

665 Views, 12 Replies
03-07-2013 12:41 PM

Hi....

i have line types i created for telco and electric...basically a letter T within lines and a letter E within lines. they look just fine in one drawing but now i'm in another drawing started by someone else and i need to use them but the letters are tiny and off center.

 

how can i correct this?

 

thanks

*Expert Elite*
Jeff_M
Posts: 4,178
Registered: ‎07-22-2003
Message 2 of 13 (660 Views)

Re: why do my custom line types look different in new drawing?

03-07-2013 01:03 PM in reply to: cadman33619

They are probably defined using a style and/or font not available in the new drawing.

Jeff_M, also a frequent Swamper
Distinguished Contributor
cadman33619
Posts: 157
Registered: ‎07-21-2009
Message 3 of 13 (657 Views)

Re: why do my custom line types look different in new drawing?

03-07-2013 01:08 PM in reply to: Jeff_M

how can i check what font is used to define them? the only thing i see defined is the STANDARD text style

*Expert Elite*
Jeff_M
Posts: 4,178
Registered: ‎07-22-2003
Message 4 of 13 (643 Views)

Re: why do my custom line types look different in new drawing?

03-07-2013 01:47 PM in reply to: cadman33619

You can use this little lisp to list the style & font used by a linetype with text in it.

 

(defun c:getstyleinlinetype (/ ltname lt style)
  (if (and (setq ltname (getstring "\nEnter name of linetype: "))
	   (setq lt (tblobjname "LTYPE" ltname))
	   (setq lt (entget lt))
	   (assoc 340 lt)
	   )
    (progn
      (setq style (entget (cdr (assoc 340 lt))))
      (princ (strcat "\nThat linetype uses textstyle \"" (cdr (assoc 2 style)) "\" which uses the Font \"" (cdr (assoc 3 style)) "\""))
      )
    (progn
      (princ "\nThat linetype does not exist or does not use a text object.")
      )
    )
  (princ)
  )

 

Jeff_M, also a frequent Swamper
*Expert Elite*
rkmcswain
Posts: 3,091
Registered: ‎11-13-2006
Message 5 of 13 (641 Views)

Re: why do my custom line types look different in new drawing?

03-07-2013 01:49 PM in reply to: cadman33619

Check the font assigned to the style defined in the linetype and check to see if that style has a fixed text height.

Distinguished Contributor
cadman33619
Posts: 157
Registered: ‎07-21-2009
Message 6 of 13 (612 Views)

Re: why do my custom line types look different in new drawing?

03-08-2013 05:45 AM in reply to: rkmcswain

*Expert Elite*
troma
Posts: 2,519
Registered: ‎05-21-2008
Message 7 of 13 (602 Views)

Re: why do my custom line types look different in new drawing?

03-08-2013 06:40 AM in reply to: cadman33619

If you are talking about the lisp that Jeff posted

 

  1. Save it as getstyleinlinetype.lsp (note lsp extention)
  2. Type APPLOAD, browse to saved location and load
  3. Type getstyleinlinetype to run it.


Credit where credit is due! Give kudos or accept as solution whenever you can.

Distinguished Contributor
cadman33619
Posts: 157
Registered: ‎07-21-2009
Message 8 of 13 (598 Views)

Re: why do my custom line types look different in new drawing?

03-08-2013 06:49 AM in reply to: troma

tried the steps, troma. it tells me "unknown command"

 

is there another way i can fix the linetype?

*Expert Elite*
Jeff_M
Posts: 4,178
Registered: ‎07-22-2003
Message 9 of 13 (596 Views)

Re: why do my custom line types look different in new drawing?

03-08-2013 06:54 AM in reply to: cadman33619

Post the 2 drawings, one where it displays as expected, the other where it doesn't.

 

Jeff_M, also a frequent Swamper
Distinguished Contributor
cadman33619
Posts: 157
Registered: ‎07-21-2009
Message 10 of 13 (589 Views)

Re: why do my custom line types look different in new drawing?

03-08-2013 07:09 AM in reply to: Jeff_M

here is a shot of both the good telco linetype and the bad one. both are the same linetype file. 

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Civil 3D Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for AutoCAD Civil 3D helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Civil 3D

Twitter

Facebook

Blogs