Hi.
I am trying to create a custom line type with a filled entity. I have tried to do it in several ways but none works. The idea is to have a result similar to that of the image.
There is some way to do it. Thank you!
Solved! Go to Solution.
Hi,
an SHX definition can't have a "filling", so best you can do to create concentric circles with different radius which then shows the symbol like it would be filled.
- alfred -
You can use text in your linetype. Wingdings has a filled circle character:
Here are some threads with similar linetypes to the one you are after - you should be able to combine the two to make a dashed line with filled dots in.
Hi,
>> You can use text in your linetype. Wingdings has a filled circle character
As you replied to my post ... I would avoid the usage of Text in linetypes as long as possible, especially for special characters or fonts.
Reason is quite simple, you can't load a linetype if a textstyle (with the name defined in the .LIN-file) is not defined in the current dwg-file. In that case you'll get that message:
I'm quite sure that not every AutoCAD user can handle that message 😉
- alfred -
Hi marianne.mcdona
I tried to use the fill character as a circle, but it is not included in the selection when creating the line type, as the following image illustrates.
It is possible that it is my mistake, for which I would like to have a brief step-by-step process of the proper procedure.
I'll be waiting, thank you very much.
Hi @carredondo89,
I think you are trying to use AutoCAD's tool to make a linetype from geometry? I am not sure why it's not selecting the text for you - perhaps it only allows you to use lines & circles etc to make linetypes with that tool, not text.
Anyway the following should work for you:
1. Create a textstyle in your drawing called "Wingdings" with font=wingdings, width factor=1.0, height=0
2. Find the location of you acad.lin or acadiso.lin file with this command including the brackets (findfile="acad.lin") or (findfile="acadiso.lin") Note: Acadiso.lin is the file if you work in metric, acad.lin if you work in imperial
3. Open the .lin file in Notepad and copy these lines into the end of the file under "User defined line types"
*Filled Circle Requires Wingdings, Filled Circle ---O---O---
A,2,-1,["l",WINGDINGS,S=1.2,R=0.0,X=0.0,Y=-0.55],-1.5
Make sure there is a blank line at the end of the file or it won't work.
4. Save your .lin file.
5. Load the linetype (see my picture here)
Your linetype should then be loaded in your drawing to select. You might need to play about with the ltscale to make it display how you like, here's how it looks in my drawing:
@Alfred.NESWADBA wrote:
... create concentric circles with different radius which then shows the symbol like it would be filled.
....
Here's a way to do that, similar to the proportions in the original image.
Shape definition, added to YourShapeFileName.SHP:
*145,33,CIRC5
2,010,1,10,(1,000),2,010,1,10,(2,000),2,010,1,10,(3,000),2,010,1,10,(4,000),2,010,1,10,(5,000),2,058,0
COMPILE that file into YourCompiledShapeFileName.SHX. Linetype definition:
*DOTSFILLED,--o---o---o---o---o---o--
A,3.25,-.75,[CIRC5,YourCompiledShapeFileName.shx,s=.1],-.75
[Call the shape and/or the linetype something different if you want.]
These definitions make dots of 5 concentric circles with a 1-drawing-unit diameter for the outermost one, spaced at 5 drawing units, like this:
It could be made with more and more-closely-spaced circles, if this doesn't result in "filled" looking dots with the lineweight you would use for such things.
@Anonymous wrote:
....
A,2,-1,["l",WINGDINGS,S=1.2,R=0.0,X=0.0,Y=-0.55],-1.5
....
That could use some fine-tuning to get the dots in the middle of the gaps. The following revision equalizes the piece of gap on either side, and back-shifts the text character by half its height from the nominal insertion point, to put it in the middle of the gap:
A,2,-1.25,["l",WINGDINGS,S=1.2,X=-0.56,Y=-0.55],-1.25
You will also find this approach has a better result in the positioning of the dots on curves, with the difference being more apparent the tighter the radius is, not only in centering between the ends of the gap, but also in centering in the other direction, on the route of the path object [note the original's dots being somewhat outboard from being centered on the Arc]:
[Also, there's no need to include a Rotation term at all, if it's zero.]
Thanks @Kent1Cooper - my linetype was hacked together from a few different similar ones so glad you could fine tune it.
Can't find what you're looking for? Ask the community or share your knowledge.