AutoCAD Inventor :: ILogic Create Assembly Constraints

Dec 30, 2013

Im after programmatically mating 2 components together in an assembly. My stages are as follows:

1)Create New Assembly

2)Add .ipt's

3) One-by-one, mate all the parts together (each part has a plane named "WPStart" and "WPEnd". In each part im after the WPStart being flush mated with the WPEnd of the 2nd part - see image attached. In addition I would like to mate al the XZ planes in each of the parts fluch together and likewize the YZ planes.

3) Mate the parts together

Dim FlushConst As FlushConstraint

FlushConst.AffectedOccurrenceOne = oAssyDoc.ComponentDefinition.Occurrence.Item(1).Workplanes.ItemByName("WPStart") <--------

FlushConst.AffectedOccurrenceTwo = oAssyDoc.ComponentDefinition.Occurrence.Item(2).Workplanes.ItemByName("WPEnd")  <--------

View 2 Replies


ADVERTISEMENT

AutoCAD Inventor :: Assembly Constraints Driven By Ilogic?

Apr 4, 2013

I want to use I logic to adjust an assembly constraint based on T/F value passed from a master sketch. 

I have passed the paramater T/F and/or a user paramater as described in this thread using link (neet trick).. but when the code fires it only works on the true application and not the false.. if i open the rule and then close it the update button  becomes available and when updated the false condition updates sucessfully. I have tried just re-running the rule to no avail. It seams that the only way I can get it to triger a false condition is to open the rule... close it and update. 

If Parameter("iTrigger0101000") = 1 Thend37_Header1 = -.25 ind34_Header2 = -.25 inElseIf Parameter("iTrigger0101000") = 0 Thend37_Header1 = -.25 ind34_Header2 = 0.0 inEnd If

View 2 Replies View Related

AutoCAD Inventor :: Place Assembly Constraints With Parameters From Parts In Assembly?

Oct 30, 2012

it is possible to make a constraint that utilized a parameter of a part within the assembly.

For example, if I wanted to use the thickness of a plate, which I defined in the part, could I call that parameter in a constraint?

View 1 Replies View Related

AutoCAD Inventor :: Constraints Not Turning Off Using ILogic

Jun 1, 2012

I set rules to turn parts off, and they are Suppressed, but I keep getting errors on constraints underneath the suppressed part.  I did a screen capture of what the problem is.

View 9 Replies View Related

AutoCAD Inventor :: Remove All Fixed Constraints With ILogic

Sep 24, 2013

How does Inventor "Remove fix constraints" so quickly? Can this be replicated in iLogic?

The way I've previously done this requires looping through the constraint collection and deleting one at a time which may take a few minutes on a complex sketch, but when Inventor deletes fixed constraints throught the menu option it does it in a few seconds on the same sketch so Inventor must be able to select them all at once and delete them all at once. Is there a way to do this through the API or iLogic?

View 9 Replies View Related

AutoCAD Inventor :: ILogic Rule For Subassembly Constraints

Jul 12, 2013

Is there a way to edit constraints inside a subassembly from the main assembly, using ilogic?

