1 Reply Latest reply on Nov 21, 2018 4:03 AM by .-.--.--

    How to determine the variants in Drawing Editor via automation


      In PCB-Layout I got the variants information via the "Variant Manger" addin without any problems.

      Here the vb.net code snippet:


      vmAddin.Visible = True

      vmApp = vmAddin.Control.VariantGuiApplication

      vmDoc = vmApp.VMDocument

      Debug.Print("Variants.Count=" & vmDoc.Variants.Count)

      vmAddin.Visible = False


      But this dosn't work in Drawing Editor.

      After switchign the addin visible, I got this message



      Any creative suggestions are welcome

      Thanks in advance