3 Replies Latest reply on Dec 21, 2009 11:07 AM by a.sassano

    How to automate add-ins ?

    Andre

      Hi,

       

      is there any way automate the add-ins, e.g. DxDataBook like this ? :

       

      Dim addon

      For Each addon In vdapp.Addins

           if addon.name = "DxDataBook"

                do something with addon.Object

           end if

      Next

       

       

      Regards,

      André

        • 1. Re: How to automate add-ins ?
          yu.yanfeng

          In Current WDIR directory, create a scripts.ini file where you can define what be loaded automatically with Application.

           

          Yanfeng

          • 2. Re: How to automate add-ins ?
            Andre

            yanfeng,

             

            looks like a misunderstanding.

             

            I don't want to open it, i.e. set addin.visible = true but *work* with it.

             

            This means starting a DxDB live verifikation or update all unique matches which would pretty well fit into our currently automated migration.

             

             

            Regards,

            André

            • 3. Re: How to automate add-ins ?
              a.sassano

              Hello,

               

              I checked if there exist any way to disable Addins.

               

              Your Problem:

              I see the same Problem for scripting.

              Crossprobe between ICT and schematic is used if scripting will access components.

              It slows down scripting. If the ICT window will be closed it work's faster.

               

               

              The following settings doesn't stop internal crossprobe between ICT and DxD.

              vdapp.interactive=false

              vdapp.busycursor=false

               

              Chapter3: "Addininfo" is the object which was returned by Addins

              --------------------

              For Each oAddIns In Addins

              if oAddIns.Name = "DxDataBook" then
                msgbox oAddIns.Name
                msgbox oAddIns.ProgId
              end if

              Next

              --------------------

               

              "DxDesigner Automation Reference" Page 49 shows no Property which can set the enabled state of the Addins.

               

              Fact:

              Actual documentation show's no function which can disable addins or stop crossprobe between open addins.

               

               

              Further checks needed:

              Maybe there exists any way to access toolbar icons to disable the addins by calling their toolbar buttons.

               

              Best Regards

              Angelo