Community
Hello everyone
Is there a way to check if a certain component is grounded or not?
Thanks!
Solved! Go to Solution.
Solved by marcin_otręba. Go to Solution.
Dim occ As ComponentOccurrence Dim ass As AssemblyDocument=ThisDoc.Document For Each occ In ass.ComponentDefinition.Occurrences If occ.Grounded Then MessageBox.Show(occ.Name & " is grounded", "Title") End If Next
Thanks
It works, but it's not really what I need.
I want to check in parts, if a certain one is grounded.
It is an assembly with 4 parts and 2 of them shout not to be grounded.
And I want if someone will ground them to receive a message.
If Component.InventorComponent("40-4-019626:1").Grounded Then MessageBox.Show(Component.InventorComponent("40-4-019626:1").Name & " is grounded", "Title") End If
change 40-4-019626:1 to your component name
Can't find what you're looking for? Ask the community or share your knowledge.