<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/insertconstraint/m-p/761717#M174098</link>
    <description>oops, I think this looks better:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Set oOldPart = F_InsertNewDialog.BasePlane &lt;BR /&gt;
&lt;BR /&gt;
oNewPart.CreateGeometryProxy oNewPart.Definition.WorkPlanes.Item(3), oProxy &lt;BR /&gt;
&lt;BR /&gt;
oDocument.ComponentDefinition.Constraints.AddFlushConstraint oProxy, oOldPart, 0</description>
    <pubDate>Tue, 02 Apr 2002 04:36:24 GMT</pubDate>
    <dc:creator>jpisarz</dc:creator>
    <dc:date>2002-04-02T04:36:24Z</dc:date>
    <item>
      <title>InsertConstraint</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/insertconstraint/m-p/761714#M174095</link>
      <description>I am trying to create an InsertConstraint between a hole in one component&lt;BR /&gt;
and another component in an assembly. It always fails. My latest try ended&lt;BR /&gt;
with an alert box that says "Internal Error: Non Unique instances&lt;BR /&gt;
Selected.".   I am sure that the circular edges are correct for each&lt;BR /&gt;
component. What could I be doing wrong? The component is already positioned&lt;BR /&gt;
at the correct point and orientation, I just want them to be constrained.</description>
      <pubDate>Mon, 25 Mar 2002 12:58:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/insertconstraint/m-p/761714#M174095</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-03-25T12:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: InsertConstraint</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/insertconstraint/m-p/761715#M174096</link>
      <description>Randy,&lt;BR /&gt;
&lt;BR /&gt;
Its difficult to comment without looking at your code and the assembly file.&lt;BR /&gt;
Here is a sample code that worked fine for me:&lt;BR /&gt;
&lt;BR /&gt;
Sub test()&lt;BR /&gt;
    Dim aDoc As AssemblyDocument&lt;BR /&gt;
    Dim CO As ComponentOccurrence&lt;BR /&gt;
    Dim ACO As AssemblyComponentDefinition&lt;BR /&gt;
    Dim obj1 As Object&lt;BR /&gt;
    Dim obj2 As Object&lt;BR /&gt;
&lt;BR /&gt;
    Set aDoc = ThisDocument&lt;BR /&gt;
    Set obj1 =&lt;BR /&gt;
aDoc.ComponentDefinition.Occurrences(1).SurfaceBodies(1).Edges(1)&lt;BR /&gt;
    Set obj2 =&lt;BR /&gt;
aDoc.ComponentDefinition.Occurrences(2).SurfaceBodies(1).Edges(2)&lt;BR /&gt;
&lt;BR /&gt;
    Set ACO = aDoc.ComponentDefinition&lt;BR /&gt;
    ACO.Constraints.AddInsertConstraint obj1, obj2, True, 0&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Thilak&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Randy Sanders" &lt;RANDYS&gt; wrote in message&lt;BR /&gt;
news:39352E0E1DC155CE1BE70F7365719BE8@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I am trying to create an InsertConstraint between a hole in one component&lt;BR /&gt;
&amp;gt; and another component in an assembly. It always fails. My latest try ended&lt;BR /&gt;
&amp;gt; with an alert box that says "Internal Error: Non Unique instances&lt;BR /&gt;
&amp;gt; Selected.".   I am sure that the circular edges are correct for each&lt;BR /&gt;
&amp;gt; component. What could I be doing wrong? The component is already&lt;BR /&gt;
positioned&lt;BR /&gt;
&amp;gt; at the correct point and orientation, I just want them to be constrained.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/RANDYS&gt;</description>
      <pubDate>Fri, 29 Mar 2002 06:02:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/insertconstraint/m-p/761715#M174096</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-03-29T06:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: InsertConstraint</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/insertconstraint/m-p/761716#M174097</link>
      <description>I had this Problem with a constraint between a face and a workplane. the solution was to create a proxy from the workplane like this:&lt;BR /&gt;
&lt;BR /&gt;
Set oOldPart = F_InsertNewDialog.BasePlane&lt;BR /&gt;
oNewPart.CreateGeometryProxy oNewPart.Definition.WorkPlanes.Item(3), oProxy&lt;BR /&gt;
oDocument.ComponentDefinition.Constraints.AddFlushConstraint oProxy, oOldPart, 0&lt;BR /&gt;
&lt;BR /&gt;
maybe it's your way too.</description>
      <pubDate>Tue, 02 Apr 2002 04:34:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/insertconstraint/m-p/761716#M174097</guid>
      <dc:creator>jpisarz</dc:creator>
      <dc:date>2002-04-02T04:34:46Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/insertconstraint/m-p/761717#M174098</link>
      <description>oops, I think this looks better:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Set oOldPart = F_InsertNewDialog.BasePlane &lt;BR /&gt;
&lt;BR /&gt;
oNewPart.CreateGeometryProxy oNewPart.Definition.WorkPlanes.Item(3), oProxy &lt;BR /&gt;
&lt;BR /&gt;
oDocument.ComponentDefinition.Constraints.AddFlushConstraint oProxy, oOldPart, 0</description>
      <pubDate>Tue, 02 Apr 2002 04:36:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/insertconstraint/m-p/761717#M174098</guid>
      <dc:creator>jpisarz</dc:creator>
      <dc:date>2002-04-02T04:36:24Z</dc:date>
    </item>
  </channel>
</rss>

