How to automatically match AutoCAD Layers to Buildings

From Tygron Support wiki
Revision as of 14:10, 30 November 2023 by Bobby@tygron.nl (talk | contribs)
Jump to navigation Jump to search

A Geo Plugin can be used to automatically match features to functions when importing a DXF file. This how-to describes how to configure a Geo Plugin to match features with a specific LAYER property to a function.

Editor → Tools (Ribbon tab) → Geo Plugins (Ribbon bar)
How to create a Geo Plugin for use in the geo data wizard:
  1. Create a new Geo Plugin for Buildings.
  2. Uncheck the "Use for New Projects" option.
  3. Click on the Select hyperlink next to Configuration geometries. A new panel opens.
  4. Click on the link in the lower left to select features from a dxf file.
  5. Follow the wizard to obtain the features. Once completed, return to the Geo Plugin general tab.
  6. Notice Configuration geometries now indicates how many geometries are available to inspect to use in the configuration.
  7. Switch to the GeoLinks tab of the Geo Plugin detail panel.
  8. Add a new Geo Link or select an existing one.
  9. Switch to the "Matching Attributes" tab.
  10. Click on the Select button below Attributes. A new panel with a selection box opens. Select the attribute "LAYER".
  11. Next, click on the select button below Values and select the layer name that requires a match.
  12. Switch back to the "General" tab of the GeoLink.
  13. Set the "Function" of the GeoLink to the desired Function to create.
  14. If applicable (e.g. for trees), set the "Geometry" setting to RADIUS_CENTERPOINT.
  15. Repeat the creation of a GeoLink and its configuration, for each type of Function which should be created.

Notes

  • A Geo Plugin created through this process can also be linked to a Project Source referring to a DXF on the Geo Share, so that data from that DXF is automatically included in new Projects. To set this up, select that Project Source as source for this Geo Plugin, and ensure the "Use for New Projects" option is checked.
    • Due to how new Projects are generated, if a (Buildings) Geo Plugin is set to be usable during Project creation it does not allow setting Geo Links to road Functions. To create roads during Project generation, use a Roads Geo Plugin.
  • A Geo Plugin created through this process can also be used automatically define the mapping when the data originates from other data sources, such as GeoJSONs or WFSs.
  • If a layer in the DXF file contains features which should be loaded in as different Functions, such as a layer indicating different types of housing, those features should be distinguishable by color or block name. In that case, after adding a LAYER attribute mapping, a second attribute can be added for either COLOR or BLOCK_NAME, so create a Geo Link which will assign a Function if a feature in that layer also has that specific color.

How-to's

See also