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?
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.
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.
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.
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.
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
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?
I am migrating our old Inventor data to our new system. I will do an ilogic script for that.
I know how to add custom iProperties with iLogic but how can I remove them? Is it possible with iLogic? I would like to clean out all old iProperties that we don't need anymore.
Is there a way of using ilogic code to untick the highlighted component below. To run at assembly level to itterate down all levelsUntick (Use color overide from source component) update all parts
I am looking for a way to create an external rule that will allow me to turn off the visibility of bolt generator items in the model while I am looking at the drawing. Bolts may be buried several subassemblies (4 - 6) deep.
Why can I not constrain placed objects with three constraints? Anything I place constrains with one constraint then is virtually fixed (without being) and cannot even be moved to allow for further constraining.
The bug giving incorrect lenths of frames created on internal cutouts with fillets using merge hasnt been fixed in 2011 SP2 (64bit). Base part attached for testing.
I created a sketch on a 'fixed workplane' and extruded it. I would like to know if it is possible to move the workplane? I understand I can change the workplane if it is a 'plane by offset from plane'.
If moving a fixed workplane is possible, does the extruded features move along together?
I am creating an assembly where I need to add a light probe that is length X from a sensor to an LED. I would like to create a cable modeling this transition to make sure it can be routed around other components. I can't seem to find how to lock the length for the cable from point A to point B, it only changes based on what points I add on its path.
I'm sure this has been asked many times but none of the queries I used brought up a similar question. My issue is that I recently spent a lot of time annotating a detail view with leaders attached to geometry, leaders not attached to geometry, and sketches constrained to geometry projected from the view.
I made some modifications to the model which didn't re-locate any of the components that I'd annotated, but somehow the detail view got shifted, and all of my leaders are pointing to the wrong place and the parts of my sketch that weren't constrained to geometry are in the wrong place as well. Some of the leaders seem to have held to their posts better than others, but for the most part my annotations are worthless and will need to be re-done.
Why do we not have the "=" (equals) constraint option in 3D Sketch mode? It seems like a very basic need for a constraint. Is there a reason why one should NOT want to have an "equal" constraint in a 3D Sketch?
All I need to do for now is to align one part to the center axis of another part. Later I will constrain but for now I just need to see where the two meet so I can project geometry onto a draw surface. So, all I need to do is make their central axes coincide on one straight line.
I can achieve the same result by counting the various lengths but I'm hoping there's a simpler solution.
I've just installed 2012 and I seem to have a problem with constraints.
The basic problem is that the SHOW CONSTRAINTS command doesn't show the constraints for geometry that clearly has them. For example, if you delete a horizontal constraint from a line and then add a horizontal constraint to the same line, the line will be constrained but the constraint will not show up.
is it possible to copy and paste parts in an assembly but also keeping any constraints set on the part?
I.e. if I had a square block constrained to a flat face of a floor, when I copy and paste the block many times I would like all the copy blocks to still be constrained to the floor.
Is there a way to get a list of constraints that exist between two parts in an assembly?
It will take forever to go through each and every constraint for one of the parts, checking the "Other Half" of each just to find all constraints between to specific parts.
I'm trying to build a c# program where I can test a simulation for a robot project I have made angle constraints in inventor and now I want to be able to send numbers to specific joint.
With the code listed below I can get all the constraints from a selected part and get the name of the specific constraints.
I find it confusing that most of the documentation is in VB so this is what I have discovered on my own, perhaps this isn't at all the way to do it.
Trying to create a gimbal with a supporting frame, an outer square frame, and an inner square frame. when i insert the outer square frame into the supporting frame, i constrain it so that the axis of the hole i have drilled in my frame and the axis of the hole through my supporting frame are aligned, i then constrain a face of it to be a set distance from a parralel face of the supporting frame to centralise it. this works ok, and i can rotate this frame as i like. When, however i insert the inner frame and constrain the axes of the holes drilled through it to the axes of the other holes drilled through the outer frame, and two faces to be a set distance apart, it allows me to rotate my inner frame, but no longer allows me to rotate my outer frame! what have i over-constrained?
I'm using the line tool in a 2d sketch. First, I draw a polygon with the tool. Then, when I come to move one of the lines with the mouse cursor, it detaches from the other lines, and becomes a single floating line on its own.
As far as I can tell, it has nothing to do with the fly down constraint menu options, but i may have changed another option elsewhere in inventor and not have realised it.
Using "drive constraint" I would like to simulate the action of a "soft close" mechanisim on a drawer...fast movement for the first portion of travel, then slow movement for the very last portion of travel...
I have some "insert" constraints for DIN rails in holes. I've moved the holes, but the DIN rail doesn't move. The refresh button isn't "lighting up", or when it does, it does not do anything to move the rail. Is there something that's been "shut off" to keep things from moving?