4 Replies Latest reply on Jun 25, 2018 4:00 AM by Vasili Delizisis

    Api custom property with global value

    Vasili Delizisis

      Hi

       

      Hi have writen a macro that worked well on solidworks 2017 where it created custom property with linked global variable

       

      example

      CustPropMgr.Add3 "Global Variable", swCustomInfoText, Chr(34) & "GlobalVariable@Default@part.SLDPRT" & Chr(34), swCustomPropertyReplaceValue

       

      In solidworks 2017 this gave me the evaluated value of a equation number but in solidworks 2018 it gives me the text value of "GlobalVariable@Default@part.SLDPRT"

       

      Anyone knows what have changed in Solidworks 2018 so I can correct this?

       

      Thanks