Hello, I have read in the AutoCAD help that editing aclt.lin I can create new linetype. Also I can use the symbols in ltypeshp.shx How can I see all the symbols in that file? Also, how can I create a new linetype with symbols not in ltypeshp.shx? Can I create a new .shx file? I need a line made of solid filled circle (a donut with inside diameter zero). To do so I have LT, so in general no Lisp and no ARX until I buy an extra module to activate it. Does someone use LT-Extender? is it good? Best Regards Filippo B. -------------------------------------- Per rispondere anche via e-mail eliminare '_RIMUOVIMI_' e '.invalid' dall'indirizzo. To reply also by e-mail, cancel '_RIMUOVIMI_' and '.invalid' from the address. --------------------------------------
Use the shape command. You have to add the shapes to the aclt.shp, compile it into a new aclt.shx, and then write a new ****.lin file or add to the aclt.lin and load the linetype. This all should be covered in the help.
I'm sorry, but in the Help, the SHAPE command is not covered. If I type SHAPE on the command line, LT asks me the shape name. If I give a shx name (es. romand.shx) it says that it doesn't exists. If I give ? and then * (list all shape) it says that No matching shapes found. Also: how can I create and compile a shp file? Even SHP isn't a help item and aclt.shp doesn't exist Remember that I use LT 2002, not FULL version. Best Regards Filippo B. -------------------------------------- Per rispondere anche via e-mail eliminare '_RIMUOVIMI_' e '.invalid' dall'indirizzo. To reply also by e-mail, cancel '_RIMUOVIMI_' and '.invalid' from the address. --------------------------------------
The file you're looking for is ltypeshp.shx. And you're right: there's no SHAPE command in LT, nor is there a COMPILE command. What you're experiencing is one of the many frustrations of owning the "little sister" program of full AutoCAD. It's Autodesk's way of punishing you for being frugal. However, LT does honor shapes contained in complex linetypes, if you can figure out how to configure them in aclt.lin or other .lin files. ___
There IS the SHAPE command, but it seems no seeing the shape files. Also there IS the COMPILE command. All of them are not covered in the help, so I can't use them if someone doesn't explain me how they work. Best Regards Filippo B. -------------------------------------- Per rispondere anche via e-mail eliminare '_RIMUOVIMI_' e '.invalid' dall'indirizzo. To reply also by e-mail, cancel '_RIMUOVIMI_' and '.invalid' from the address. --------------------------------------
Really? Command: shape Unknown command "SHAPE". Press F1 for help. Command: compile Unknown command "COMPILE". Press F1 for help. ___
I have an extra module. Probably iti implements the commnad and I dont' konw it. I have found this solution in the Autodesk knowledge base: SOLUTION 1 Exercise When you create the complex linetype, you will assign the actual text height for the "S" transform. The linetype transform values S= (text height) and Y= (Y offset) are for centering the characters. If the S=1, then you will want to offset Y=.5 to center the line. Tip: You may want to place a line of text with mtext first and use the distance command to check the character height. Some fonts adhere to standards which may cause the center to be off. In AutoCAD, create two text styles. Name them mcstyle and Map. Use the txt.shx font, and set the height to zero. Accept the defaults for all the other settings. Enter ltscale on the command line, and set the value to 1. Enter celtscale on the command line, and set the value to 1. In a text editor, create a file named test.lin and paste the following text in the file. *MCSTYLE,--- MC --- A,1.0,-0.5,["MC",mcstyle,S=1,R=0,X=0,Y=-0.5],-2.0 *MAP,--- Map --- A,1.0,-0.5,["Map",mcstyle,S=1,R=0,X=0,Y=-0.5],-3.0 Start a new drawing. Load the two linetypes using the test.lin file. Assign each linetype to a layer. Set the LIMITS to 50,50 and Zoom All. Draw a line on each layer to view the different line types. Now change the LTSCALE to 2. The lines should change. Now try CELTSCALE set to 2 and place a new line on the screen. The dashes stay in proportion to the text and everything will scale together. Linetype defined A closer look at the linetype will tell what each part means. Each item is separated by commas. *MAP,--- Map --- where *MAP is the name of the linetype ---Map---- is the description of the linetype A,1.0,-0.5,["Map",mcstyle,S=1,R=0,X=0,Y=-0.5],-3.0 where A is A-type alignment (see Help for details) 1.0 is the length of the dash - designates a space 0.5 is the amount of space before text brackets ([ ]) enclose string, stylename, and transform "Map" is the text string mcstyle is the text style S is the text height for this case, or scale of height set in text style R is the rotate, set to zero relative rotation X is the xoffset, set to no offset Y is the yoffset, set to .5 -3.0 is the distance between dashes (the area where the text resides) This example will rotate the text relative to whatever way the line is angled and keep the text aligned with the dashes. To have the text always be horizontally placed on the screen, replace the R=0 with A=0. Color The complex linetype must be only one color. It can be set to color bylayer or to any color using Entity Creation mode. The text is part of the line and not a separate entity. A complex line cannot be exploded. Shape files Compiled shape files (SHX files) can be used in complex linetypes. These SHP and SHX files must be created in the full version of AutoCAD. The location of the SHX file must be set in the support path. Use the instructions in the AutoCAD Customization Guide under "Linetype Definition Files." An AutoCAD drawing that contains such a linetype must be accompanied by the compiled shape file or SHX file where the shape is defined, as well as the LIN file where the linetype is defined. SOLUTION 2 Issue How do you use characters from TrueType fonts (TTF), such as filled circles, arrows, copyright, and skull and crossbones in complex linetypes? Solution To make TTF characters available for use in complex linetypes, the TTF must be loaded and available in AutoCAD. The easiest way of loading a TTF and making it available in AutoCAD is to use the STYLE command to create a text style with the same name as the TTF. The following code fragment is from a modified version of the acadiso.lin linetype definition file. In this example, the linetype definition requires two text styles in AutoCAD?Wingdings and TimesNR. The Wingdings text style is based on the Wingdings TTF, and the TimesNR text style is based on the Times New Roman TTF. Once you have created the association of TTF to text style, you can then reference the text style in the linetype definition. Note: Modifying a text style that is referenced by a linetype definition changes the appearance of the complex linetype based on that definition. ;;;---------------------------------- Cut Here ----------------------*Fill_circle,Filled circle - O - O - O - O - O - O - O - O - O -A,2.54,-2.54,["l",Wingdings,S=2.54,R=0.0,X=-1.26,Y=-1.15],-2.54*Skull+Cross,Skull and cross bones -- x -- x -- x -- x -- x -- x --A,5.08,-2.54,["N",Wingdings,S=2.54,R=0.0,X=-1.26,Y=-1.15],-2.54*Node,Node --- + --- + --- + --- + --- + --- + ---A,7.62,-2.54,["?",Wingdings,S=2.54,R=0.0,X=-1.26,Y=-1.15],-2.54*Copyright,Copyright -- ? -- ? -- ? -- ? -- ? -- ? --A,5.08,-2.54,["?",TimesNR,S=2.54,R=0.0,X=-1.26,Y=-1.15],-2.54*Flow,Flow -- > -- > -- > -- > -- > -- > --A,5.08,-2.54,["?",Wingdings,S=2.54,R=0.0,X=-1.26,Y=-1.15],-2.54;;;---------------------------------- Cut Here ------------------------Each linetype definition consists of two lines. The first line describes what the linetype is called, and also provides a basic visual description for display in dialog boxes. The second line describes how to draw the linetype. The A at the beginning of the second line is a marker that tells AutoCAD where the linetype definition starts. Positive values draw lines, and negative values leave spaces. The definition between the square brackets ([ ]) is the character definition. In this example, the definition is: use the character l from the Wingdings text style, at a scale of 2.54 (S=2.54), and a rotation angle of 0 (R=0.0). The definition ends with the X and Y displacement for the character. Note: You can get more information about the format of complex linetypes from the online help in AutoCAD 2000. Using Windows Character Map to determine the keystroke for a character You can use the Windows Character Map utility (charmap.exe) to determine the keystroke for a character. When you select a character in Character Map, the keystroke is displayed on the status line at bottom right of the Character Map window. For example, the keystroke for the Wingdings TTF skull and cross bones character, is N. Alternatively, select the character in Character Map and choose Select followed by Copy, to copy the character to the clipboard. You can then use CTRL+V to paste the character into the linetype definition. Best Regards Filippo B. -------------------------------------- Per rispondere anche via e-mail eliminare '_RIMUOVIMI_' e '.invalid' dall'indirizzo. To reply also by e-mail, cancel '_RIMUOVIMI_' and '.invalid' from the address. --------------------------------------