Edit

ADD_ACTIVE_CODES_AND_CENTROID

Add active codes to boundary lines of selected enclosures in the topology for flooding and, if a code table topology is formed from the active code, insert a centroid in the enclosure.

Parameters

Does not accept parameters.

Notes

This flooding command acts on enclosures you click and requires a topology for flooding loaded in memory. First generate it with GENERATE_FLOOD_TOPOLOGY or GENERATE_FLOOD_TOPOLOGY_WITHOUT_ISLANDS, and regenerate it after modifying drawing lines. Without a topology for flooding, the command displays "No temporary topology is created", sounds the error tone, and ends, and Flooding/Add active codes and centroid... is disabled. This option is also disabled if the first active code is not the sole code of a code table topology with defined centroids.

Selecting enclosures

The command displays "Select the area to which active codes are to be added" and highlights the enclosure under the cursor.

  • Press the data button inside an enclosure to select it. The previous selection is discarded.
  • Hold Ctrl while pressing the data button to add or remove an enclosure from the selection.
  • Press the snap button to replace the last selected enclosure with the next unselected enclosure containing the cursor position. If no unselected enclosure contains it, the command removes the last enclosure from the selection and sounds the error tone.
  • Press the reset button to clear the selection.
  • Press the spacebar to accept the selection. If no enclosure is selected, the command sounds the error tone.
  • Press Esc to end the command.

After accepting a selection, the command remains active to select more enclosures.

Active codes

On acceptance, the command processes lines on the exterior boundaries and holes of the selected enclosures. A line shared by two selected enclosures is not processed because it lies inside the selected area.

The command appends any active codes the line does not have to each line's code list. If the option allowing repeated codes is enabled, it adds the active codes even if the line already has them. A line receiving no codes is not modified. Each modified line is replaced with a new line with the same vertices, and the topology for flooding and loaded topologies of the active drawing file use the new line.

Dialog box

Insert centroid dialog box

After adding codes, if there is a single active code, the command searches the code table for topologies whose sole code is the active code and that have defined centroids. For each matching topology, the command displays Insert centroid. With multiple active codes, the dialog box is not displayed.

The drop-down contains centroids of the topology being processed, in alphabetical order. Each centroid appears with its description or, if none is defined, its text. When Insert centroid opens, the first centroid is selected.

Enter the proper name is enabled only if the selected centroid is variable, for example, to enter street names.

Click Accept to insert text at an interior point of the first selected enclosure:

  • Its content is the centroid text. For a variable centroid, the entered proper name follows the centroid text without a separator.
  • It uses the text height, text justification, and active angle.
  • It has the active codes and active attributes.

If multiple enclosures are selected, the command inserts only one text, in the first enclosure. The text is not added to the topology for flooding.

Click Cancel to omit the text. The codes have already been added to the lines.

Processed enclosures

Processed enclosures are colored with the selected centroid's fill color. They are gray if the centroid has no fill color, if you click Cancel, or if the command does not display Insert centroid. Markers of processed enclosures remain after ending the command with Esc.

UNDO undoes the codes added and text inserted when accepting a selection in a single operation.

Command characteristics

Command type Interactive command
Repeats automatically No. The command remains active after each selection and ends with Esc
Menu option Flooding/Add active codes and centroid...
Toolbar This command has no associated toolbar button
Extension DigiNG.OrdenesTopologia.dll
Implementation Native
Related variables AA — active angle
TH — text height
JT — text justification
Related commands GENERATE_FLOOD_TOPOLOGY
GENERATE_FLOOD_TOPOLOGY_WITHOUT_ISLANDS
DELETE_COD_E
EDIT_CODES_E
PUT_ATR_E
PUT_COD_ENCLOSURE_CENTROID
UNDO
Internal name