Cancel
Showing results for 
Search instead for 
Did you mean: 

Extract Ports and Stocks in C++

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Hello ,

I need to extract electrical data in NX10 using NXOpen C++.

I try to loop all ports and stocks in my assembly by converting PortCollection and StockCollection to vector<Port> and vector<Stock>.

But I didn't find the best function.

 

*****

NXOpen::Routing::RouteManager *manager = workPart->RouteManager();

PortCollection *ports=manager->Ports();

StockCollection *stockCollect= manager->Stocks();

 

*****

 

Any help please ?

Thanks.