Skip to content

Navigation properties and relationships for annotation elements #560

@Alfonso-Martello

Description

@Alfonso-Martello

This is an issue asking for guidance on the best way to expose a style navigation property for the various annotation elements used by Drawing Production. It is related to the recommendations from the BWG meeting on 08/01/2025. There was a brief asynchronous discussion about this with @ColinKerr and this issue is a place for that discussion to continue and for others to chime in.

There are 5 ECEntityClasses that need to refer to a style. They are:

  1. TextAnnotation2d refers to an AnnotationTextStyle
  2. TextAnnotation3d refers to an AnnotationTextStyle
  3. Table refers to an AnnotationTextStyle
  4. Dimension refers to a DimensionStyle
  5. DimensionStyle refers to an AnnotationTextStyle

Does each ECNavigationProperty need to refer to a new ECRelationshipClass? So we would end up with this setup:

  1. TextAnnotation2d refers to AnnotationTextStyle via relationship TextAnnotation2dUsesAnnotationTextStyle
  2. TextAnnotation3d refers to AnnotationTextStyle via relationship TextAnnotation3dUsesAnnotationTextStyle
  3. Table refers to AnnotationTextStyle via relationship TableUsesAnnotationTextStyle
  4. Dimension refers to a DimensionStyle via relationship DimensionUsesDimensionStyle
  5. DimensionStyle refers to an AnnotationTextStyle via relationship DimensionStyleUsesTextStyle

Or should we do something else?

TextAnnotation2ds, Tables, and Dimensions all extend the AnnotationElement2d concrete class. Is it possible to create a more generic Annotation2dUsesStyle relationship that could be on this base class? Should we use a mixin?

cc: @ColinKerr, @diegoalexdiaz, @pmconne, @Josh-Schifter, @SheetalNair

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions