Hi All,
How to get count of no. of occurrences of a sub part in a assembly using API's.
Thanks in Advance.
2012 SOLIDWORKS API Help - GetComponents Method (IAssemblyDoc)
and count where name equal is.
IComponent2::Name2 returns the fully qualified component name including parents and instance numbers. Consequently it is necessary to perform string manipulation to get the name of the component by itself. For example:
"MySubAssy/Part1-3" needs to be parsed as "Part1"
Keith
SolidWorks API Training
2012 SOLIDWORKS API Help - GetComponents Method (IAssemblyDoc)
and count where name equal is.