Quantcast
Channel: Mentor Graphics Communities: Message List
Viewing all articles
Browse latest Browse all 4541

Re: How to know how many variants are there in a specified prj by VBS

$
0
0

Hi, try this

 

if variant manager is open you can use the code below , otherwise you have to open the variant manager by script

 

    Set DXDApp = GetObject(, "viewdraw.Application")

    Set VMaddin = DXDApp.AddIns("Variant Manager")

    Set vmdoc = VMaddin.Control.VariantGuiApplication.VMDocument

    Set vmvar = vmdoc.Variants

    Debug.Print vmvar.Count


Viewing all articles
Browse latest Browse all 4541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>