Please enable JavaScript to view this site.

In AutoCAD, all special characters except for "degree", "diameter" and "plus-minus" signs, are inserted as symbols from a special SHX font. You can use one of the two methods:

direct insertion of the symbol (that is, insertion of a character with a certain code from the font) — this method is always available;

insertion of the escape sequence; this sequence is substituted with a certain character from the current SHX font when the document is viewed or printed. This method is available of the font, in addition to character codes, also contains the escape sequences.

That is, if the TrueType fonts with the same names as the SHX fonts are not available, it is still possible to correctly recognize the special characters if they are inserted as character escape sequences. To do that, you need to set up the association between the KOMPAS-3D special characters and the AutoCAD document escape sequences: you need to "instruct" the software on which characters should be used to substitute the escape sequences. To get these associations, you can contact the developer of the SHX font or analyze the document after importing it without setting the character association.

To set up the character association, use the Symbols page. The association table on this page contains three columns:

N — number of a special character in KOMPAS-3D;

KOMPAS — special symbol image in KOMPAS-3D;

AutoCAD — escape sequence in an AutoCAD document (if the sequence is not defined, the cell displays the word "no").

When importing, you can use the default associations or the associations from an acs file.

To use the default mappings, click the Default button in the field to the right of the link File . In this case the most common associations in AutoCAD will be used.

The \SYS subfolder inside the main KOMPAS-3D folder contains the syslib.acs file with one of the possible associations between the AutoCAD and KOMPAS-3D special characters. To use these associations during import, click the File link and select the syslib.acs file. The file name is displayed in the field to the right of the link.

If the AutoCAD document contains escape sequences with undefined special characters, an error occurs during import: the resulting KOMPAS-3D document will display these escape sequences instead of the special characters. In this case you need to edit one or more associations.

To edit the association, please to the following:

1.In the association table, locate the row corresponding to the special character.

2.Edit the association: enter the character sequence that is displayed instead of the special character in the resulting document.

Perform these actions for every incorrect special character.

You can save the special character association in a file (*.acs). To do this, click the Save to file button located to the right of the field with the file name. You can use the resulting association file in further import sessions.

It makes sense to create a special character association file if you intend to import several files received from the same source, that is, if you need to import several documents with the same settings.

Line type and style association file (*.ACS)

The *.acs files are text files. You can create and edit these files in any text editing program in addition to the Import Settings dialog box. This way you can add or remove an association, and also create additional associations for the same KOMPAS-3D special character.

Example of an *.acs file:

4 &E

4 &e

5 &G

5 &g

One association is saved in each line of this file, as follows:

number of a special character in KOMPAS-3D, space, escape character sequence.

To learn about numbers of KOMPAS-3D special characters, see Appendix Special characters of KOMPAS-3D.

For example, if you use the aforementioned *.acs file, the special characters will be imported as follows.

All the sequences of the form &E or &e in an imported DXF or DWG file will be replaced with the special character № 4, i.e., the multiplication sign. Similarly, sequences &G or &g will be replaced with the special character № 5, i.e., the approximately equal sign, and so on.

If the special characters in the DXF or DWG document are inserted as characters with a certain code from a certain SHX font (rather than an escape sequence), and this font has no TrueType counterpart, then the resulting KOMPAS document will have the characters with the same code bur from a KOMPAS-3D font. (When importing to a new fragment, the font for new documents will be used. When importing to an existing document , the font for the current document will be used.) Use Method 2 to resolve the issue of incorrect reading of special characters, as described in the section Importing texts with SHX fonts...because in this case it is impossible to apply symbol mappings: if you set a correspondence between, for example, the letter 'R' and some special character, then all the letters 'R' present in the document (including those that are not related to special characters) will be replaced by the specified special character upon setup.

© ASCON-Design systems, LLC (Russia), 2024. All rights reserved.