I would like to supress a constraint (let's call it mate:8), which is inside a subassembly. When I right click on that constraint, and select "Capture Current State", it inserts Constraint.IsActive("Mate:8") into my iLogic code. However, there is already a mate:8 in my main assembly, so how can I be more specific so that iLogic knows which constraint I am talking about?

Inventor 2014
HP Pavilion dv6t-6b00
Intel Core i7 2670QM
AMD Radeon HD 6490M
8gb RAM
Windows 7 64 bit
3Dconnexion SpaceExplorer

View 9 Replies View Related

AutoCAD Inventor :: C++ Samples Of C Assembly Constraints

May 24, 2013

Are there any C++ samples of the use of C Assembly Constraints? The syntax is so much different with VB a few real examples would be really useful.

View 2 Replies View Related

AutoCAD Inventor :: Deleting Constraints In Assembly

Feb 14, 2013

Why is it when I select multiple contraints for a component that I can use the delete key on the keyboard to eliminate them but when I select only a single constraint, I have to right click and select delete on the context menu.  The delete key will not work  on a single constraint.

View 7 Replies View Related

AutoCAD Inventor :: 2013 - Assembly Constraints Cannot Edit

May 7, 2013

Just started converting over to 2013 and I can no longer edit constraints.  Is this part of the new way.

View 1 Replies View Related

AutoCAD Inventor :: Part Movement Constraints In Assembly

Jan 20, 2012

In an assembly we can set driven constraints to drive parts etc.. or we can set the contact solver to show contacts.

Is it possible to set something like a driven constraint but so it is flexible between the set parameters?

when creating designs i like to move stuff around with the mouse to see how it works and the potential problems that might arise etc.. however  i would like to still move stuff around with the mouse but restrict the movements with constraints.

so if you have a hingy flappy thing, the constraints would be set so it can rotate round the hinge as required but also an angular constraint could be set do it would work between set angles, say 0 to 50 degrees and if it gets to the limit it stops?

Is this possible, I think it would be very useful?

View 4 Replies View Related

AutoCAD Inventor :: Assembly Constraints Snowballing Errors

Nov 16, 2011

I have a bunch of assemblies that are acting this way and I am not sure why.

I have built the parts and built the sub-assemblies with-out errors, once everything looks good I place the subassemblies into my top level assembly.

Everything still looks good with no errors.

I do a rebuild of the top level assembly and find 20 or so errors.

Most of the errors are bogus and editing the constraint with-out changing anything removes the errors, typicaly.

On a bunch of the sub-assemblies the error showed up in the top level assembly, so I edit the part only to find the constraint is relevant but with errors so I suppress it to remove the error. Save and go back to the top level assembly only to find there is another constraint error in the same assembly that I suppressed the constraint to remove the error. This goes back and forth between top level and sub-assembly till all constraints are suppressed or deleted for the sub-assembly. Then the same thing happens to another sub-assembly.

The only solution that I have found is to delete all constraints and rebuild each sub-assembly with the same constraints that were initially used.

How do I stop this snowball effect?

View 2 Replies View Related

AutoCAD Inventor :: Mirroring Assembly And Retaining Constraints?

Jul 12, 2013

I am atempting to mirror a large assembly, and noticed that not all of my contraints were retain, is there a way to make to mirror and retain all of the contraints?

View 2 Replies View Related

AutoCAD Inventor :: Assembly Mirror Loses Constraints

Feb 9, 2005

I place and fully constrain two components in an assembly them mirror them. To my surprise, the mirror parts are not constrained. I grab them and move them anywhere I want. I closed without saving, reopened and grounded the mirrored components.

View 5 Replies View Related

AutoCAD Inventor :: Best Way To Copy Parts In Assembly To Retain Constraints?

Jun 6, 2012

Looking for views on what the best method is to copy a selection of parts in IV 2013 which will result in the copied selection to retain it's constraints ? I have an assembly which I have used the mirror method on a batch of parts, also used the standard copy method and pattern components.

Autodesk Inventor Professional 2013 SP2 64-Bit Edition
Windows 7 HP Z400, Intel Xeon W3550 3.07GHz
12.0GB RAM, ATI FirePro V4800 (FireGL)

View 7 Replies View Related

AutoCAD Inventor :: Previewing Assembly Constraints Before Hitting Apply?

Oct 29, 2011

I just recently installed Inventor 2012 and I'm finding it extremely annoying assembling parts together. I recall in 2011 I could see the parts interact and how the constraints would effect assemblies as I change offsets, relstionships, etc. But now in 2012 I can't see any of that until I acutallly apply the constrain and if it's wrong I have to back and edit it over multiple times till I get what I want. Is there anyway to get a preview of what will happen before I click the apply buton?

View 2 Replies View Related

AutoCAD Inventor :: Get Details Of A Constraint From A List Of Assembly Constraints / C++

May 28, 2013

Given the list of AssemblyConstraints how do I list them textually? For example
 
// error checking removed for brevityCComPtr<AssemblyConstraints> pConstraintList;pAssDef->get_Constraints(&pConstraintList) ; _tprintf_s (_T("The assembly has %d constraints
"),pConstraintList->Count);const int ikNum = pConstraintList->Count ;for (int iConstraint = 0 ; iConstraint < ikNum ; i++) { CComPtr<AssemblyConstraint> pConstraint; hr = pConstraintList->...

what to put here? how to print out more data here...? }How do I get each constraint from the list?

View 3 Replies View Related

AutoCAD Inventor :: ILogic Assembly Has Double User Request At Inserting In Assembly

Sep 18, 2012

We have an iLogic assembly with to parts in it. Maybe to cylindrical parts. The iLogic rules should do the following.

1. Start a Rule after open document.

2. This Rule starts a Rule in the first cylindrical component.

3. This Rule ask the user for a diameter.

4. The assembly gives this new parameter value to the second component

5. Then the assembly calls another rule in the second component to change it with the new parameter

Everything is working fine when the following combinations are taking place:

1. I open up the assembly out of vault or from a local drive or an accessible server drive

2. I insert the assembly as sub assembly in another assembly from a local drive or an accessible server drive

It don't work with the following situation:

- I insert the assembly as sub assembly in another assembly out of vault

