Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
WCrihfield
in reply to: JamesMeBoi

Yes.  That part is much simpler.  The ComponentOccurrence object has a Property called "Grounded" that is Read/Write and has a Boolean type value.  So a line like this should do the trick:

 

If Not oSubAsmOcc.Grounded Then
	oSubAsmOcc.Grounded = True
End If

or

Component.InventorComponent("SubAsmName:1").Grounded = True

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)