Changing A Linetype Definition, With No LIN File That Is In A Template

Changing A Linetype Definition, With No LIN File That Is In A Template

Anonymous
Not applicable
5,945 Views
12 Replies
Message 1 of 13

Changing A Linetype Definition, With No LIN File That Is In A Template

Anonymous
Not applicable

I am working in AutoCAD Civil 3D 2016 & 2018, and I have linetypes incorporated into a drawing template a former coworker created. I cannot modify the linetype definitions of the linetypes due to them being incorporated into the template without an LIN file. Is there any way to change a linetype definition when no LIN file is associated? (We are required to use these linetypes even though we are permitted to modify them, oddly enough) Also, sorry if this isn't enough detail to go off of.

0 Likes
Accepted solutions (1)
5,946 Views
12 Replies
Replies (12)
Message 2 of 13

rkmcswain
Mentor
Mentor
Accepted solution

Grab either TO-LIN.lsp or NEW-LIN.lsp from the site below, to extract one or all linetype definitions from a DWG file to a .LIN file.

 

TEE SQUARE GRAPHICS

 

(BTW: You can edit the linetype definition inside the DWG file, but it would require using some sort of programming, such as autolisp)

R.K. McSwain     | CADpanacea | on twitter
Message 3 of 13

Anonymous
Not applicable

That looks like it would do it, unfortunately only our IT is permitted to run LISP Routines...

0 Likes
Message 4 of 13

rkmcswain
Mentor
Mentor
If you can attach a stripped down* version of your .DWG that contains the linetypes, I'll extract the .LIN file(s) for you.

(*stripped down means erase everything visible and just leave the linetype defs in the .dwg)

R.K. McSwain     | CADpanacea | on twitter
0 Likes
Message 5 of 13

Anonymous
Not applicable

Thank You for your help

0 Likes
Message 6 of 13

rkmcswain
Mentor
Mentor
;;
;; New LineType descriptions extracted
;; from existing drawing(s) by NEW-LIN.LSP.
;;
;; NEW-LIN.LSP (c) 2000 Tee Square Graphics
;;

*pCF,Proposed Construction Fence ---- CF ----
A,1,-0.08,
["CF",STANDARD,s=0.08,r=0,x=-0.055,y=-0.04],
-0.08
 
*pCL, ---------- - ---------- - ---------- - -------
A,1.25,-0.05,0.1,-0.05
 
*pCL2,----- - ----- - ----- - ----- - -----
A,0.75,-0.025,0.05,-0.025
 
*pES,-------- -------- --------
A,0.75,-0.05
 
*pESMT,-------- - - -------- - - -------- - - ----
A,1,-0.1,0.1,-0.1,0.1,-0.1,0.1,-0.1
 
*pFENCE,Proposed Fence ---- X ----
A,1,-0.001,
["X",STANDARD,s=0.08,r=0,x=-0.027,y=-0.04],
-0.001
 
*pLOT,-------- - - -------- - - -------- - - ------
A,0.75,-0.09,0.09,-0.09,0.09,-0.09
 
*pPL,-------- - - -------- - - -------- - - ------
A,1.25,-0.1,0.15,-0.1,0.15,-0.1
 
*pROW,-------- - - -------- - - -------- - - --------
A,1.25,-0.1,0.2,-0.1,0.2,-0.1
 
*pSTONE,------- ------- ------- ------- -------
A,0.5,-0.03
 
*pZONE,__ . __ . __ . __ . __ . __
A,0.1,-0.04,0.05,-0.04
 
*xGR,Existing Guiderail
A,0.5,
["o",STANDARD,s=0.07,r=270,x=0,y=0],
-0.044
 
*xSETBACK,----------  ----------  ----------  --------
A,1,-0.25
 
*DASHED2,Dashed (.5x) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
A,0.25,-0.125
 
*pSDPIPE,- - - - - - -
A,0.1,-0.05
 
*pTC,Proposed Time of Concentration Path ---- >>> --
A,0.5,-0.001,
[">>>",STANDARD,s=0.11,r=0,x=-0.1,y=-0.047],
-0.001,0.5,-0.07,
[">>>",STANDARD,s=0.08,r=0,x=-0.07,y=-0.04],
-0.07
 
*pCONTTEMPinter,- - - - - - - -
A,0.03,-0.03
 
*pCONTTEMPindex,- - - - - - - -
A,0.06,-0.03
 
