0 Replies Latest reply on Nov 8, 2018 3:06 AM by thomas.losert

    How to determine the variants in Drawing Editor via automation

    thomas.losert

      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