Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, this simple rule work fine in inventor 2020, but in inventor 2017 i got an error : impossible to find member.
Does anyone have any idea how this could be solved?
' Get the active assembly. Dim oAsmDoc As AssemblyDocument = ThisDoc.Document 'Dim oAsmDoc As AssemblyDocument = ThisApplication.ActiveDocument Dim oRefDoc As Document For Each oRefDoc In oAsmDoc.AllReferencedDocuments Dim baseUnits As String = oRefDoc.ComponentDefinition.BOMQuantity.BaseUnits Dim unitQuantity As String = oRefDoc.ComponentDefinition.BOMQuantity.UnitQuantity If baseUnits = "mm" Then Dim UQN As Integer = InStrRev(unitQuantity, " ", -1) Dim UQ As String = Left(unitQuantity, UQN) Dim DIMENSIONI As Double = CDblAny(UQ) Dim QTA As String = CStr(CDblAny(UQ) / 1000) For i = 1 To Len(QTA) If Mid$(QTA, i, 1) = "," Then Mid$(QTA, i, 1) = "." Next iProperties.Value(System.IO.Path.GetFileName(oRefDoc.FullFileName) , "Custom", "QTA") = QTA iProperties.Value(System.IO.Path.GetFileName(oRefDoc.FullFileName) , "Custom", "DIMENSIONI") = DIMENSIONI End If Next
Thanks
Solved! Go to Solution.