*pCOND,Proposed Conduit ---- COND ----
A,1,-0.14,
["COND",Standard-N,s=0.08,r=0,x=-0.15,y=-0.04],
-0.14
 
*pE,Proposed General Electric Line ---- E ----
A,1,-0.07,
["E",STANDARD,s=0.08,r=0,x=-0.025,y=-0.04],
-0.07
 
*pUE,Proposed Underground Electric Line ---- UE ----
A,1,-0.1,
["UE",STANDARD,s=0.08,r=0,x=-0.06,y=-0.04],
-0.1
 
*pISO,- - - - - - - - - - - - - - - - - - - - - -
A,0.15,-0.05
 
*pRSF,Reinforced 30" Silt Fence ---- RSF ----
A,0.8,-0.115,
["RSF",STANDARD,s=0.08,r=0,x=-0.095,y=-0.04],
-0.115
 
*pSF,Standard 18" Silt Fence ---- SF ----
A,0.8,-0.085,
["SF",STANDARD,s=0.08,r=0,x=-0.055,y=-0.04],
-0.085
 
*pSSF,Super Silt Fence 33" ---- SSF ----
A,0.8,-0.115,
["SSF",STANDARD,s=0.08,r=0,x=-0.095,y=-0.04],
-0.115
 
*xMUNIx2,--------- - --------- - --------- - ---------
A,0.6,-0.1,0.2,-0.1
 
*SMDASH,- - - - - - - - - - - - - - - - - - - - - -
A,0.1,-0.05
 
*pSS,Standard Silt Sock ---- SS ----
A,0.8,-0.085,
["SS",STANDARD,s=0.08,r=0,x=-0.055,y=-0.04],
-0.085
 
*xCONTindex,-- -- -- -- -- -- -- -- -- -- -- -- -- --
A,0.16,-0.08
 
*xCONTinter,- - - - - - - - - - - - - - - - - - - - - -
A,0.06,-0.05
 
*pCATV,Proposed CATV Line ---- CATV ----
A,1,-0.14,
["CATV",Standard-N,s=0.08,r=0,x=-0.14,y=-0.04],
-0.14
 
*pIRR,Proposed Irrigation System Line ---- IRR ----
A,0.8,-0.09,
["IRR",Standard-N,s=0.08,r=0,x=-0.08,y=-0.04],
-0.09
 
*pGAS,Proposed Natural Gas Line ---- G ----
A,1,-0.07,
["G",STANDARD,s=0.08,r=0,x=-0.04,y=-0.04],
-0.07
 
*pOIL,Proposed Oil Line ---- OIL ----
A,1,-0.1,
["OIL",Standard-N,s=0.08,r=0,x=-0.07,y=-0.04],
-0.1
 
*pRDPIPE,Proposed Roof Drain Line ---- RD ----
A,0.5,-0.07,
["RD",Standard-N,s=0.08,r=0,x=-0.05,y=-0.04],
-0.1
 
*pSANPIPE,Proposed Sanitary Sewer Line ---- S ----
A,1,-0.06,
["S",STANDARD,s=0.08,r=0,x=-0.03,y=-0.04],
-0.06
 
*pUT,Proposed Underground Telecom Line ---- UT ----
A,1,-0.1,
["UT",STANDARD,s=0.08,r=0,x=-0.06,y=-0.04],
-0.1
 
*pWLPIPE,Proposed Water Line ---- W ----
A,1,-0.07,
["W",STANDARD,s=0.08,r=0,x=-0.04,y=-0.04],
-0.07
 
*xCL, ---------- - ---------- - ---------- - -------
A,1.25,-0.05,0.1,-0.05
 
*xEM,----- ----- ----- ----- ----- ----- -----
A,0.5,-0.05
 
*xESMT,----- - - - ----- - - - ----- - - - -----
A,1,-0.05,0.1,-0.05,0.1,-0.05,0.1,-0.05
 
*xES,-------- -------- --------
A,0.75,-0.05
 
*xWATER,-------- - - - ------------ - - - ----------
A,1,-0.1,0.02,-0.1,0.02,-0.1,0.02,-0.1
 
*xFENCE,Existing Fence ---- X ----
A,1,-0.01,
["X",STANDARD,s=0.06,r=0,x=-0.02,y=-0.03],
-0.01
 
