Pure COM plugin with multiple version support

Is it possible to use the COM interface in order to create one .brx plugin file which will work with all BricsCAD versions from 19-24? I know it is possible using .NET API from BricsCAD 19 but due to technical issues i need to write it using COM only.

Comments

  • Hi,

    If you want to get rid of version dependency, you can use late binding (with 'dynamic' type in C#).

    When your code works as expected, remove all COM references and replace the COM types with dynamic (and replace the enum values by the corresponding integer).
  • Not with BRX, BRX itself is not compatible across versions. You can use C#’s binding as Gile suggests
    Here’s a sample https://www.theswamp.org/index.php?topic=55916