09-19-2024
11:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
09-19-2024
11:38 AM
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.
Solved! Go to Solution.