Go to: Synopsis. Return value. Keywords. Related. Flags. MEL examples.

Synopsis

createAttrPatterns [-patternDefinition string] [-patternFile string] [-patternType string]

createAttrPatterns is undoable, NOT queryable, and NOT editable.

Create a new instance of an attribute pattern given a pattern type (e.g. XML) and a string or data file containing the description of the attribute tree in the pattern's format.

Return value

stringName of created pattern

Keywords

attribute, pattern

Related

addAttr, addExtension, applyAttrPattern, deleteAttrPattern, listAttrPatterns

Flags

patternDefinition, patternFile, patternType
Long name (short name) Argument types Properties
-patternDefinition(-pd) string create
Hardcoded string containing the pattern definition, for simpler formats that don't really need a separate file for definition.
-patternFile(-pf) string create
File where the pattern information can be found
-patternType(-pt) string create
Name of the pattern definition type to use in creating this instance of the pattern.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command.

MEL examples

createAttrPatterns -patternType "xmlPattern" -patternFile "patterns/patternFile.xml"
// Result: myXMLPattern //