*STACKADE_2, Stockade Fence without spaces
A,0.75,-0.05,
[{Shape #132},AECCLAND,s=0.025,r=0,x=-0.025,y=0],
-0.05,0.5
 
*xPLAJ,------- - - --------- - - -------- - - -----
A,0.7,-0.04,0.08,-0.04,0.08,-0.04
 
*xPL,------------ - - -------------- - - ---------
A,1.25,-0.05,0.1,-0.05,0.1,-0.05
 
*xLRW,-------- - - - ---------- - - - -------- - - -
A,1.25,-0.05,0.15,-0.05,0.15,-0.05,0.15,-0.05
 
*pSAWCUT,- - - - - - - -
A,0.2,-0.06
 
*xSTONE,------- ------- ------- ------- -------
A,0.4,-0.05
 
*xUCATV,Existing Underground CATV Lines ---- UCATV ----
A,1,-0.15,
["UCATV",Standard-S,s=0.06,r=0,x=-0.155,y=-0.03],
-0.15
 
*xOE,Existing Overhead Electric Lines ---- OE ----
A,1,-0.07,
["OE",Standard-S,s=0.06,r=0,x=-0.06,y=-0.03],
-0.07
 
*xOET,Existing Overhead Electric & Telecom Lines ----
A,1,-0.08,
["OET",Standard-S,s=0.06,r=0,x=-0.075,y=-0.03],
-0.08
 
*xUET,Existing Underground Electric & Telecom Lines -
A,1,-0.08,
["UET",Standard-S,s=0.06,r=0,x=-0.075,y=-0.03],
-0.08
 
*xUE,Existing Underground Electric Lines ---- UE ---
A,1,-0.07,
["UE",Standard-S,s=0.06,r=0,x=-0.06,y=-0.03],
-0.07
 
*xGAS,Existing Underground Natural Gas Line ---- G --
A,1,-0.06,
["G",Standard-S,s=0.06,r=0,x=-0.025,y=-0.03],
-0.06
 
*xSANPIPE,Existing Sanitary Sewer Pipe ---- S ----
A,1,-0.06,
["S",Standard-S,s=0.06,r=0,x=-0.03,y=-0.03],
-0.06
 
*xSDPIPE,-- -- -- -- -- -- -- -- -- -- -- -- -- -- --
A,0.2,-0.05
 
*xOT,Existing Overhead Telecom Lines ---- OT ----
A,1,-0.07,
["OT",Standard-S,s=0.06,r=0,x=-0.06,y=-0.03],
-0.07
 
*xUT,Existing Underground Telecom Lines ---- UT ----
A,1,-0.07,
["UT",Standard-S,s=0.06,r=0,x=-0.06,y=-0.03],
-0.07
 
*xUNK,Existing Underground Unknown Lines ---- UNK ----
A,1,-0.15,
["UNK",Standard-S,s=0.06,r=0,x=-0.11,y=-0.03],
-0.15
 
*xWLPIPE,Existing Water Pipe ---- W ----
A,1,-0.06,
["W",Standard-S,s=0.06,r=0,x=-0.03,y=-0.03],
-0.06
 
*xTC,Existing Time of Concentration Path ---- >>> ---- Tc ----
A,0.5,-0.001,
[">>>",Standard-S,s=0.11,r=0,x=-0.1,y=-0.047],
-0.001,0.5,-0.07,
[">>>",Standard-S,s=0.08,r=0,x=-0.07,y=-0.04],
-0.07
 
*xMUNI,--------- - --------- - --------- - ---------
A,0.3,-0.1,0.1,-0.1
 
*xSOILS,---------  ---------  ---------  ---------
A,1.25,-0.25
 
*xZONE,__ . __ . __ . __ . __ . __ . __ . __ . __
A,0.2,-0.05,0.04,-0.05
 
*xOCATV,Existing Overhead CATV Lines ---- OCATV ----
A,1,-0.15,
["OCATV",Standard-S,s=0.06,r=0,x=-0.155,y=-0.03],
-0.15
 
*xFENCE2,Existing Fence 2 ---- X ----
A,0.5,-0.01,
["X",STANDARD,s=0.06,r=0,x=-0.02,y=-0.03],
-0.01
 
*xUFO,Existing Underground Fiber Optic Lines ---- UFO
A,1,-0.08,
["UFO",Standard-S,s=0.06,r=0,x=-0.075,y=-0.03],
-0.08
 
*xSANFM,Existing Sanitary Force Main ---- FM ----
A,0.75,-0.08,
["FM",Standard-S,s=0.06,r=0,x=-0.06,y=-0.03],
-0.08
 
*pDATA,Proposed Data Transmission Line ---- DATA ----
A,1,-0.14,
["DATA",Standard-N,s=0.08,r=0,x=-0.14,y=-0.04],
-0.14
 
*pFW,Proposed Fire Water Line ---- FW ----
A,1,-0.1,
["FW",STANDARD,s=0.08,r=0,x=-0.06,y=-0.04],
-0.1
 
*pOCATV,Proposed Overhead CATV Line ---- OCATV ----
A,1,-0.16,
["OCATV",Standard-N,s=0.08,r=0,x=-0.19,y=-0.04],
-0.16
 
*pOE,Proposed Overhead Electric Line ---- OE ----
A,1,-0.1,
["OE",STANDARD,s=0.08,r=0,x=-0.06,y=-0.04],
-0.1
 
*pOET,Proposed Overhead Telecom Line ---- OET ----
A,1,-0.12,
["OET",STANDARD,s=0.08,r=0,x=-0.1,y=-0.04],
-0.12
 
*pOT,Proposed Overhead Telecom Line ---- OT ----
A,1,-0.1,
["OT",STANDARD,s=0.08,r=0,x=-0.06,y=-0.04],
-0.1
 
*pSANFM,Proposed Sanitary Force Main ---- FG ----
A,1,-0.1,
["FM",STANDARD,s=0.08,r=0,x=-0.06,y=-0.04],
-0.1
 
*pT,Proposed General Telephone Line ---- T ----
A,1,-0.07,
["T",STANDARD,s=0.08,r=0,x=-0.025,y=-0.04],
-0.07
 
*pUCATV,Proposed Underground CATV Line ---- UCATV ----
A,1,-0.16,
["UCATV",Standard-N,s=0.08,r=0,x=-0.19,y=-0.04],
-0.16
 
*pUET,Proposed Underground Electric & Telecom Line --
A,1,-0.12,
["UET",STANDARD,s=0.08,r=0,x=-0.1,y=-0.04],
-0.12
 
*pUNDERDRAIN,Proposed Underdrain ---- UD ----
A,0.7,-0.1,
["UD",Standard-N,s=0.08,r=0,x=-0.1,y=-0.05],
-0.1
 
*pSANLAT,Proposed Water Lateral 2 ---- S ----
A,0.2,-0.035,
["S",STANDARD,s=0.05,r=0,x=-0.025,y=-0.025],
-0.035
 
*GRID,- - - - - - - - - - - - - - - - - - - - - - - -
A,0.05,-0.05
 
Thanks @Anonymous
R.K. McSwain     | CADpanacea | on twitter
0 Likes
Message 7 of 13

Anonymous
Not applicable

Thank You for your help!

0 Likes
Message 8 of 13

sconroy
Advocate
Advocate

OK - Dumb question but where does TO-LIN save the file?

0 Likes
Message 9 of 13

AllenJessup
Mentor
Mentor

I'd suggest searching your computer for NEWLT.LIN. The path isn't explicit in the lisp file. (At least that I can see).

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 10 of 13

sconroy
Advocate
Advocate

yup - did that first thing.

 

 I did a search on my c:\ drive as I would expect it to go there and nothing, I then did a search on the server drive and nothing; File location - no; drives specified in the files tab in AutoCAD - nothing...

 

I'm assuming the file didn't write, but was trying to rule out a hidden directory - which my search tool 'agent ransack' still searches, but you never know. I also took a look in the lisp routine (not that I'm the shakes with programming mind you) and I couldn't see any path and was hoping to identify where in the program it specifies the path so I could change it.

 

Long story short - for me this program doesn't work, nor does new-lin.lsp.

 

I did however find a good workaround for this here: https://www.cadstudio.cz/en/download.asp?file=LinOut

Message 11 of 13

AllenJessup
Mentor
Mentor

Interesting. I've never used To-Lin but have used  New-Lin in the past. It's possible they don't work in newer versions of AutoCAD.

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 12 of 13

rkmcswain
Mentor
Mentor
@AllenJessup wrote:

Interesting. I've never used To-Lin but have used  New-Lin in the past. It's possible they don't work in newer versions of AutoCAD.

They both still work just fine in AutoCAD 2020.

R.K. McSwain     | CADpanacea | on twitter
0 Likes
Message 13 of 13

Anonymous
Not applicable
rkmcswain, I am having trouble trying to use the link you posted above. I want to use the command NEW-LIN.lsp but do not understand how. When I click on it, it opens up a text file. What do I do from there?
0 Likes