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

How to link Library properties of a component of a design in a CIS task plugin ?

$
0
0

Hello, I'm trying to developp a CIS Task (launched from outside of harness XC) that should extract the BOM of a given design, and inside it, I need to retrieve some Library properties of each BOM component (its status); how access  Library properties with the API in such a CIS task ?

 

If it was a XC internal Plugin and not a Task lauched from outside of XC, the code is:

 

libraryObject = context.getLibrary()).getLibraryObject(BOMw.getPartNumber());

 

if (libraryObject != null) {

 

     status = libraryObject.getAttribute("Status");

 

But, in a CIS Task launched from outside of XC, I have the design, but not the related context, so this doesn't provide the Library access; what is the way to retrieve library data of a component then ?

 

Thanks,

 


Viewing all articles
Browse latest Browse all 4541

Trending Articles



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