Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to select an appearance in a derived part using
oApp = oPartDoc.AppearanceAssets.Item(App_name)
However the oPartDoc is a derived document that I had to select with the help of
Dim oPartDoc As Document
For Each oPartDoc In ThisApplication.Documents.VisibleDocuments
If oPartDoc Is Nothing Then
'MsgBox "Missing Inventor Part Document"
Exit Sub
End If
If Left(oPartDoc.DisplayName,13) = "example_1.ipt" Or Left(oPartDoc.DisplayName,13) = "example_2.ipt" Or Left(oPartDoc.DisplayName,13) = "example_3.ipt" Then
Exit For
End If
Next
But since oPartDoc is a Document and not a PartDocument i cant access the AppearanceAssets shown in the first code. I tried to change it to PartDocument but it doesn't like it. Can someone at least tell me if I'm thinking wrong about how to solve this? Thanks 🙂
Solved! Go to Solution.