How to get the quantity of the same part in assembly using VBA macro

107 views Asked by At

I am trying to get the quantity of the same parts in assembly using VBA macro. I used the following code in assembly: qty = swComp.ComponentOccurrences.Count

But the error alert is displayed that the object doesn't support this method or property.

What is the suitable method or property and is there any other way to get this value?

My purpose is to get the quantity of the same parts in assembly when I know the name of part. I want to know about this more specifically.

Thanks for reading.

0

There are 0 answers