Message 1 of 1
How can I do a Analyze Interference between two parts

Not applicable
06-23-2003
02:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, everybody.
I have one assembly with two parts, called oassembly.iam, p1.ipt and p2.ipt. I did the follow program:
"
Sub Main()
Dim oAsse as AssemblyDocument
Set oAsse = Thisapplication.ActiveDocument
Dim Inti as InterferenceResults
Dim oB1 as Object
Dim i as integer
Set oB1 = oasse.componentdefinition.ocurrences(1)
Set Inti = oasse.componentdefinition.analyzeinterference(oB1)
Msgbox Inti.Count
End Sub
"
Well, the Inventor show me the message Type Mismatch in the sixth and seventh lines. What's wrong here?
Regards.
Mac
I have one assembly with two parts, called oassembly.iam, p1.ipt and p2.ipt. I did the follow program:
"
Sub Main()
Dim oAsse as AssemblyDocument
Set oAsse = Thisapplication.ActiveDocument
Dim Inti as InterferenceResults
Dim oB1 as Object
Dim i as integer
Set oB1 = oasse.componentdefinition.ocurrences(1)
Set Inti = oasse.componentdefinition.analyzeinterference(oB1)
Msgbox Inti.Count
End Sub
"
Well, the Inventor show me the message Type Mismatch in the sixth and seventh lines. What's wrong here?
Regards.
Mac