2 Replies Latest reply on Sep 16, 2018 5:25 PM by Marcos Rodríguez

    Add Equations in multiple Configurations failing

    Marcos Rodríguez

      Hi Dear SwUser,


      I'm in despair with this issue:


      Following the online help

      2017 SOLIDWORKS API Help - SetEquationAndConfigurationOption Method (IEquationMgr)

      and its example:

      2017 SOLIDWORKS API Help - Add and Modify Equations Example (VBA)

      the only way to add equations for several configurations is with these arguments:


      longEquation = swEquationMgr.Add3(1, """D1@Boss-Extrude1"" = 0.05in", True, swAllConfiguration, Empty)


      However if it's specified a particular configurations it never works:

      swEquationMgr.Add3(3, """A""=" & A(1), True, swThisConfiguration, ArrayStrg)


      and much less edit it:


      longEquation = swEquationMgr.SetEquationAndConfigurationOption(1, """D1@Boss-Extrude1"" = 0.07in", swAllConfiguration, Empty)


      Any help?