Message 1 of 3

Not applicable
07-16-2016
08:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
Wath am I doing wrong. I want the code to open the file that meets the iProp.
But now I get the error message "open is not a member from string"
how can I slove this ? the red color is wrong
Thanks in advance.
' Get the active assembly document. Dim oAsmDoc As AssemblyDocument = ThisApplication.ActiveDocument ' Iterate through all of the documents referenced by the assembly. Dim oDoc As Document For Each oDoc In oAsmDoc.AllReferencedDocuments ' Verify that the document is a part. If oDoc.DocumentType = kPartDocumentObject Then Dim oPartDoc As PartDocument = oDoc 'Manipulate part Dim model As String = oPartDoc.DisplayName model = model & ".ipt" If iProperties.Value(model,"Summary", "subject") = "muppet" Then MessageBox.Show("je bent zelf een muppet " & model) model.Open Else MessageBox.Show("Message", "Title") End If End If Next
tnx
Solved! Go to Solution.