Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
C_Haines_ENG
261 Views, 4 Replies

Get RangeBox of Part in Assembly, by Assembly Coordinate System

I'm trying to get a rangebox on a part in an assembly, but in the assemblies coordinate system. Does anyone know how to do this?

 

Dim oAsm As AssemblyDocument = ThisDoc.Document
Dim oOcc as ComponentOccurance
oOcc = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kAssemblyLeafOccurrenceFilter, "Pick a feature")

xFrameL = oOcc.Definition.RangeBox.MaxPoint.X - oOcc.Definition.RangeBox.MinPoint.X

The code above works great to get the rangebox on the PART coordinate system but I need one for an assembly coordinate system.