AnsweredAssumed Answered

How to determine the variants in Drawing Editor via automation

Question asked by thomas.losert on Nov 8, 2018
Latest reply on Nov 21, 2018 by .-.--.--

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

Outcomes