Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

new linetype

9 REPLIES 9
Reply
Message 1 of 10
Anonymous
208 Views, 9 Replies

new linetype

Need help to create new linetype with a dash in both end of dots , more like this _ . . . . . . . _ ( actual dash lines both ends and dots in same line )
Thanks
9 REPLIES 9
Message 2 of 10
Anonymous
in reply to: Anonymous

Like this, the one attached? *DASHDOTS,Dash with Dots A,.0625,-.0625,0,-.0625,0,-.0625,0,-.0625,0,-.0625,0,-.0625 "tnguyen1005" wrote in message news:2395615.1112820609530.JavaMail.jive@jiveforum1.autodesk.com... > Need help to create new linetype with a dash in both end of dots , more > like this _ . . . . . . . _ ( actual dash lines both ends and dots in > same line ) > Thanks
Message 3 of 10
Anonymous
in reply to: Anonymous

The definition here will make a line like this: _ . . . . . _ . . . . . _ . . . . . _ . . . . . with a dash and then five dots, repeating. If "tnguyen" is looking for something that's ALL dots except at the ends, regardless of the length, that's not possible in a linetype definition. You could come sort of close to it with a linetype defined as a series of dots, such as *SIXDOTS,Series of Six Dots A,0,-.0625,0,-.0625,0,-.0625,0,-.0625,0,-.0625,0,-.0625 (i.e., Tim's with a dot instead of a dash at the beginning), and the "excess" beyond the dots cycle at the ends would be continuous lines, but how long they would be would depend on the overall length of the line in relation to the linetype definition cycle. That could be anywhere from almost nothing to almost the length of the series of dots. And you'd get no dots at all if the line is shorter than the cycle. A somewhat wacky possibility: have a group of linetypes (TWODOTS, THREEDOTS, FOURDOTS, etc.), and after you've drawn a line, assign different ones to it until you get one that gives you about the right length of continuous pieces at the ends. -- Kent Cooper "Tim Decker" wrote... > Like this, the one attached? > > *DASHDOTS,Dash with Dots > A,.0625,-.0625,0,-.0625,0,-.0625,0,-.0625,0,-.0625,0,-.0625 > > > "tnguyen1005" wrote... >> Need help to create new linetype with a dash in both end of dots , more >> like this _ . . . . . . . _ ( actual dash lines both ends and dots in >> same line ) >> Thanks
Message 4 of 10
Anonymous
in reply to: Anonymous

You can't define a linetype that has dashes only at the ends with only dots in the middle. Basically, you just get to repeat a pattern. "tnguyen1005" wrote in message news:2395615.1112820609530.JavaMail.jive@jiveforum1.autodesk.com... > Need help to create new linetype with a dash in both end of dots , more like this _ . . . . . . . _ ( actual dash lines both ends and dots in same line ) > Thanks
Message 5 of 10
Anonymous
in reply to: Anonymous

Try this one. It doesn't look like much in code, but try drawing with it, make many lines, works surprisingly well. *DASHDOTS,Dash at Ends A,.0001,-.0625 "Kent Cooper, AIA" wrote in message news:425531a7$1_1@newsprd01... > The definition here will make a line like this: > _ . . . . . _ . . . . . _ . . . . . _ . . . . . > > with a dash and then five dots, repeating. If "tnguyen" is looking for > something that's ALL dots except at the ends, regardless of the length, > that's not possible in a linetype definition. You could come sort of > close > to it with a linetype defined as a series of dots, such as > > *SIXDOTS,Series of Six Dots > A,0,-.0625,0,-.0625,0,-.0625,0,-.0625,0,-.0625,0,-.0625 > > (i.e., Tim's with a dot instead of a dash at the beginning), and the > "excess" beyond the dots cycle at the ends would be continuous lines, but > how long they would be would depend on the overall length of the line in > relation to the linetype definition cycle. That could be anywhere from > almost nothing to almost the length of the series of dots. And you'd get > no > dots at all if the line is shorter than the cycle. > > A somewhat wacky possibility: have a group of linetypes (TWODOTS, > THREEDOTS, FOURDOTS, etc.), and after you've drawn a line, assign > different > ones to it until you get one that gives you about the right length of > continuous pieces at the ends. > -- > Kent Cooper > > > "Tim Decker" wrote... >> Like this, the one attached? >> >> *DASHDOTS,Dash with Dots >> A,.0625,-.0625,0,-.0625,0,-.0625,0,-.0625,0,-.0625,0,-.0625 >> >> >> "tnguyen1005" wrote... >>> Need help to create new linetype with a dash in both end of dots , more >>> like this _ . . . . . . . _ ( actual dash lines both ends and dots in >>> same line ) >>> Thanks > >
Message 6 of 10
Anonymous
in reply to: Anonymous

Tim, that linetype is great. See if you can create this other linetype. We show demolished items as dashed lines. But, since the line starts & ends with a dash; like this "-----", it proves misleading since it touches a remaining wall, as if there were still an intersection at this point. What would be better is a dashed line that starts & ends with a gap; like this," ----- " I do realize that there is a setting that lets there be either a dash or a gap at the intersections, but such a line still starts with a dash, rather than the desired gap. Is this line possible. Any help will be greatly appreciated. Thanks -KLYPH
Message 7 of 10
Anonymous
in reply to: Anonymous

Thanks all for your help, looks like linetype DashDots-dash at ends from Tim is a winner!
*DASHDOTS,Dash at Ends
A,.0001,-.0625
Except...it could be perfect if object linetype is 1 (it's set to about 48 to view ).
Thanks
Message 8 of 10
Anonymous
in reply to: Anonymous

Keep in mind that the length of the first segment is governed by the length of the second (the gap). If you want to give the inital dashed more length, you must compromise by setting the gap longer. Just a limitation of how AutoCAD linetypes are justified. The initial dash will always display to a maximum length of just under the gap length. "tnguyen1005" wrote in message news:3416254.1112975597834.JavaMail.jive@jiveforum1.autodesk.com... > Thanks all for your help, looks like linetype DashDots-dash at ends from > Tim is a winner! > *DASHDOTS,Dash at Ends > A,.0001,-.0625 > Except...it could be perfect if object linetype is 1 (it's set to about 48 > to view ). > Thanks
Message 9 of 10
Anonymous
in reply to: Anonymous

This is not technically possible, but the closest I got was this, the start seems ok, but the end doesn't justfy right. *HIDE,Hidden Line A,0,-.0625,.0625 "KLYPH" wrote in message news:28557716.1112974110427.JavaMail.jive@jiveforum2.autodesk.com... > Tim, that linetype is great. See if you can create this other linetype. > We show demolished items as dashed lines. But, since the line starts & > ends with a dash; like this "-----", it proves misleading since it touches > a remaining wall, as if there were still an intersection at this point. > What would be better is a dashed line that starts & ends with a gap; like > this," ----- " I do realize that there is a setting that lets there be > either a dash or a gap at the intersections, but such a line still starts > with a dash, rather than the desired gap. Is this line possible. Any > help will be greatly appreciated. Thanks -KLYPH
Message 10 of 10
Anonymous
in reply to: Anonymous

I play around with Tim's linetype: Hide, hidden line and I come up with this:
A,0,.0625,-.0625,.0625,0
It works both ends and object linetype is somewhere 40 - 48

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

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report