How can I do a Analyze Interference between two parts

How can I do a Analyze Interference between two parts

Anonymous
Not applicable
191 Views
0 Replies
Message 1 of 1

How can I do a Analyze Interference between two parts

Anonymous
Not applicable
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
0 Likes
192 Views
0 Replies
Replies (0)