CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 11132
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

 

HelpCAD discussion

 
CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.

How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedLine dot with a spesific length

 Post Reply Post Reply
Author
YMatta View Drop Down
Newbie
Newbie


Joined: 05.Nov.2013
Location: United States
Using: AutoCAD 2014
Status: Offline
Points: 14
Direct Link To This Post Topic: Line dot with a spesific length
    Posted: 25.Nov.2013 at 23:04
Hi Everybody,
 
can someone help creating 2 different line types as per the attached files.
 
Thx
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 26.Nov.2013 at 11:44
Do you know what a linetype definition file looks like?

I'd suggest "borrowing" one of the default linetypes in AutoCAD and tweaking it to get the length of line you are looking for.  Look at DASHDOTX2.

Here you go.  It's the linetype definition file for DASHDOT2.  Now all you have to do is edit the line length and the spacing between the end of the line and the dot.  Don't forget to change the description too.

*DASHDOTX2,Dash dot (2x) ____  .  ____  .  ____  .  ___
A,1.0,-.5,0,-.5

Have you given any thought to just changing the scale of a line drawn with one of the default DASHDOT linetypes?

Your "sample" linetype (road_ctl) has odd dimensions.  The line length measures 492.4408 and the gap between the end of the line and the dot measures 36.6031.  What is making you use those dimensions?

I did not look at the second linetype (smaller).


Edited by John Connor - 26.Nov.2013 at 12:57
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 26.Nov.2013 at 13:25
Coding a linetype (source: Ralph Grabowski).
  • Use a positive number to indicate a dash. For example, 0.25 means a dash 0.25 units long.
  • Use a negative number for gaps. For example, -0.1 is a gap 0.1 units long.
  • And use a zero to draw a dot. A 0 is a single dot.
  • The comma is needed to separate the codes. For example: .25,-.1,0,-.1
  • The letter "A" forces the linetype to align between two endpoints. That's what causes the linetypes to start and stop with a dash, adjusted to fit.


Edited by John Connor - 26.Nov.2013 at 13:31
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top
YMatta View Drop Down
Newbie
Newbie


Joined: 05.Nov.2013
Location: United States
Using: AutoCAD 2014
Status: Offline
Points: 14
Direct Link To This Post Posted: 26.Nov.2013 at 18:00
Thank you John for the valuable information,
actually I do have to work with unusual line lenghts at a time in particular situations
 
Thank you again
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 26.Nov.2013 at 18:09
No time like the present to learn a new skill.  Have fun creating your new linetypes.
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,352 seconds.