Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

linetype library

1 REPLY 1
Reply
Message 1 of 2
jamesrbrito
3761 Views, 1 Reply

linetype library

How can I create a new linetype in the LIN library so I can load it into my layers dialog box.  For example: there is a gas line linetype already created in the library.  But when I went into the library and used a copy of that syntax and edited it for water, it didn't work.

1 REPLY 1
Message 2 of 2
AlmasSuljevic
in reply to: jamesrbrito

I guess the easiest thing to do would be to copy the definitions (using Notepad) from LIN file and paste it into a LIN file set to load as default (ACAD.LIN). One thing you need to make sure is that linetype scale is set correctly. See following for more info: http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%202010%20User%20Documentation/index.html?url=WS73099cc...

 

Other solution may be to create new LIN file and then create LSP routine to load it upon each drawing opening. This would be something like this:

 

  1. Crete custom <linetype>.lin file with notepad
  2. Paste linetype definition into file and save it

for instance treeline: *TREELINE_L, Tree Line left side

A,0,-.13,[TREE,AECCLAND,s=.13],-.12

*TREELINE_R, Tree Line right side

A,0,-.13,[TREE,AECCLAND,s=.13,r=180],-.12

 

3. Make a copy of .lin file in C:\Program Files\AutoCAD Civil 3D <verision>\Support.

4. Open acad<version>.lsp file with notepad from the same director

5. Add (command "_.-linetype" "_load" "*" "<linetypename>.lin" "") before ;;silent load

6. Save acad<version>.lsp

7. Restart Civil 3D

 

This should load your linetype. Note: you may need to play with parameters until you get teh scale that works for you. Use that link above to get familiar.

 

Hope this helps.

 



Almas Suljevic
Product Support Specialist
Autodesk Global Subscription and Support
Autodesk, Inc.

Please click on "Accept as Solution" if post helped you resolve the issue.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report