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

Gathering ground information

$
0
0

Hello all,

 

I've written a plugin that can be ran on a buildlist, which output all ground devices and their properties in a csv file.

For some reason not all of the grounds are being captured.  When I open the csv file, I notice that there are several grounds missing.

 

Can someone take a look at my code below to see if I've done something wrong?

 

for(IXBuildList buildlist : ixac.getSelectedObjects(IXBuildList.class)){

                for(IXDesign des : buildlist.getDesigns()){

                    for(IXGround gnd : des.getConnectivity().getGrounds()){

                        String gndName = gnd.getAttribute("name");

                        for(IXValue prop : gnd.getProperties()){

                            String pName = prop.getName();

                            String pValue = prop.getValue();

                            cons.println("Ground:  "+gndName+"  Proterty:  "+pName+"  Value:  "+pValue);

                            writeData(out, gndName, pName, pValue);

                        }

                    }

                }

            }

 

Thank you!


Viewing all articles
Browse latest Browse all 4541

Trending Articles



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