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
SInce you already have code that works in PCB-Layout to get the variant info you want, use the Document_OnSave event to write the latest variant info out to a text file. Then, simply read and process the text file in Drawing Editor.