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


ADVERTISEMENT

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 :: ILogic - Rule Driven Assembly

Apr 23, 2013

The setup is: I have a rule which first gets a number of user parameters via input boxes.This rule then runs a number of other rules, using:

iLogicVb.RunRule("Rule 1")iLogicVb.RunRule("Rule 2")iLogicVb.RunRule("Rule 3").Each of these rules control parameters, part/feature/constraint suppression etc. in the top level and subassemblies/parts based on the previously obtained user parameters.

All the rules have the 'Don't run automatically' option selected, so all should only run as intended when I manually run the first rule.When I run the first rule, I enter all the parameters, and the subsequent rules run.The problem is, the suppression states etc. in the subassemblies/parts do not update.

Looking at the parameters dialog box after the rules have run, all user parameters have updated with the new values.If I run the first rule again the subassemblies/parts update correctly.

It appears that the rules that control the suppression states etc. of the subassemblies run using the initial values of the user parameters, i.e. the values as they were before the user input is obtained, rather than the new values.This is confusing me, as the code is structured as follows:

user_parameter_1 = InputBox("User Parameter 1", "Input", "xx")user_parameter_2 = InputBox("User Parameter 2", "Input", "xx")iLogicVb.RunRule("Rule 1")iLogicVb.RunRule("Rule 2")

View 2 Replies View Related

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 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 :: How To Add Driven Dimension To Assembly

Apr 10, 2012

I have an assembly I've put together in Inventor 2011. I tried to make an adaptive spring to use with a shock that goes in a car. I'd like the spring to change size as the shock extends and contracts. 

I went through the process of creating an adaptive spring, and it worked, but I could only change the length of the spring by using the "Drive Constraint" feature, which only allows me to adjust the spring when I'm using the "Drive Constraint" menu. It plays like a movie. What I want is a part that just moves like you would expect when you push/pull the ends of the shock. I don't want to have to drive it like a movie. 

So then I thought that I could just simulate a spring by making a series of rings (toroids). I could constrain the bottom ring and top ring to the shock geometry and then have the other rings position themselves according to the distance between the top and bottom rings.

SO, I have 5 rings. The bottom ring is grounded the top ring has a Limit Constraint that sets the top ring anywhere between 3 and 7 inches above the bottom ring.

How do I create a driven dimension on an assembly that will automatically update the distance between the top and bottom ring? 

I would like to call that dimension "HEIGHT", and then I could use parameters to set the middle ring a distance (HEIGHT/2) above the bottom ring, I could set the ring below the middle to (HEIGHT/4), and I could set the ring above the middle to (HEIGHT*3/4). 

I should then be able to move the upper ring up and down and the other rings reposition themselves automatically to keep even spacing between the rings on either side.

I tried making a sketch in the assembly and using the "Project Geometry" function to add the location of the upper and lower rings to the sketch. I then used the "Dimension" function to create a driven dimension between the upper and lower rings. When I finished the sketch the other rings all updated exactly as anticipated, but when I moved the top ring the projected outline did NOT move, so the other rings did not continue to update. 

lease do NOT link me to adaptive coil video tutorials or explain how driven dimensions work when making parts. I am not looking for that, I am looking for how to create driven dimensions between two placed components in an ASSEMBLY. 

View 9 Replies View Related

AutoCAD Inventor :: Assembly Sketch Driven Dimension

Aug 31, 2011

In 2012 when in a sketch in an assembly all the stuff under "Format" is grayed out.

You cannot make a dimension driven, nor can you make a line construction or a centerline and you can't change a sketch point into a center point. Do I have some setting wrong?

View 8 Replies View Related

AutoCAD Inventor :: ILogic Driven Part Not Updating After Parameter Change

Jul 26, 2013

I have a flange that I use iLogic and the parameters list to update the different styles. My problem is that my flange won't update until after I hit save and update. My other square flange is not this way. As soon as I change the parameter in my square flange it immediately updates. Is there anyway I can get my round flange to update immediately like my square flange? I attached pictures below.

View 1 Replies View Related

AutoCAD Inventor :: Constraint In Subassembly Driven From Main Assembly

Jul 22, 2013

I have 4 different sub assemblies , each with a common part , I need to line up all these common parts in my main assembly.

View 5 Replies View Related

AutoCAD Inventor :: Make Automated Fence Generator With 2012 Driven By ILogic Rules?

Sep 26, 2012

I'm currently trying to make an automated fence generator with Inventor 2012 driven by iLogic rules.

My model is done now, and my BOM information (description & part number) is set correctly.

Now is my problem some parts are not supposed to be in the BOM at a certain moment.

Example.

If fence_type = 1 Then

Beam-001 = default

Else If fence_type = 2 Then

Beam-001 = reference

Else If fence_type = 3 Then

Beam-001 = reference

End If

But what do write to set BOM status of a part?
 
Inventor 2013

View 5 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 :: How To Convert Normal Dimension To Driven Dimension Through ILogic

May 28, 2013

I have one problem in ilogic "How to convert the normal dimension to driven dimension through ilogic"

View 4 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







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