Go to: Synopsis. Return value. Keywords. Related. Flags. MEL examples.
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.
string | Name of created pattern |
attribute, pattern
addAttr, addExtension, applyAttrPattern, deleteAttrPattern, listAttrPatterns
patternDefinition, patternFile, patternType
Long name (short name) |
Argument types |
Properties |
-patternType(-pt)
|
string
|
|
|
Name of the pattern definition type to use in creating this instance
of the pattern.
|
|
-patternFile(-pf)
|
string
|
|
|
File where the pattern information can be found
|
|
-patternDefinition(-pd)
|
string
|
|
|
Hardcoded string containing the pattern definition, for simpler formats that
don't really need a separate file for definition.
|
|
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.
|
createAttrPatterns -patternType "xmlPattern" -patternFile "patterns/patternFile.xml"
// Result: myXMLPattern //