Classification utilities > About smlutility and sml file format > smlutility keyword syntax and description
SMV keyword (attributes)
The SMV keyword defines an attribute and adds the attribute definition to the attribute (UNCT) dictionary. Once an attribute is defined in the dictionary, it can be used and reused as needed. Element name Definition Description SMV Keyword UNCT Attribute identifier Uniquely identifies an attribute and is the key field for associating the attribute with a class or subclass. UNCT numbers can be positive or negative. Note Positive numbers from 0 to 999 are reserved for Siemens Digital Industries Software. Format Value format Defines the type of value that is stored for the attribute. The major types of values are: Integer Real Date Time List Zero, one, or two formats can be entered in the Format field. . Name Attribute name Describes the attribute that is being defined. The name can be a maximum of 63 alphanumeric characters in length and is case sensitive. Short Name Short name Short name for an attribute can consist of up to 10 alphanumeric characters. When there is limited space available, Teamcenter uses the short name for creating reports. Ref Not used. Units Units Units are entered as a string that appear after the attribute value in the Classification pane located on the Properties tab. Zero, one or two unit descriptions can be entered in the Units field. Flags Not used, always 0. EX1 Not used. EX2 Not used. Units and formats To identify the units and control the format of a numeric attribute, use the Units and Format parameters of the SMV command line. For numeric attributes that change between measuring systems dependent on the class to which they are assigned, you can enter two formats and two units. For example, if the numeric attribute diameter is used in the inch class and metric class, the following definition can be used: Copy SMV |-2491 |21309 21308| Diameter | Dia | | mm inch | 0 | | This definition describes a +/-6.3 format with units of mm for the metric class and a +/-3.3 format with units of inch for the inch class. For example: Copy For + or - REAL(6.3) use 21311. Where 11 is the sum of: (6 plus 3=9) plus .=10 plus - which gives 11. For a forced pos. REAL(6.3) use 20310. Where ( 6 plus 3 plus . )=10. For a Real(3.3) that forces pos. numbers, use the code 20307. For a Real(6.3) that forces pos. numbers, use the code 20310. The value in the Flags parameter of the SML (class) command determines which of the two definitions are used with that class. Note Negative format numbers are the STXT-ID of a list. The first digit of a positive format number defines what types of values are expected in the field and controls the format of the value. The format number can be up to five digits in length. The following figure explains the meaning of the digit in the format number: Digit in format number In the following tables, the system creates a list with two entries and then defines two Cut Direction attributes. The first Cut Direction attribute (UNCT number 3001) represents a string attribute that allows the user to enter a 40-character text string representing the cut direction. In this case, the user is responsible for entering valid strings for the attribute value within the Classification interface. In the second attribute definition (UNCT number 3002) creates a Cut Direction attribute that allows the user to choose predefined values from a list. Note The negative format number matches the STXT-ID of the list definition and associates the attribute to the previously defined list. List definition Keyword STXT-ID Name STV | -3002 | Direction Keyword Key Value STD | L | Left STD | R | Right Cut direction attribute definition Keyword UNCT Format Name Short Name Ref Units Flags SMV | 3001 |00040 0 | Cut Direction | Cut Dir | | | 0 | | SMV | 3002 |-3002 0 | Cut Direction | Cut Dir | | | 0 | |
Source: https://docs.sw.siemens.com/documentation/external/PL20251212545240207/en-US/tc_help/utilities_reference/hwl1737253702969/ilg1737253703059/dkp1737253703710/smv_keyword_attributes.html · retrieved Fri Jul 31 2026 00:00:00 GMT+0000 (Coordinated Universal Time)