Operation possible on parts, assemblies or drawings.

This operation allows you to modify a portion of a property's value in the document being parsed using a string.

Example:

In the " Description " property value, we want to replace " 123 " with " abc." Use the " | " character as a separator.

 


  • You can use the "*" character before or after a specific string:
    • *123*|abc - Replace the string " 123 " with "abc"regardless of its position in the field.

Example: The value 456-12345-APP will become 456-abc45-APP after the operation is applied.

    • 123*|abc - Replace the string " 123 " with "abc" only if it appears at the beginning of the field.

Example: The value 12345-APP-01 will become abc45-APP-01 after the operation is applied.

    • *123|abc - Replace the string " 123 " with "abc"only if it appears at the end of the field.

Example: The value APP68-01-123 will become APP68-01-abc after the operation is applied.


  • You can use the "#" character before or after a specific string:
    • #1s4|2013 - Replace the field's value starting with the first of four characters with "2013."

Example: The value 4560-45-APP will become 2013-45-APP after the operation is applied.

    • #3e3|2013 - Replace the 3-character portion of the field starting from the third character from the end with "2013."

Example: The value PROJ-45-1999 will become PROJ-45-2013 after the operation is applied.

    • *123|abc - Replace the string " 123 " with "abc"only if it appears at the end of the field.

Example: The value APP68-01-123 will become APP68-01-abc after the operation is applied.


  • Instead of specifying a string in the replacement value, you can use the ''$'' character to retrieve the content of a document property:
    • #1s4|$Code_Article - Replace the field area starting with the first character of the 4-character string with the value of the "Code_Article" property.

Example: The value 4560-45-APP will become 3-22-45-APP after the operation is applied, assuming that the “Code_Article” property is equal to “3-22.”


  • You can also use coded instructions to specify the replacement value. RESPECT THE CASE

<FileName> to display the document name.

<PathName> to display the full path where the document is saved.

$Property name to display a document property value (if the property name contains a space, use %20% to replace that space).

<Configuration> to display the name of the document's active configuration.

<Date> to display the date.

<Time> to display the time.

<NewLine> to start a new line.