balimela Posted August 2, 2010 Share Posted August 2, 2010 Dear All! I wanted to crated a custom line typr for rock line excavation (Type 1 and 2), attached for example. what will be the command if I write the code in the notepad. Thanks in advance. Raj Attached: Rockline.dwg Rockline.dwg Quote Link to comment Share on other sites More sharing options...
BIGAL Posted August 13, 2010 Share Posted August 13, 2010 You can do complex polylines that repeat but they are just that polylines and once you introduce arcs gets more complicated. Its well known that complex linetypes are difficult autocad linetypes are a left to right affair basicly no up down backwards you could do it by creating a shape and inserting in your linetype this would be the bit in the middle. You only need one line type just rotate 180 to display the other way. It is disappointing that my other civil software supports what ever you draw as a linetype and has done so way to many years to remember. Quote Link to comment Share on other sites More sharing options...
balimela Posted August 15, 2010 Author Share Posted August 15, 2010 For a single type (not the mirror one) can it be a written code inserted in the .lin file. The complex line is combination of some pline line with some angle in between. Thanks for your reply. Quote Link to comment Share on other sites More sharing options...
YZ Posted August 16, 2010 Share Posted August 16, 2010 I do not know a way to write this in .lin file. I have always wanted to build some cool linetypes like that one, but have never worked it out using notepad. I think you may need a shape .shx file. Hopefully someone else will know better than me, I would like to see the solution. Quote Link to comment Share on other sites More sharing options...
NBC Posted August 16, 2010 Share Posted August 16, 2010 See the attached zip file. It contains a .lin file for the 2 linetypes you wanted. It also contains shape files, which are used within the linetpye definitions. All the files will need to be extracted from the zip, and loaded into a folder which is part of your AutoCAD Support Search Path Rockline.zip Quote Link to comment Share on other sites More sharing options...
eldon Posted August 16, 2010 Share Posted August 16, 2010 (edited) Or you could go for a linetype using existing characters "\" and "/". The following is set up for Txt font, but all offsets could be adjusted for different fonts. *ROCK_FACE_1, Rock face 1 --\/--\/-- A,.5,["/",STANDARD,S=.1,R=180,X=0.133,Y=0],-.067,["\",STANDARD,S=.2,R=180,X=0.067,Y=0],-.067,.5,["/",STANDARD,S=.2,R=180,X=0.133,Y=0],-.067,["\",STANDARD,S=.1,R=180,X=0,Y=0],-0.067,.5 *ROCK_FACE_2, Rock face 2 ___/\___/\___ A,.5,["/",STANDARD,S=.2,R=0,X=0,Y=0],-.067,["\",STANDARD,S=.1,R=0,X=0,Y=0],-.067,.5,["/",STANDARD,S=.1,R=0,X=0,Y=0],-.067,["\",STANDARD,S=.2,R=0,X=-0.067,Y=0],-0.067,.5 Edited August 16, 2010 by eldon code tags added Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.