odtable.getodrecords.init error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Function HasAttachRecord(objValue As AcadEntity, tblName As String) As Boolean
Dim ODtbl As AutocadMAP.ODTable
Dim ODtbls As AutocadMAP.ODTables
Dim ODRcs As AutocadMAP.ODRecords
Dim intODtablesCount As Integer
Dim intItem As Integer
Dim boolVal As Boolean
intItem = 0
Set ODtbls = proj.ODTables
intODtablesCount = ODtbls.Count - 1
For intItem = 0 To intODtablesCount
If ODtbls.Item(intItem).Name = tblName Then
Set ODtbl = aMap.Projects(ThisDrawing).ODTables.Item(intItem)
Exit For
End If
Next
Set ODRcs = ODtbl.GetODRecords
boolVal = ODRcs.Init(objValue, False, False) ' This line error!! error measge "Run-time error '5': Invalid procedure call or argument
'
'
'
'odTable attatch / cad object / yes
HasAttachRecord = true
'odTable attatch / cad object / no
HasAttachRecord = false
End Function
Help Me Please!!