Attribute Editor

The Attribute Editor allows you to edit multiple object attributes simultaneously. You can edit all the attributes of design objects, change attributes by a specific value, change attribute values based on other attributes, or assign values using an expression evaluator in Perl.


Instructions

Note:  Prior to using this option, load the object(s) in Vulcan that you want to modify.

On the Design menu, point to Attribute Edit, then click Attribute Editor.

Follow these steps:

  1. Select the objects you want to modify by populating the table. There are two methods to populate the table:

    1. Click the Select Objects button to display the Select By menu.

    2. Highlight the object(s) on the screen, then open Design > Attribute Edit > Attribute Editor.

      Note:  You must use the main menu to open the Attribute Editor instead of the right-click menu to preserve the highlighted selection.

    Use the Clear button to remove any highlighted items from the table.

    Use the Clear All button to remove all items from the table.

  2. Select the Attribute to change by selecting from the drop-down list.

  3. Depending on what you select from the Attribute to change list, you will be presented with the options available for the attribute you select.

    • Layer, Name, Description, Group, Feature, and Value all require you to enter the desired value into the textbox.

    • Display the colour palette by clicking on the colour icon, then make your selection.

    • Display the colour palette by clicking on the colour icon, then make your selection.

    • Display the pattern choices by clicking on the pattern icon, then make your selection.

    • For changes made to a primitive attribute, selecting Apply will create a primitive and selecting Don't apply will remove a primitive.

    • For changes made to Closed, select between Close and Open.

    • For changes made to Closed and Connected, select between Close and Open.

    • For changes made to ATTR:Position:Area, use the drop-down list in the table to make your selection.

  4. Select Set from another attribute to copy the values from one attribute field to another, then select the attribute that you want to copy from drop-down list.

  5. Select Use Perl expression to change attributes using Perl, then enter the expression in the text box.

    Example

    Examples of Perl expressions

    Variable Description
    $layer layer name (text)
    $name object name (text)
    $description object description (text)
    $group group name (text)
    $feature feature name (text)
    $value object value (numeric)
    $colour object colour index (numeric)
    $linestyle object line style index (numeric)
    $pattern object pattern index (numeric)
    $primitive object primitive (text)
    $closure if object is closed (0 - opened, 1-closed)

    Example 1

    Assign object value to colour number if object value is positive or 0 if object value is negative.

    $value > 0 ? $value : 0

    Example 2

    Assign to object description the combined Layer name, Object name and Group code using “_” character between them.

    join("_", ($layer, $name, $group))

    Example 3

    Assign to object group the substring of the first ten characters from the description.

    substr($description, 0, 10)

    Example 4

    Assign to object value the square root of calc.

    sqrt($calc)

    Example 5

    Concatenate layer and name with _ between then and assign the result to the object description.

    $layer. '_'. $name

    Example 6

    Specify the numeric format of value and assign to the object ATTR:BACKFILL:MASS.

    sprintf("%.3f", $value)

    Example 7

    Replace a substring, in this case " line " by " poly ". You can include complex instructions between do { }

    do { (my $tmp = $name) =~ s/line/poly/i; $tmp }

  1. Use one of these methods to apply changes:

    • Click Apply to Selection to apply changes to a specific set of objects, click on the number in the first column to highlight the line you want to change. To select additional rows, press and hold the Ctrl key and click on the row numbers you want to change. To select additional adjacent rows, press and hold the Shift key and click the last row you want to highlight, which will highlight all rows in between.
    • Click Apply to All to apply changes to all objects.

Click OK to save changes and exit the Attribute Editor, or click Cancel to exit the Attribute Editor without saving changes.