View Full Version : creating a complex linetype with shape
arman88
17th Feb 2008, 04:37 pm
I'm trying to create a linetpye .The line needs to be continuous with a solid(not hollow) circles at distances.This would be the same as FENCELINE1:
*FENCELINE1,Fenceline circle ----0-----0----0-----0----0-----0--
A,.25,-.1,[CIRC1,ltypeshp.shx,x=-.1,s=.1 ],-.1,1
but with filled-in circles.for example circles should be hatched or colored.
An image of desired linetype is attached.
Any help would be great.Thanks in advance.
lpseifert
17th Feb 2008, 05:00 pm
Shapes can't have a solid fill/hatch. You can simulate the fill with closely spaced lines.
Or use text instead of a shape; e.g. use the font file Arial with the character \U+25CF
arman88
19th Feb 2008, 02:00 pm
Thanks a lot for your concern :)
I could do this by drawing several circles with same center near each other, which resemble a filled circle as you said.Then I made a shape file of these using the menu Express>Tools>Make Shape , which gives *.shp and *.shx file.I called this file in a *.lin file and it worked
I don't know enough to perform what you said about using fonts, cause I am not that familiar and I've not worked with fonts.
Anyway it solved
:D8)
ChrisCMU
8th Oct 2009, 06:31 pm
Shapes can't have a solid fill/hatch. You can simulate the fill with closely spaced lines.
Or use text instead of a shape; e.g. use the font file Arial with the character \U+25CF
That doesn't seem to work.
If I have this in my linetype file:
*telephone,----O----O----
A,200,-0,["\U+25CF",Arial,S=0.20,R=0.0,X=-0.1,Y=4],200,["\U+25CF",Arial,S=0.20,R=0.0,X=-0.1,Y=-12]
The result is:
http://i38.tinypic.com/2iapmqf.jpg
alanjt
8th Oct 2009, 06:53 pm
Try this (uses Arial font):
;*PROP-FENCE-CL,----0-----0----0-----0----0-----0-
;A,.476777,["\U+25CF",LT-P,y=-.0275,s=.06],.00197,-.037923
ChrisCMU
8th Oct 2009, 07:07 pm
That gives me an error trying to load the linetype file:
"Bad definition of PROP-FENCE-CL at line 142" (the second line from your code)
alanjt
8th Oct 2009, 07:08 pm
That gives me an error trying to load the linetype file:
"Bad definition of PROP-FENCE-CL at line 142" (the second line from your code)
Because the textstyle doesn't exist. It's just a textstyle with Arial font. Just replace "LT-P" with "Arial".
ChrisCMU
8th Oct 2009, 07:09 pm
so do I need to create a text style called LT-P with Arial as the font?
alanjt
8th Oct 2009, 07:11 pm
so do I need to create a text style called LT-P with Arial as the font?
or just replace it with Arial.
;*PROP-FENCE-CL,----0-----0----0-----0----0-----0-
;A,.476777,["\U+25CF",ARIAL,y=-.0275,s=.06],.00197,-.037923
rkmcswain
8th Oct 2009, 07:41 pm
You can make all sorts of "text-based" linetypes with the various shapes that are in wingdings.ttf, webdings.ttf, etc. Here are a couple...
14744
ChrisCMU
8th Oct 2009, 09:21 pm
I'm having trouble with the ends of the lines. Here is my linetype code:
*POWER,----0----0----0----0----0----0----
A,620,-200,620,-200,620,-200,["\U+25CF",ARIAL,x=175,y=-14,s=.7],-.001And here is the result:
http://i35.tinypic.com/ff3gci.jpg
It is supposed to place a dot every third dash, which it does...but the ends are not right. (BTW, this is a 1 mile by 1 mile geographic section for scaling purposes). I see I need to tweak the offset slightly as it is not centered perfectly, but don't worry about that.
ChrisCMU
13th Oct 2009, 07:09 pm
Also, my ltscale must be set to 1980, which is why the numbers are so big in the linetype.
xray
27th Oct 2010, 05:47 pm
Ok, so i am pulling my hair out trying to make this linetype as a Handrail or fence too.
But I am getting numerous comments to make it start and stop with the circle.
Is it possible to have the shape start and stop? We are obvously using this... A,.25,-.1,[CIRC1,ltypeshp.shx,x=-.1,s=.1],-.1,1
Any comments would be appreciated
lpseifert
27th Oct 2010, 05:59 pm
But I am getting numerous comments to make it start and stop with the circle.
Is it possible to have the shape start and stop?
Nope, Autocad linetype definitions don't support that.
pradeep1234
3rd Aug 2012, 01:50 pm
hi, can any tell me how to create line type circle, long dash space circle long dash space circle long dash.
--- O --- O --- O -- like this.
please help me out.
ReMark
3rd Aug 2012, 02:09 pm
Since you have full AutoCAD one option you can use utilizes two tools found in Express Tools. They are Make Shape (MKSHAPE) and Make Linetype (MKLTYPE). Directions for using the commands can be found in the Express Tools FAQ under Contents > Categories > Tools.
Another option would be to take an existing linetype definition that uses a letter and substitute an "O" for it. You would also have to tweak the parameters for the length of the lines and the gap distances.
Powered by vBulletin™ Version 4.1.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.