Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am trying to constrain two edges together. My first constraint takes the two edges and and mates them. This works fine.
I then try to constrain the end of the edges together using the StopVertex and StartVertex as the points for mating:
Dim oVertex1 As Inventor.VertexProxy Dim oVertex2 As Inventor.VertexProxy oVertex1 = oEdge1.StopVertex oVertex2 = oEdge2.StartVertex oAssyCompDef.Constraints.AddMateConstraint(oVertex1, oVertex2, 0)
oEdge1 and oEdge2 are edge proxies and behave as normal when I mate them.
The code always crashes inventor on the 'addmateconstraint' when I try to mate the vertexProxies
Any ideas what I'm doing wrong?
thanks,
John
Solved! Go to Solution.