Error in rule member not found?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I tried to get mass of sub assembly and then copy to iproperties. But I get an error message like this:
Here is the iLogic code I used:
Dim openDoc As Inventor.Document
Dim docFile As Inventor.Document
Dim FNamePos As Long
Dim docFName As String
DrawingDoc = openDoc
openDoc = ThisApplication.ActiveDocument
For Each docFile In openDoc.AllReferencedDocuments
'change project iproperty in all sub-assembly files of opened assembly
If docFile.DocumentType = kAssemblyDocumentObject Then
FNamePos = InStrRev(docFile.FullFileName, "\", - 1)
docFName = Mid(docFile.FullFileName, FNamePos + 1, Len(docFile.FullFileName) - FNamePos)
iProperties.Value(docFName,"Custom", "iMass") = Round(docFile.ComponentDefinition.MassProperties.Mass,2)
End If
Next
iLogicVb.UpdateWhenDone = True
Any Suggestions?
Thanks.