<?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: Copy assembly components with constraints in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/8322570#M262208</link>
    <description>&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry about the mistake; I have also thanked Justin K as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel your pain re: constraints with mirror, symmetry, patterns.&amp;nbsp; Inventor 2015 (what I'm currently using) is not up to the challenge, really.&amp;nbsp; Solidworks had a useful symmetric constraint command already in 2008, and it worked pretty sweet!&amp;nbsp; Inventor needs to copy better!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I find that in order to make things adjust correctly after an update, I have to really think ahead and create work planes that are attached to the sketch geometry, but it's only after it breaks that I realize what I could have done, and then I implement the work geometry, and then the design doesn't change much.&amp;nbsp; Inevitably.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your comments and discussions; they are useful and helpful!&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Oct 2018 14:28:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-09T14:28:21Z</dc:date>
    <item>
      <title>Copy assembly components with constraints</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7401863#M262190</link>
      <description>&lt;P&gt;Hi all I am trying to copy hardware (bushings) in an assembly and keep the constraints from the first instance. In SW it was copy with mates and very easy very fast to do so. Going by Inventor help page titled "copy assembly components" this should do the same thing. However I can not make it work. Does any one know how to do it? Please don't suggest I just pattern it as very few things in life have a set repeating pattern all in the same plane.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 15:03:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7401863#M262190</guid>
      <dc:creator>sschulteH6WZ3</dc:creator>
      <dc:date>2017-09-22T15:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Copy assembly components with constraints</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7401982#M262191</link>
      <description>&lt;P&gt;Inventor only has constraint retention between parts in the select set. If you are copying and pasting a group of parts, there is no was to retain the constrains to other object.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Logistically, if you were do to this, it copying would place the parts in the exact same location anyways because how does it know what is the intended free DOF unless you have the model intentionally under constrained?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not saying the functionality isn't possible, but it's not out of the box. I have created my own macro to accomplish such a thing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 15:39:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7401982#M262191</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2017-09-22T15:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Copy assembly components with constraints</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7425345#M262192</link>
      <description>&lt;P&gt;So in this case Inventor is far behind the times. Their main competitor has had copy with mates for years. It is very possible since the other software does it very well.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 13:50:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7425345#M262192</guid>
      <dc:creator>sschulteH6WZ3</dc:creator>
      <dc:date>2017-10-02T13:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Copy assembly components with constraints</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7425590#M262193</link>
      <description>&lt;P&gt;You can assign imates to objects so that they automatically constrain to each other,&lt;/P&gt;
&lt;P&gt;thus even though your part loses it constraint to a part not in the selection set,&lt;/P&gt;
&lt;P&gt;it can automatically constrain to another part with a suitable imate&lt;/P&gt;
&lt;P&gt;I still haven't used them yet, so can't comment on how good or user friengly they are, but am planning to start very soon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not familiar with and have never used Solidworks, so don't know how it compares.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michael Kovacik&lt;/P&gt;
&lt;P&gt;Draughting/Designing (Manufacturing) (31 yrs)&lt;BR /&gt;Cad (28 yrs)&lt;BR /&gt;AutoCAD 2d &amp;amp; 3d (16 yrs)&lt;BR /&gt;Inventor (4 yrs) &lt;BR /&gt;Autocad and Inventor Simutaneously&amp;nbsp;(4 years)&lt;/P&gt;
&lt;P&gt;Autodesk Product Design Suite Ultimate 2018&lt;BR /&gt;Autocad 2018, Inventor Pro 2018&lt;BR /&gt;Johannesburg, South Africa&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 14:49:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7425590#M262193</guid>
      <dc:creator>MikeKovacik4928</dc:creator>
      <dc:date>2017-10-02T14:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Copy assembly components with constraints</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7465004#M262194</link>
      <description>&lt;P&gt;I find this one of the most frustrating things with Inventor. Having to fully&amp;nbsp;constrain copied parts. Parts are&amp;nbsp;initially constrained with 2 or 3 constraints. When copying, I think there should be an option to keep or modify those constraints.&lt;/P&gt;&lt;P&gt;Unfortunately, I don't know anything about macros etc, but surely if others can do it, Autodesk can do it.&lt;/P&gt;&lt;P&gt;it is very frustrating.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 21:18:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7465004#M262194</guid>
      <dc:creator>BP-OZ</dc:creator>
      <dc:date>2017-10-16T21:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Copy assembly components with constraints</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7528038#M262195</link>
      <description>&lt;P&gt;Yea SW has been able to do it at least 5 or 6 years now and I think longer.&amp;nbsp;I don't understand why these people are so far behind. Perhaps there is patent issues involved.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 18:14:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7528038#M262195</guid>
      <dc:creator>sschulteH6WZ3</dc:creator>
      <dc:date>2017-11-08T18:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Copy assembly components with constraints</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7528042#M262196</link>
      <description>&lt;P&gt;Their main competitor figured it out years ago and its out of the box.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 18:15:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7528042#M262196</guid>
      <dc:creator>sschulteH6WZ3</dc:creator>
      <dc:date>2017-11-08T18:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Copy assembly components with constraints</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7528296#M262197</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I agree, if a competitor can do that, Inventor should be able to match the behavior. It is a matter of prioritizing and planning.&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 19:19:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7528296#M262197</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2017-11-08T19:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Copy assembly components with constraints</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7772026#M262198</link>
      <description>&lt;P&gt;This is one EXTREMELY weak point with Inventor.&amp;nbsp; I used Solid Edge in the very early 2000's, it had a very fast way to insert multiple instances of a part, and have used SolidWorks 2017 and Inventor 2017 for the past year.&amp;nbsp; SW does have "copy with Mates" that I wish Inventor had comparably.&amp;nbsp; I looked at iMates in the past, but that is a poor work around when you have thousands of parts already in the system.&amp;nbsp; No one is going to go through the pain of adding iMates to all those parts.&amp;nbsp; Solid edge and Solidworks do not need that, why does Inventor?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally you should insert a part, and then be able to click on every position you need it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I wish Inventor would not need you to click "accept" every time you insert a constraint!&amp;nbsp; If I make a mistake, it is easy to go back a step and fix it.&amp;nbsp; Inventor seems to assume you are always going to do it wrong and makes you click accept every time.&amp;nbsp; I do it right 99% of the time, do not need "Nanny" to question me every time.&amp;nbsp; 8&amp;gt;(&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 19:54:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7772026#M262198</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-12T19:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Copy assembly components with constraints</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7773424#M262199</link>
      <description>&lt;P&gt;Hi evart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have been an Inventor User for 8 years. I must admit I have never used anything else besides Inventor, so I have&amp;nbsp; never been able to compare.&lt;/P&gt;
&lt;P&gt;It has been an issue with me too, see my previous post about attempting to use Imates to solve the issue. That never happened, after looking at&lt;/P&gt;
&lt;P&gt;it, it was too much of a tedious and time consuming work around for existing parts, just like you said.&lt;/P&gt;
&lt;P&gt;I do have a 30 day trial version of Solidworks which expires in 18 days, so will definitely have a look to see how they get around it!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I still wish that Inventor would bring in something comparible, as even though I have lapsed my personal&amp;nbsp;subscription for Autodesk Product&lt;/P&gt;
&lt;P&gt;Design Suite 2018, I will continue working on Inventor 2018&amp;nbsp;at home, and at work will continue working on the latest Inventor, which is still on subscription.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michael Kovacik&lt;BR /&gt;2d &amp;amp; 3d Autocad and Inventor designer/draughtsman&lt;BR /&gt;.&lt;BR /&gt;Draughting/Designing (Manufacturing) (31 yrs)&lt;BR /&gt;-Drawing Board (3 yrs)&lt;BR /&gt;--Cad (28 yrs)&lt;BR /&gt;---Cadkey (4 yrs)&lt;BR /&gt;---AutoCAD 2d &amp;amp; 3d (16 yrs)&lt;BR /&gt;---Inventor (4 yrs) &lt;BR /&gt;---Autocad and Inventor Simultaneously (4 years)&lt;BR /&gt;---(and recently Autocad/Inventor Customisation)&lt;BR /&gt;.&lt;BR /&gt;Autodesk Product Design Suite Ultimate 2018&lt;BR /&gt;Autocad 2018, Inventor Pro 2018&lt;BR /&gt;(personal licensed copy)&lt;BR /&gt;.&lt;BR /&gt;Johannesburg, South Africa&lt;BR /&gt;.&lt;BR /&gt;(Impossible only means you haven't &lt;BR /&gt;found the solution yet)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 09:42:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7773424#M262199</guid>
      <dc:creator>MikeKovacik4928</dc:creator>
      <dc:date>2018-02-13T09:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Copy assembly components with constraints</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7773784#M262200</link>
      <description>&lt;P&gt;I have used CAD for over 35 years, multiple systems, 2D and 3D.&amp;nbsp; SolidEdge was my first 3D modeler, loved it.&amp;nbsp; Moved to new company, had to learn Inventor.&amp;nbsp; I have used Inventor for about 5 years now. A year ago, company took on a project using SolidWorks, so learned that one too.&lt;/P&gt;&lt;P&gt;All three, SolidEdge, Inventor, and Solidworks each have their good and bad points, hard to choose between them which is "best".&amp;nbsp; Some depends on work being done, and how much work is done beyond just mechanical 3D design.&amp;nbsp; I have a pretty large list of things I think Inventor does better than SolidWorks, but recently got back to Inventor from using Solidworks almost exclusively for over a year.&amp;nbsp; Now I have a shorter list of things SolidWorks does better than Inventor.&amp;nbsp; One of those is placing multiple instances of a part into an assembly!&amp;nbsp; Inventor really is years behind on that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The new Inventor "Joint" feature is really good though, far quicker to place circular items such as screws, bushings, bearings, etc.. SolidWorks does not do that very well, their "Alt-Pick" function works sometimes, but not all the time. Frustrating to use it wondering if it will work, when much of the time it does not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I sure wish there was a "SolidInventor", combining the better points of all three into one package!&amp;nbsp; I have to say right now that there is no "best" one, having used all three.&amp;nbsp; SolidWorks is the most popular, but that only means they had the better marketing, not that they are actually better.&amp;nbsp; Same as when many years ago AutoCad was the most popular, when there were better 2D CAD packages out there.&amp;nbsp; I know from long experience back then that Anvil 1000MD ran circles around Autocad, easier, faster, and never broke! I still think Anvil 1000 was the best mechanical 2D CAD ever.&amp;nbsp; Never used Anvil 3D, not sure how it compared.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course there was AutoDesk Mechanical! Probably the worst ever!&amp;nbsp; I worked for one company that purchased 15 seats of that, after a couple years we replaced them with SolidEdge, threw the Autodesk Mechanical in the trash. That was an expensive hard lesson learned.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 12:28:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7773784#M262200</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-13T12:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Copy assembly components with constraints</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7776524#M262201</link>
      <description>&lt;P&gt;After having messed around with the solidworks 30 day trial version in the evenings for a few weeks,&lt;/P&gt;
&lt;P&gt;I see, in principle it is exactly the same as Inventor. The interface, commands and methods of operating&lt;/P&gt;
&lt;P&gt;are indeed quite different. It would take me a good 2 months to get up some sort of speed on it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I was a contractor working with my own software, and charging out on an hourly rate,&amp;nbsp;that would cost me big bucks!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will not change, and will stick with my Inventor, unless future work changes force me to do otherwise.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will however continue to investigate Solidworks,&amp;nbsp;just out of curiosity,&amp;nbsp;until my 30 day trial is up on 1 March&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks evart for the useful feedback on your 35 years of CAD experience.&lt;/P&gt;
&lt;P&gt;I totally agree with you that no one 3d solid parametric modelling software is that much better than any other,&lt;/P&gt;
&lt;P&gt;and that it is just a matter of how you are trained, what best pracitces you use, and how you interact with other&lt;/P&gt;
&lt;P&gt;users to find better solutions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 09:51:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7776524#M262201</guid>
      <dc:creator>MikeKovacik4928</dc:creator>
      <dc:date>2018-02-14T09:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Copy assembly components with constraints</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7777214#M262202</link>
      <description>&lt;P&gt;Here is a quick little bonus macro for you all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is not flawless - sometimes patterns and work features mess it up, BUT it will duplicate the selection of parts and the constraints between those parts and the assembly the rule is ran from. It places the parts directly over top of the previous one for this reason, so if you want to quickly change it, it is recommended that you leave 1 DOF free.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Private oNewlyInsertedColl As Collection
Private oOriginalItemColl As Collection

Public Sub DupeSelectionWithConstraints()
    If ThisApplication.ActiveDocument.DocumentType &amp;lt;&amp;gt; kAssemblyDocumentObject Then MsgBox ("Rule not valid for non-assembly files!"): Exit Sub
    
    Dim oDoc As AssemblyDocument
    Set oDoc = ThisApplication.ActiveDocument
    
    Dim oSS As SelectSet
    Set oSS = oDoc.SelectSet
    
    If oSS.Count &amp;lt; 1 Then MsgBox ("Rule Requires a Select Set!"): Exit Sub
    
    Call DuplicateSS(oDoc, oSS)
End Sub


Private Sub DuplicateSS(oParentDoc As Document, oSS As SelectSet)
    Dim oTG As TransientGeometry
    Set oTG = ThisApplication.TransientGeometry
    
    Set oPasteMatrix = oTG.CreateMatrix()
    
    Set oOriginalItemColl = New Collection
    Set oNewlyInsertedColl = New Collection
    
    For Each oItem In oSS
        Set oPasteMatrix = oItem.Transformation
        Set oNewOcc = oParentDoc.ComponentDefinition.Occurrences.Add(oItem.Definition.Document.FullDocumentName, oPasteMatrix)
        oOriginalItemColl.Add oItem
        oNewlyInsertedColl.Add oNewOcc
    Next
    
    Dim oTestoOcc1 As Object
    Dim oTestoOcc2 As Object
    
    Dim oOcc1 As ComponentOccurrence
    Dim oOcc2 As ComponentOccurrence
    
    Dim oEntityOne As Object
    Dim oEntityTwo As Object
    
    For Each oConstraint In oParentDoc.ComponentDefinition.Constraints
    'Grab entities for new constraint to create
            Set oTestoOcc1 = GrabObjectFromColl(oOriginalItemColl, oConstraint.OccurrenceOne)
            Set oTestoOcc2 = GrabObjectFromColl(oOriginalItemColl, oConstraint.OccurrenceTwo)
            
            If oTestoOcc1 Is Nothing And oTestoOcc2 Is Nothing Then GoTo NextConstraint
            
            If oTestoOcc1 Is Nothing Then
                Set oEntityOne = oConstraint.EntityOne
            Else
                For Each oPossibleOcc In oNewlyInsertedColl
                    If oPossibleOcc.Definition Is oTestoOcc1.Definition Then
                        Set oOcc1 = oPossibleOcc
                    End If
                Next
                Call oOcc1.CreateGeometryProxy(GetProxy(oConstraint.EntityOne, oOcc1), oEntityOne)
            End If
            
            If oTestoOcc2 Is Nothing Then
                Set oEntityTwo = oConstraint.EntityTwo
            Else
                For Each oPossibleOcc In oNewlyInsertedColl
                    If oPossibleOcc.Definition Is oTestoOcc2.Definition Then
                        Set oOcc2 = oPossibleOcc
                    End If
                Next
                Call oOcc2.CreateGeometryProxy(GetProxy(oConstraint.EntityTwo, oOcc2), oEntityTwo)
            End If
        'End Grab entities
        
        
        'Check type of constraint
        Select Case oConstraint.Type
            Case 100665088 'kAngleConstraintObject
                'oParentDoc.Constraints.AddAngleConstraint(EntityOne As Object,
                '                                          EntityTwo As Object,
                '                                          Angle As Variant,
                '                                          [SolutionType] As AngleConstraintSolutionTypeEnum,
                '                                          [ReferenceVectorEntity] As Variant,
                '                                          [BiasPointOne] As Variant,
                '                                          [BiasPointTwo] As Variant )
                '                                      As AngleConstraint
                Call oParentDoc.ComponentDefinition.Constraints.AddAngleConstraint(oEntityOne, oEntityTwo, oConstraint.Angle, oConstraint.SolutionType, oConstraint.ReferenceVectorEntity)
                
            Case 100707840 'kAssemblySymmetryConstraintObject
                'oParentDoc.AddSymmetryConstraint( EntityOne As Object,
                '                                  EntityTwo As Object,
                '                                  SymmetryPlane As Object,
                '                                  [EntityOneInferredType] As InferredTypeEnum,
                '                                  [EntityTwoInferredType] As InferredTypeEnum,
                '                                  [NormalsOpposed] As Boolean )
                '                                 As AssemblySymmetryConstraint
                Call oParentDoc.ComponentDefinition.Constraints.AddSymmetryConstraint(oEntityOne, oEntityTwo, oConstraint.SymmetryPlane, oConstraint.EntityOneInferredType, oConstraint.EntityTwoInferredType, oConstraint.NormalsOpposed)
                
            Case 100666368 'kFlushConstraintObject
                'oParentDoc.AddFlushConstraint( EntityOne As Object,
                '                               EntityTwo As Object,
                '                               Offset As Variant,
                '                               [BiasPointOne] As Variant,
                '                               [BiasPointTwo] As Variant )
                '                            As FlushConstraint
                Call oParentDoc.ComponentDefinition.Constraints.AddFlushConstraint(oEntityOne, oEntityTwo, oConstraint.Offset.Expression)
                
                
            Case 100665344 'kInsertConstraintObject
                'oParentDoc.AddInsertConstraint( EntityOne As Object,
                '                                EntityTwo As Object,
                '                                AxesOpposed As Boolean,
                '                                Distance As Variant,
                '                                [BiasPointOne] As Variant,
                '                                [BiasPointTwo] As Variant )
                '                             As InsertConstraint
                Call oParentDoc.ComponentDefinition.Constraints.AddInsertConstraint(oEntityOne, oEntityTwo, oConstraint.AxesOpposed, oConstraint.Distance.Expression)
                
            Case 100665856 'kMateConstraintObject
                'oParentDoc.AddMateConstraint( EntityOne As Object,
                '                               EntityTwo As Object,
                '                               Offset As Variant,
                '                               [EntityOneInferredType] As InferredTypeEnum,
                '                               [EntityTwoInferredType] As InferredTypeEnum,
                '                               [BiasPointOne] As Variant,
                '                               [BiasPointTwo] As Variant )
                '                             As MateConstraint
                Call oParentDoc.ComponentDefinition.Constraints.AddMateConstraint(oEntityOne, oEntityTwo, oConstraint.Offset.Expression, oConstraint.EntityOneInferredType, oConstraint.EntityTwoInferredType)
                
            Case 100665600 'kTangentConstraintObject
                '.AddTangentConstraint( EntityOne As Object,
                '                       EntityTwo As Object,
                '                       InsideTangency As Boolean,
                '                       Offset As Variant,
                '                       [BiasPointOne] As Variant,
                '                       [BiasPointTwo] As Variant )
                '                     As TangentConstraint
                Call oParentDoc.ComponentDefinition.Constraints.AddTangentConstraint(oEntityOne, oEntityTwo, oConstraint.InsideTangency, oConstraint.Offset.Expression)
            
        End Select
NextConstraint:
    Next 'constraint
    
    
End Sub

Private Function GrabObjectFromColl(ByVal oColl As Collection, ByVal oObj As Object) As Object
    For Each oItem In oColl
        If oItem Is oObj Then
            Set GrabObjectFromColl = oObj
            Exit Function
        End If
    Next
    Set GrabObjectFromColl = Nothing
End Function

Private Function GetProxy(ByRef Prxy As Object, ByRef ContOcc As ComponentOccurrence) As Object
    Dim TempPrxy As Object
    Dim Occ As Object
    If Prxy.ContainingOccurrence.Type = kComponentOccurrenceObject Then
        Set Occ = ContOcc
    Else
        On Error Resume Next
            Set Occ = ContOcc.Definition.Occurrences.ItemByName(Prxy.ContainingOccurrence.Name)
            
        If Err.Number &amp;lt;&amp;gt; 0 Then
            On Error GoTo 0
            Set TempPrxy = Prxy.ContainingOccurrence
            Call ContOcc.CreateGeometryProxy(GetProxy(TempPrxy, ContOcc), Occ)
        End If
    End If
    Call Occ.CreateGeometryProxy(Prxy.NativeObject, GetProxy)
End Function&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Feb 2018 14:20:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/7777214#M262202</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2018-02-14T14:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Copy assembly components with constraints</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/8157479#M262203</link>
      <description>&lt;P&gt;Yo&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="macro compile fail.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/527587i891B614780E9E346/image-size/large?v=v2&amp;amp;px=999" role="button" title="macro compile fail.png" alt="macro compile fail.png" /&gt;&lt;/span&gt;ur macro does not work...&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 13:51:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/8157479#M262203</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-26T13:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Copy assembly components with constraints</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/8313541#M262204</link>
      <description>&lt;P&gt;it is vba code for macro, not ilogic.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 17:09:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/8313541#M262204</guid>
      <dc:creator>skyngu</dc:creator>
      <dc:date>2018-10-04T17:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Copy assembly components with constraints</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/8316549#M262205</link>
      <description>&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much for the code!&amp;nbsp; It works great!&amp;nbsp; I really appreciate it!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added a small message box to the end of the code that just says, "Your components have been copied and are now placed in the assembly." - This is just so that the user knows that it worked, and they should go look for the new components.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;David Fletcher&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 20:42:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/8316549#M262205</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-05T20:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Copy assembly components with constraints</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/8316886#M262206</link>
      <description>&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't write the code. I don't know how to program.&lt;/P&gt;&lt;P&gt;Justin K wrote it. Thank you Justin K.&lt;/P&gt;&lt;P&gt;I haven't tried it yet but will do soon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still struggling along, reconstraining items that I copy or mirror in big assemblies.&lt;/P&gt;&lt;P&gt;I haven't continued using imates, I found it too cumbersome to use and set up.&lt;/P&gt;&lt;P&gt;What I try to do now, is constrain components&amp;nbsp;that I know I am going to copy and paste or mirror or pattern&amp;nbsp;to each other, rather than to parts that I know are not going to be part of the copy/mirror/pattern process.&lt;/P&gt;&lt;P&gt;One thing that does annoy me intensely, is the fact that I have found no way to use the symmetry constraint,&lt;/P&gt;&lt;P&gt;in combination with the mirror command, so that when you change your base assembly, the mirrored parts move as well, not stay where they are (unless of course you reconstrain them AFTER&amp;nbsp; the mirror to some stationary planes).&lt;/P&gt;&lt;P&gt;However I will create a separate post for this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still wasting a lot of time, reconstraining, I think it is just the nature of beast, it has to be done.&lt;/P&gt;&lt;P&gt;Hopefully, as I gain experience and continue talking on the forum to others who are doing the same,&lt;/P&gt;&lt;P&gt;my methodology will improve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2018 06:25:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/8316886#M262206</guid>
      <dc:creator>MikeKovacik4928</dc:creator>
      <dc:date>2018-10-06T06:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Copy assembly components with constraints</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/8322551#M262207</link>
      <description>&lt;P&gt;Hi Justin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much for the code!&amp;nbsp; It works great!&amp;nbsp; I really appreciate it!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;David Fletcher&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 14:21:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/8322551#M262207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-09T14:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Copy assembly components with constraints</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/8322570#M262208</link>
      <description>&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry about the mistake; I have also thanked Justin K as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel your pain re: constraints with mirror, symmetry, patterns.&amp;nbsp; Inventor 2015 (what I'm currently using) is not up to the challenge, really.&amp;nbsp; Solidworks had a useful symmetric constraint command already in 2008, and it worked pretty sweet!&amp;nbsp; Inventor needs to copy better!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I find that in order to make things adjust correctly after an update, I have to really think ahead and create work planes that are attached to the sketch geometry, but it's only after it breaks that I realize what I could have done, and then I implement the work geometry, and then the design doesn't change much.&amp;nbsp; Inevitably.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your comments and discussions; they are useful and helpful!&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 14:28:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/8322570#M262208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-09T14:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Copy assembly components with constraints</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/10818900#M262209</link>
      <description>&lt;P&gt;I've been chipping away at an addin that gives a copy with mates like experience. I'm about to ditch&amp;nbsp; what I've got and do a from scratch rewrite but thought I'd share the early beta as can still be a useful, although buggy tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/drive/folders/1CI1ppMxqbDlYHlHe2pn8eRYhkG7AqWIK?usp=sharing" target="_blank" rel="noopener"&gt;https://drive.google.com/drive/folders/1CI1ppMxqbDlYHlHe2pn8eRYhkG7AqWIK?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;drop the .dll and .addin into&amp;nbsp;C:\ProgramData\Autodesk\Inventor Addins&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards Phil&lt;/P&gt;&lt;P&gt;screencast below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://autode.sk/3ac5DGj" target="_blank"&gt;https://autode.sk/3ac5DGj&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 11:29:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/copy-assembly-components-with-constraints/m-p/10818900#M262209</guid>
      <dc:creator>prussellZXB3F</dc:creator>
      <dc:date>2021-12-13T11:29:09Z</dc:date>
    </item>
  </channel>
</rss>

