AnsweredAssumed Answered

Get Component of a face

Question asked by Daniel Zinser on Nov 27, 2019
Latest reply on Nov 27, 2019 by Amen Allah Jlili

Hi,

I have a question about surfaces and their components.
I've used VBA and the Solidworks API to query all faces of all components of an assembly andand collected them in an array. Now I want to know to which component a face belongs. But I can't get any further. I tried it as follows, but I still get "Nothing" for the component:

 

Set swEntity1 = face
Set Component1 = swEntity1.GetComponent

 

I would be pleased about a small help.
Many greetings

Daniel

Outcomes