Then the user becomes the dialog "Choose a diameter" twice.

I don't know why, but I have the idea it has something to do with the functionality of inventor to insert a component more than once. If you insert a component in an assembly Inventor gives you the opportunity to add more than one occurence after each other. 

change that behaviour? Maybe a switch to change that inventor "add more than one occurence" behaviour.

View 1 Replies View Related

AutoCAD Inventor :: Translate Assembly Component Using ILogic / Offset From Parent Assembly Origin

Nov 9, 2011

I want to be able to control the location/position of a component in an assembly. This is easy enough through the iProperties/Occurrence tab and then adjust the location of the X,Y, and Z offsets. Is this possible using iLogic? I have been unable to find a function to access via iLogic. Ultimately I am trying to translate a component about an axis not a pattern.

View 1 Replies View Related

AutoCAD Inventor :: Assembly Constraints Doesn't Move The Part After Applying Them

Mar 21, 2013

I noticed when creating assemblies, applying a positional constraint, the parts don't move. In order to get the parts to "move" to their constrained position I have to try and drag them with the mouse then they snap into place. Also updating the assembly works as well.

What setting could I have changed so that once I press apply on a constraint it moves the part immediately?

Inventor Professional 2014-Update 2 - AutoCAD Electrical 2014
Win7-x64 | ASUS P8Z77-V | i7 3770 -3.4 GHz | 32GB RAM |
240GB SSD | nVidia GTX 670 4GB - 320.49

View 5 Replies View Related

AutoCAD Inventor :: Using Parameters In Constraints - Drive Multiple Constraints?

Aug 10, 2012

I need to drive more than one constraint at a time.  The assembly consist of a hydraulic ram that pulls a cable which is routed around a few pullys and then pulls another linear moving member.  I don't really care about modeling the cable right now, I just want the cylinder piston and the final member to move in unison.   I can only drive one constraint at a time, so I figured I could relate the two constraints together by setting them equal to a parameter (variable), but that isn't working.  Is it me or is driving multiple constraints at a time something that would be very useful for a lot of applications?  

View 3 Replies View Related

AutoCAD Inventor :: Coincident Constraints Becoming Fixed Constraints

Aug 28, 2013

I'm modeling cables running through a series of cable clamps.  I'm working in an assembly with my structure as one part, clamps as seperate parts, and cables as separate parts.  I modeled the clamps first and am using them to create my 3d spline to run the sweep.  The clamps have moved several times and each time, the sweeps (cables) do not update to follow the new clamping path.  I have tried multiple ways of solving this.

I've tried to redo the splines using "Include Geometry" and running the spline through the centers of the clamps. I've also deleted the constraints (which for some reason turn into fixed) and reapplied them as coincident constraints. However, once I setup these coincidences, they always change back to fixed.

In a last ditch method, I've created 2d sketches at EVERY clamping location (yes that's alot of sketches, time and effort) and projected the circular geometry to get a center point.  This has seemed to work, but is so much work, there's no way we could use it regularly.

View 6 Replies View Related

AutoCAD Inventor :: ILogic - Batch DXF From Assembly

Aug 26, 2013

I am trying to make a dxf from each sheet metal part in an assembly with ilogic: (I have cut and and paste different codes from this forum in an poor attempt...)

Sub Main
Dim oApp As Inventor.Application = ThisApplication
Dim oAssy As Inventor.AssemblyDocument = oApp.ActiveDocument
For Each oSubDoc as Inventor.Document In oAssy.AllReferencedDocuments
If oSubDoc.DocumentType = kPartDocumentObject Then
Dim oPartPropset As Inventor.PropertySet = oSubDoc.PropertySets("Design Tracking Properties")
Dim oPartParam As Inventor.PropertySet = oSubDoc.PropertySets("Inventor User Defined Properties")
[code].....

View 2 Replies View Related

AutoCAD Inventor :: Set Assembly IProperties Using ILogic

Jun 1, 2011

I wish to set the properties of an assembly using i Logic. I have the values of the properties in a part that is in the assembly. I wish to pass those values from the part to the assemblies i properties. I tried using the following code, but it gives an error saying it can not find the document "MyAssy.iam"
 
iProperties.Value("MyAssy.iam", ThisDoc.Path, "Part Number")=AssyNo

I'm not even sure that this is the way to do, but it's the only way I could think of to try.

View 9 Replies View Related

AutoCAD Inventor :: ILogic - How To Sum A Property Of All Sub Assembly

Oct 26, 2012

I got here on in my templates, two types of weight - net and gross. I've changed the main property MASS of each PART to be the GROSS weight, so when i have one assembly i always get the total gross weight.

