AutoCAD Inventor :: ILogic To Remove Tick Box In Derived Parts?
Oct 28, 2013
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
have one assy comprising of a valve, made in steel, an actuator made in aluminum, total weight combined is 36 kg.
I make this assy a derived ipt.. i have tried all the output options, single solid, multy solid and the weight is not the same.. since its a new ipt has its own material, ok makes sense.. .. So i use composite, i get the correct weight (yay), but now i cant turn the visibility off on the 2d drawing, in certain pipe spool view representations.
What is the correct procedure for turning multi material assys into an ipt.. to get the correct weights and get the drawings to work properly?
Most of my part files contain at least one sketch which is derived from another part file. These derived sketches do not update like they did in our previous versions of Inventor.
If you change the geometry on a sketch in the base component, the updates will flow through to the derived parts. If you add geometry, it also works. However, if you delete any geometry from the sketch in the base part, it will not be deleted in the derived sketches in the second, third, etc. parts. The 'deleted' sketch geometry remains in those parts until you go into all the parts which derive from the base part and manually delete it. This is a significant problem for for our workflow.
Is there an option I have missed that changes this behavior so that deleted geometry in a sketch will also be deleted in any derived sketches in other parts?
I got this code earlier from Curtis_Waguespack, and i would like to add a setting... When i run this rule it Derives the assembly, but LOD is set to Master, i would like it to be set to my own (Configurator) LOD...
I don't seem to be able to find anything in this code, that defines LOD...
So far im doing ok with the standard ilogic code, but when it´s API or VBA code im lost.. which leads me to this.. i've been searching the forum back and forth to find a code that performs the feature "Shrinkwrap", and somehow everything i have found so far does not work... even the code example in Inventors help menu under programming, Therefore im trying to solve this with Curtis's code as staring point..
'set a reference to the assembly component definintion.'this assumes an assembly document is open.Dim oAsmCompDef As AssemblyComponentDefinitionoAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition 'define the path and file nameDim sPathandName As StringsPathandName = ThisDoc.PathAndFileName(False)
I have created a very simple yet effective tool for starting a new manifold assembly using iLogic. The rules and windows essentially fill out the size of the block, material type, description, project and part number.
Below I have a hydraulic manifold I have designed and from that I created the final .ipt of the internals. The way I did this (which may not be the best method) was to create a second .ipt matching the LxWxH of the original manifold, next I inserted and aligned both into another .iam file, lastly I derived a third .ipt from a subtraction resulting in the third image below. This is a bit time consuming to create, but has been very useful in error checking our designs. I would like to see if iLogic is capable of allowing me to automate this so we can easily create these internal flowpath .ipt's for every manifold we design.
As a recent convert from ProEngineer to Inventor, if it is possible to vary the parameters exported from the source model in the derived part. The following article (see link below) explains the functionality in ProE - note the ability to see the model tree of the source part and also the ability to have varied items (dimensions, suppress features etc.) URL.....
I am using Inventor 2012. I have a part that has 3 different inserts of a different material that I have to cut out. So I create 3 different assemblies with the part and the the 3 different inserts. Then I create 3 parts to derived the cutouts. Then 3 new assemblies to create the final assembly with the part and its insert.
Does Inventor 2014 have a way to do this with an i Assembly? I can't seem to derive a member of an i Assembly now. In my old CAD system I was able to create a table with one assembly that contained one part, three different inserts and 3 different cutouts. Right now this seems like a lot of work.
I have a problem with the Bolted Conection function when using derived parts created from a multi-body part.
I created a multi-body part in which I pit some holes with the hole function (clearence hole, through, M16, normal). After that I generate all the compontents. In the generated asembly I tried to add a bolted connection (placement by hole). Normaly after selecting the start-plane and the hole it discovered patterns (if exist). Now, after selecting start plane no holes are found.
see attachment for simplified model. Autodesk Inventor Product Design Suite 2013 SP1.1
I'm running an iLogic based model where I have a technical housing with 2 cover parts on top.
The first cover part is the basic part.
I use iLogic to assign a RAL-color to several parts in the assembly, also to that cover. The color is assigned to several features of the cover part.
The second cover part is almost identical to the first one.
So my first feature in the second cover part is a derived part of the 1st cover. I derived all the bodies.
When I'm in my assembly and I pick a RAL-color in my created customization form, the RAL-color only changes in the 1st cover part (the original), but it doesn't change in the second cover part, the derived body.
But....
when I manually open the 2nd cover part, and I right click on the derived feature and click on 'Edit Derived Part' ; the new color shows up immediately!
So, my question is if there is a rule for iLogic to update the color automatically?
It says i can exclude parts from the assembly, when i insert it as a derived part, but the exclude button is greyed in the insert derived part dialog box.
I am having some trouble with this quick VBA app, I want a utility that can traverse all the parts in a top level assembly and suppress the link to each derived part (multiple) in all the parts in the assembly.
I have played with the following
Public Sub SuppressLink() Dim partdoc As PartDocument Set partdoc = ThisApplication.ActiveDocument partdoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents.Item(1).SuppressLinkToFile = True End Sub
Which works, but only on one part file, and only on the first derived part. Is there any easy way to make this work on ALL the dervived links and every single part inside an assembly?
We do a good bit of deriving parts from assemblies. We have a workflow that works well for us, we create PARTS, put them in an ASSEMBLY, then create new PARTS DERIVED from ASSEMBLY. We use Boolean to add/subtract and disregard parts as needed to create these parts. These parts are now given color and reassembled in an yet another final ASSEMBLY as needed and put into a drawing.
Through Inventor 2011 this worked well.
In Inventor 2012 the color is disapering as soon as any change is made on a source part.
1 Changing the color does not work.
2 In the derived from Assembly, opening up (in the browser) the individual .ipt's and right clicking and clicking properties and changing the color only stays until the next change to the source prt.
3 Changing EACH individual face by right click, properties and setting the FACE PROPERTIES from "as feature" to "as part" does work, but is ridiculous to change hundreds of faces on each part. (especially considering we did NOT need this step in 2011)
Is there a switch in the registry (to turn off the standard “as feature” to the parts face).
I have a part that was derived from an assembly. However now I need to make this part have different center dimensions. Is there a way to make a derived part into an iPart without creating more parts? see attachment.
I am using Inventor 2012. BTW the part is more detailed than I am showing in the attachment.
I´m trying to access ComponentDefinition.ReferenceComponents.DerivedPartComponents using Apprentice Server but it tells me "Not implemented". Is there any other way to figure out whether a component is derived or not?
i placed an ilogic component (wich i use as a template to later change dimentions) into an assembly file after changing dimentions i placed the same "template" ilogic component into the assembly but when i want to change something on the second component it also changes the first one and that only happens with only one feature of the component the other features work fine.
I have numerous step files which I have imported into an assembly. I now need to move all the imported files to a predefined UCS (not 0,0,0). I can do this manually by using the assemble command and selecting the centre point then selecting the centre point of the pre-defined UCS.
I have potentially thousands of parts to move in various assemblies, is there a way to do this using iLogic and if so, how?
I am trying to suppress part that are labeled as "Reference" on the BOM Strutcture and I can't get the program to cycle through the subassemblies. The following code runs through all the components on the top-level assembly but I can't get it to cycle through the subassemblies.
oCompDef = ThisDoc.Document.ComponentDefinitionoAssemblyComponents = oCompDef.OccurrencesDim oOccurrence As ComponentOccurrenceDim oSubOccurrence1 As ComponentOccurrenceFor Each oOccurrence In oAssemblyComponents If (oOccurrence.BOMStructure = BOMStructureEnum.kReferenceBOMStructure) Then Component.IsActive(oOccurrence.Name) = False Else Component.IsActive(oOccurrence.Name) = True End IfNext
I curently have a rule that generates a part list automatically in a drawing. the problem is that I want the rule to be continuisly running but it keeps generating 2,3,5... parts lists. I need an if statment to check if a parts list already exists.
iLogicVb.UpdateWhenDone = True On Error Resume Next ' Set a reference to the drawing document. ' This assumes a drawing document is active. Dim oDrawDoc As DrawingDocument oDrawDoc = ThisApplication.ActiveDocument 'Set a reference to the
If I draw a flat square, and then a flat circle next to it, can I do things using iLogic that will make the two seperate parts interact? such as say 'if the circle contacts the square, then make the square become a circle too' or something like that?
im trying to programatically add a parts list into a drawing whilst programatically creating the drawing - the code works fine without the parts list code. The error its showing is 'Parameter incorect' on the line that sais PartsList.add(... In the past when ive got this error with other code it has been because ive used an incorrect parameter (e.g. decimal instead of an integer).
My error is somewhere inside the oPartsList.add(>>ERROR SOMEWHERE HERE<<<)
I need to use/write a iLogic code. I have a assy, in this assy i have parameter Height and Width. And it´s no problem to controlls this two rules/value.
But I have a problem with the rule when my height will control the number of parts
If my height is 500-1000, one part. If my height is 1000-1500, two parts. If my height is 1500-2000, three parts.
Is it best to use suppress or use a pattern in this case?
I would like to count all my parts in the main assembly and assign that amount to each part.
Example: Main assembly has: 10 Parts A and 5 Parts B. I would like to run a rule that "sends" that "10" to Part A.ipt and the "5" to Part B.ipt
I would like to assign it to iProperties.Status.Status. I start to understand iLogic more and more but it is nice to get a little boost in the right direction.
I am looking for a rule that will search assembly down all levels and find .ipts with the material of plywood and when found change all plywoods to color Clear - Light.
I want to measure the minimum distance between 2 parts. But I want Ilogic to know what parts to measure according to what i've selected.
I have something like this but its not working... gives me always this error "
Measure.MinimumDistance: No entity named "System.__ComObject" was found."
Dim oOccurrence As ComponentOccurrenceDim oOccurrence2 As ComponentOccurrenceTry oOccurrence = ThisDoc.Document.SelectSet.Item(1)oOccurrence2 = ThisDoc.Document.SelectSet.Item(2)Catch MessageBox.Show("Please select a component before running this rule.", "iLogic") ReturnEnd Try Dim doc As DocumentDim CurFileName As String oOccurrence = ThisApplication.ActiveDocument.SelectSet.Item(1) oOccurrence2 = ThisApplication.ActiveDocument.SelectSet.Item(2) distance = Measure.MinimumDistance(oOccurrence,oOccurrence2)MsgBox(distance)
I have got some ilogic code that i have patched together to sort my parts list in inventor which works great but it will not update all sheets at the same time as when we design we have multiple sheets with parts list on and the odd one without.
add to this code to update all sheets partlists and also recognise that some sheets will not have partslists on so this will need to skip.