View Full Version : 2016 Shapes in linetype
Robertolog707795
2016-02-29, 05:52 PM
I start adventure with linetype and shapes. I noticed that in file "gdt.shp" is more useful symbols. Unfortunately when I add it to linetype definition in ACAD error occurs. Below sample code:
*Test6,
A,.1,[GDT,gdt.shx,x=0,s=.1],-30
What I doing wrong?
Tom Beauford
2016-02-29, 07:18 PM
First gdt.shp is a font shape you cannot use in a linetype unless you made a gdt text style and referenced it in a linetype.
Second you need to use the compiled version of the shape file with the extension shx not shp.
Tom Beauford
2016-02-29, 07:48 PM
Easiest way to get started is to look at examples that come with AutoCAD and see how they're put together.
Start by finding ltypeshp.shp entering
(findfile "ltypeshp.shp")at the command line in AutoCAD. Open the file and you find six shapes that are referenced in acad.lin Complex linetypes section.
For a particular linetype if you describe it we could help you get started on it.
Robertolog707795
2016-02-29, 08:16 PM
I can create complex line but I noticed that in gdt.shp are more shapes ;) I open the gdt.shx and ltypeshp.shx and in fact is the different so you are right.
gdt.shx
41 75 74 6F 43 41 44 2D 38 36 20 75 6E 69 66 6F 6E 74 20 31 2E 30
AutoCAD-86 unifont 1.0
ltypeshp.shx
41 75 74 6F 43 41 44 2D 38 36 20 73 68 61 70 65 73 20 31 2E 30
AutoCAD-86 shapes 1.0
Second question is: How to create gdt text style and then referenced it to linetype?
Third question is: In linetype definition is align ("A"). Is there any other align method (B, C or others)?
You create a text style that references the shape file which is referenced in your linetype definition. The text style must be created prior to loading the shape defined linetype.
Tom Beauford
2016-02-29, 08:50 PM
Second question is: How to create gdt text style and then referenced it to linetype?
Style command to create new style pick New… button and name the style gdt, select the gdt.shx Font Name, leave Height at 0.0000 and pick the Apply button. Use the shape as in acad.lin examples like A,.5,-.2,["q",gdt,S=.1,U=0.0,X=-0.1,Y=-.05],-.25
That gives you a centerline symbol.
Third question is: In linetype definition is align ("A"). Is there any other align method (B, C or others)? The only other one is "S" which doesn't add line segments on the ends.
rkmcswain
2016-02-29, 09:29 PM
In linetype definition is align ("A"). Is there any other align method (B, C or others)?
More about the "S" alignment code here:
http://forums.augi.com/showthread.php?164739-Controlling-start-and-end-points-of-Custom-linetypes&p=1305725&viewfull=1#post1305725
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.