Message 1 of 4
Check if Part is a mirrored part
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello together,
I looked for a way to check if a Part is a mirrored part. I didn't find a solution here, but after some tests I found a way that works for me. Perhaps someone needs this too. The following VBA sub shows it. When you mirror parts in Inventor the first DirevedPartComponet has a Property mirror. A derived component where you select the option mirror while you create it has it too, But in this case it could also be the second or other DirevedPartComponent.
Sub subWNtestMirrorpart()
Dim oDoc As PartDocument
Set oDoc = ThisApplication.ActiveDocument
Dim isMirror As Boolean
On Error Resume Next
isMirror = oDoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents.Item(1).Definition.Mirror
On Error GoTo 0
If isMirror Then
MsgBox "mirrored part"
Else
MsgBox "Not mirrored part"
End If
End Sub
Best Regards
Wolfgang