COGO points to Profile


This macro reads a report and draw cells on profile. An Item Type is attached to the cell with some information coming from the report (Name, Description, Feature Definition and offset).

You must create the item type library and item type with the properties. You can use your own by changing the constants.
Of course you can edit the code to add/remove properties as needed. Item Type is used for annotation.
There is no link between cells (and information) on profile and points (and information) on plan.
The information is read and assigned from the report at runtime only.

Workflow:

  1. Create a Point Report and save XML
  2. Activate Profile Model
  3. Run the macro

https://youtu.be/dhk3ZNSQhGM

A set of constants are set so that you can easily change some settings:

A function is there to map feature definition name to cell name (for now it is quicker than creating external file).
It gives example of what can be done. Cell scale can be set individually to each cell. If not set it is hardcoded 1,0.1,1