Message 1 of 2
measure extents length for a subassembly from main assembly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
we need to measure the extents dimensions of the subassemblies inside the main assembly, when i run the code it measures the extents dimensions of the main assembly only, it doesn't go inside the subassemblies.
so how to modify the below code to be able to reach the subassemblies level.
thanks.
Dim opendoc As Document opendoc = ThisDoc.Document Dim docfile As Document For Each docfile In opendoc.AllReferencedDocuments If docfile.DocumentType = 12291 Then Dim x = Measure.ExtentsLength Dim y = Measure.ExtentsWidth Dim z = Measure.ExtentsHeight MessageBox.Show("Part Number/Name :" & docfile.DisplayName & vbLf & "length = " & x & vbLf & "Width = " & Measure.ExtentsWidth & vbLf & "Height = " & Measure.ExtentsHeight, "Title") End If Next