And when i wanna get the NET, I open the BOM, show the proper column with this net weight and then export do XLS to sum all of then..

Now the doubt is, to get the things easier, is there a way to put some code in the assemblies, that could sum all the properties "X" from each part and sub assembly to get the total net weight ?

View 7 Replies View Related

AutoCAD Inventor :: ILogic Rules In Assembly

Oct 3, 2011

I am very new to this whole concept of having ilogic based rules to drive your part design. I have even gotten as far as creating a ipart and having ilogic rules be able to suppress, unsuppress, change values and dimensions using ilogic rules. I now want to be able to use ilogic rules to drive some of the various(yet similiar) assemblies that I create all the time.

For instance, If I have just a flat plate as the base component with a shaft welded to it that varies in length for my assemblies. Since the shaft varies in length, I went ahead and created iparts for all the lengths of the shafts. I can manually change which shaft I want represented in the assembly, but I would like to to know how do I get Ilogic to place the different shafts based on user parameters???

I've looked into component place iparts, but can't seem to get the code to work. The list of iparts tree within the model doesn't pop up in the model tab in the ilogic rule, only the base component.

View 1 Replies View Related

AutoCAD Inventor :: Run ILogic Of Part In Assembly?

Jul 25, 2012

How to run iLogic Rule which I created for .ipt  file in assembly?

As I have a myPart.ipt file with iLogic Rules which could create part1.ipt, part2.ipt, ..... (hundreds of them).

Now, I want creats iLogic Rule in myAssembly.iam to run the iLogic Rules in myPart.ipt in order I could create correct .ipt file to be used in myAssembly.iam.

View 4 Replies View Related

AutoCAD Inventor :: Same ILogic Part In Same Assembly?

Jul 26, 2012

I have the same ilogic part placed in the same assembly, and i am trying to drive two different configurations of the same part and when i apply the configuration it changes both of the parts but to only one of the configurations.

Is there a way to drive them seperately even though they are the same part.

View 5 Replies View Related

AutoCAD Inventor :: Exporting BOM Of ILogic Assembly

Nov 29, 2010

My task consist in exporting a BOM of an iLogic assembly.

Is any way to get an accurate BOM of other LOD other than the master. If so, is it only available in certain Inventor releases?

I am trying to accomplish this through API, but I get error when in different LOD than master. iLogic assembly has some parts suppress thats why we need to create a new BOM.

View 9 Replies View Related

AutoCAD Inventor :: ILogic Driven From Sub Assembly

Jul 1, 2013

I have a parent assembly that contains multiple sub assemblies, two of which need to synchronize with each other.In the parent assembly, I have created a user form that controls the sizes and quantities of all the different sub assemblies.

Sub assembly 1 contains a bracket for supporting 4 rows of pipes.Based on the width selected from the main parent assembly, the length of this bracket can vary.

The spacing of the 4 mounting positions is also determined from the length of the bracket.Sub assembly 2 is an assembly containing all the pipes.The pipes are spaced apart to suit the bracket using a component pattern, and it is this distance that I want to control from the parent  assembly.This is just one of the basic scripts I've tried.

Pipe_Spacing=Parameter("SubAssembly1:1", "Pipe_Spacing_A")

Parameter("Piping assembly:1", "Pipe_Spacing_B")=Pipe_Spacing
Pipe_Spacing_A is the spacing of the bracket
Pipe_Spacing_B is the component pattern in the piping assembly
Pipe_Spacing is the parameter in the parent assembly to be driven by the bracket parameters.

I have very little iLogic experience & have being learning as I go along with this project.My best guess is that the code can't loop back on itself. On a slightly different note, I have also noticed that the sub assemblies don't update properly.

If I adjust the width to X and regenerate the model, some of the sub assembly updates. To fully update, I have to go back into the user form, change the size to Y & then change it back again to X and then regenerate.

View 1 Replies View Related

AutoCAD Inventor :: Access Assembly Features Through ILogic

Nov 19, 2012

I'm now having an issue accessing the features in an assembly, the error message is attached and the following is the relative code.

The error line is between the 2 Test Messages:

'Create a Component Definition relative to the Part Document

Dim oFeature As Features
Dim oAssembly As AssemblyDocument
oAssembly = oCompOcc.Definition.Document
MsgBox("Test 1")

'Cycle through all features in the Part
For Each oFeature In oAssembly.ComponentDefinition.Features
MsgBox("Test 2")

View 3 Replies View Related

AutoCAD Inventor :: Convert To Weldment Assembly With ILogic?

Oct 27, 2013

Is it possible to change a normal assembly into a weldment assembly through iLogic?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved