I am wondering how to find out the number of selected components. I can access the first, second, and so on selected part using:
However, I don't know how find the number of selected components.
Thanks in advnace.
Solved! Go to Solution.
Lenovo ThinkPad W540, Win7, 16GB. Developing in: Java | C | KF
Production: [NX22.214.171.124 MP11 64bit] Testing: [NX126.96.36.199 MP1]
The selection manager has a .GetNumSelectedObjects method that will tell you how many objects are currently selected. Note that these objects could be anything, it doesn't tell you whether the object is a component or not. To get the number of components, you will need to sort through the selected objects to see how many are components. Some example code can be found here: