AutoCAD Inventor :: Add Rule To All Parts In Assembly

Aug 29, 2013

I have a three part question. First, I have an iLogic routine in an assembly that opens all the parts within the assembly, runs a particular rule, and then closes that part. Is there anyway I can get this to run in the background. I don't want my users to see all of my part files opening and closing.

Here is my
 
'assign path values in iproperties to be equaliProperties.Value("RD FLANGE:1","Custom", "FilePATH") = iProperties.Value("Custom", "FilePATH")Dim FilePATH As String = "FilePATH"customPropertySet = ThisDoc.Document.PropertySets.Item _("Inventor User Defined Properties")Try prop= customPropertySet.Item(FilePATH)Catch customPropertySet.Add("", FilePATH)End TryIf
[code].....

My second question is how do I add a routine that as the part files are opened checks to see if "MyRule" is there. If "MyRule" is not there add "MyRule" else if "MyRule" exist move on to the next part.

My third and final question is there anyway for my code to distinguish between standard parts and sheet metal parts. Basically, if the opened part is not a sheet metal part then I do not want "MyRule" to be inserted and I do not want "MyRule" to be run. I want it to move on to the next part within the assembly.

View 5 Replies


ADVERTISEMENT

AutoCAD Inventor :: Run ILogic Rule For All Parts In Assembly

Oct 6, 2011

I Created an iLogic Rule that sets up some parameters.

I want to Automatically opens each and every Part in my assembly, run this Rule,  and then save it without me having to do so manually.

View 8 Replies View Related

AutoCAD Inventor :: ILogic - Assembly Rule To Multiple BOMQuantity In Parts

Oct 9, 2013

I have used Inventor for quite a while but never for much more than the odd 3D model.

I have recently created templates that allow me to use Inventor to create detailed fabrication drawings rather than relying on AutoCAD. But I have run across a question with regards to the BOM. Let me try and explain my issue.

I currently create assemblies for fabricated items. However, in the complete (or top level assembly) there may be multiple fabricated items (assemblies required). At the moment I create the BOM and manually edit the quantities required to reflect the number of assemblies (and resulting parts) that are required.

In my assembly file I created a parameter called "AssemNo" which is meant to reflect the number of assemblies required. In my part files I created a parameter called "AssemQty". I would insert the following iLogic code for each part in the assembly:

quantity - This.BOM.CalculateQuantity("Model Data", "PartNumber")*AssemNo
Parameter("Part Name:1", "AssemQty") = quantity

This works but it requires me to create that line of code for every part in my assembly. I know an iLogic code can be created to search an assembly and change parameters of all parts (see below as an example to copy Occurence name to iProperties >

' set a reference to the assembly component definintion.
' This assumes an assembly document is open.
Dim oAsmCompDef As AssemblyComponentDefinition
oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition

'Iterate through all of the occurrences
Dim oOccurrence As ComponentOccurrence
For Each oOccurrence In oAsmCompDef.Occurrences
    Dim oName As String
    oName = oOccurrence.Name
    iProperties.Value(oOccurrence.Name, "Project", "Part Number") = oName
    MessageBox.Show(oOccurrence.Name, "iLogic")
Next

Can the two be combined?

View 3 Replies View Related

AutoCAD Inventor :: ILogic / Run Assembly-level Rule From Component Rule?

Aug 2, 2013

I need a way to run a rule which is saved in my top-level assembly using iLogic rule which is saved in a part file in the parent assembly.

I have even tried using an external rule in a txt file, but that gives the error "Component: This function can only be used in an assembly."  - which makes no sense to me.   I hope I am just missing something simple.  I cant believe with all its other strengths, that iLogic would be so limited in that regard.   Why is there not simply a snippet under the 'Run Other' that allows you to specify an assembly file and the rule name?  (like there is for running a rule in a component from the assembly)

View 4 Replies View Related

AutoCAD Inventor :: Run Ilogic Rule In Each Part From The Assembly Via External Rule

Dec 6, 2011

I want to simply set a custom iproperty as the Description in each part file within my assembly.  I can do this easily at part level with ilogic but I want to be able to run the rule from the assembly level and all the parts run the rule.  I am struggling to find a way to do this.

I think this may be the best method I have found but I think it must be far easier?

[URL].......

View 9 Replies View Related

AutoCAD Inventor :: Control Rule In Assembly

Dec 27, 2012

I have a part with a rule 'PlaatsPaneelNummer " which I place text  on my part. Now I have that part in an assy posted regarding the use of a placeholder.

Now I want the rule 'PlaatsPaneelNummer' drive from the assy. I keep getting the message that the sketch in which the text is placed can not find. I can not manage to show this in the rule.

View 1 Replies View Related

AutoCAD Inventor :: Creating Separate Assembly Out Of Various Component Parts In Existing Assembly

Jul 10, 2012

I'm looking for the best way to create a separate assembly out of various component parts in an existing assembly so that the whole thing can be placed in an assembly as you would a part, I know it's possible to demote components within an assembly but are there any other methods similar / better ?

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 :: Make Sub Assembly From Parts From Main Larger Assembly?

Oct 31, 2011

My assembly has grown (about 50 parts) to where I need to consolodate some parts into subassemblies for reuse and alternate iterations of the basic design.

When I import the original parts into a new assembly, all of the constrains I created are not there of course.

I've tried creating a new empty part and then deriving a new part from the assembly, but I can't add, delete or edit any parts.

I looked at using Shrinkwrap, Substitutes, iParts, Multi-body Parts, and Multiple Solids but I remain confused.

In retrospect, maybe I should have created the subassemblies between the part and assembly stage but I didn't.

View 4 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 :: Run Subassembly Rule From Parent Assembly

Oct 3, 2012

Is there a way to run a rule which is part of a sub assembly from the parent assembly?

I have a parent skeleton assembly containing many icopy assemblies. These subassemblies are based of one master assembly which in turn has a common part. (hence why I am using the icopy feature)

This standard part has an ilogic rule which varries the number of creases in a wall panel. eg. when the panel is 1200 wide there are 2 creases, when the panel is under 800 wide there is one crease and when the panel is less than 600 wide then there are no creases.

When I insert the icopy assembly into the master skeleton assembly and click select the widths of the panels they stretch and change to suit my skeleton. However I am having to visit each copied panel to run the crease rule.

Is there an operation or some sort of trigger I can implement to make this rule run as soon as the sub assembly is inserted?

Inventor 2010 Pro SP4, Vault Collaboration 2010
HP Z820 Xeon E5-2643 0 @ 3.3Ghz 16.0GB RAM
Nvidia Quadro 5000

View 9 Replies View Related

AutoCAD Inventor :: How To Use ILogic Rule To Delete Rules And Features In Other Parts

Aug 10, 2012

I made an Part with iLogic rules, let's call it "iLogicPart". The rules inside could create lot of different part by my input.

I want save the different parts to different name as "Part 1", "Part 2", etc. I used SaveAs to get them.

My question is: I want to delete all rules and parameters in the saved parts as "Part 1", "Part 2". And I have lot of features (the name is hard to track) which are inactive, I want to delete them at same time too.

I could manually do so, but I want to use rule to do so automatically.

View 9 Replies View Related

AutoCAD Inventor :: ILogic Rule To Print String To Parts List?

Mar 5, 2013

I am trying to make an iLogic rule that gets mutliple strings from different places, and prints them to a user property in the Parts List.

My ultimate goal is to print the drawing number, sheet number and the item column value to the user property with the format being...

"XXXXX-X-X"

So far, i can get the drawing number from an iProperty and the sheet number easily. But im getting stumped on obtaining the item coloum value and printing it to the same row.

This is what i have so far...

Dim DWGNUM As String = iProperties.Value("custom", "DWG Number")
SheetNumber = Mid(ThisDoc.Document.ActiveSheet.Name, InStr(1, ThisDoc.Document.ActiveSheet.Name, ":") + 1)
MessageBox.Show(DWGNUM+"-"+SheetNumber, "DXF Number")

And print the message box output to a column in the parts list

View 7 Replies View Related

AutoCAD Inventor :: ILogic Rule To Change Parts List Style

Jul 2, 2013

I need an ilogic rule to autmoatically change the style of the parts list in a drawing file.The parts list style already exist in the drawing.

View 2 Replies View Related

AutoCAD Inventor :: Saving Assembly Parts As New (sub) Assembly?

Nov 28, 2011

Can I select a bunch of parts in an assembly and say "save these pieces as a new assembly"?

It is just such a needed tool but I cant find an easy way to accomplish this.

View 2 Replies View Related

AutoCAD Inventor :: Running ILogic Rule In Assembly From Subassembly Part

Nov 17, 2011

I have a rule in the top assembly to update & want to run this as a final 'clean up' after various rules have run in sub assembly parts.

I have a rule within a part at the end of the line. I want this rule to goto the top assembly & run the 'Update' rule.

View 4 Replies View Related

AutoCAD Inventor :: IlLogic Rule To Find All Reference Parts And Turn Off Visibility

Jun 20, 2013

I there a way of finding each Bom structured part that is set to reference in an assembly and setting the view of that component to in-visible.

Also needs to iterate into all set View reps that where created and set all views to not show the referenced parts as well.

View 8 Replies View Related

AutoCAD Inventor :: ILogic Rule Surface Flat Pattern Area From Assembly File

Oct 16, 2013

I created an iLogic rule that allows in a sheet metal part to the informations Length, widht and area of a flat pattern. This rule run and the iproerties are created (see attachment file).

Now, I will run this rule from an assembly file to create automatically, in all sheet metal components, theses iproperties.

Is it possible ? what must I change in this rule ?

View 1 Replies View Related

AutoCAD Inventor :: ILogic Rule For Each Part In Assembly To Change Part Parameter

Apr 1, 2013

I`m looking for the iLogic code that can change one parameter (user defined) for each (ipt) part in assembly (iam)

The one below doesn`t work.

Sub Main Dim oApp As Inventor.Application = ThisApplication Dim oAssy As Inventor.AssemblyDocument = oApp.ActiveDocument For Each oSubDoc as Inventor.Document In oAssy.AllReferencedDocuments On Error Resume Next Parameter(oSubDoc, "FH") = 15.26 Next End Sub

View 5 Replies View Related

AutoCAD Inventor :: Cannot Join Parts In Assembly

Dec 2, 2013

I am trying to assembled these 2 parts but the elbow gives no options..how can i constrain the elbow to the straight pipe?

View 7 Replies View Related

AutoCAD Inventor :: Rename Of Assembly And Parts

Mar 7, 2012

How could I rename a hole assembly and all parts (pre- or suffix)?

View 2 Replies View Related

AutoCAD Inventor :: Deriving Parts From Assembly?

Nov 20, 2011

I am designing a component whose internal mechanism is housed in a plastic shell. I want to use the boss feature in the shell so I can hold together the components internally, but the boss feature is only available in the part workspace, but in order for me to know where the internal components are so I can design my shell accurately, I have to be in the assembly workspace.

Now, if I opened the shell as a part alone, and imported (through the Derive command) the parts that need to be fit into the shell, they will appear at random positions, and because you cannot create constraints in the Part Workspace, I have no effective way of holding them where they should go.

View 2 Replies View Related

AutoCAD Inventor :: CoG Of Selected Parts Within Assembly

Sep 4, 2013

I have a question about getting CoG of my assembly.  The only problem is that i only need 2 parts (the rest are just dummy solids with 'default material'.

When i control select two parts, right click and go 'iproperties' - the physical tab doesn't let me determine CoG of the two parts combined.

View 3 Replies View Related

AutoCAD Inventor :: BOM - Best Way To Organize Parts In Assembly

Mar 15, 2012

I have 4 columns in BOM that I call out in Parts Lists on my drawings.

I need to be able to organize parts in my assembly somehow and to be able to display if needed (on Parts List) only parts belonging to one category (level?).

I could do it by creating another custom iproperty in a part template and each part would belong to a particular group. Then I could sort them in BOM in .iam environment and have particular category visible on Parts List with the other categories with visibility turned off.

View 9 Replies View Related

AutoCAD Inventor :: Assembly - Parts Not Visible

May 11, 2012

I'm working on a small Assy (25 parts). When I open one of the parts from this Assy and work on it then go back to the Assy many parts are not visible. The update button is usually off so I can't use it.

This started only about 2-3 weeks ago - in every assy. I changed the nvidia driver but didn't work.


Inventor pro 2012
Win 7 Pro. sp1 64 bit
Intel Core I7-2600 CPU
Ram - 8GB
Quadro 2000 D
Nvidia 275.89 (tested nvidia 296.70 with no luck)

View 4 Replies View Related

AutoCAD Inventor :: Referencing Parts In Assembly?

Jan 18, 2013

I have a rather complex assembly that I didn't draft but I am trying to work with. Most of my experience is with Solidworks. I'm trying to create a hole in a plate that lines up with a hole in a different part in the same assembly. I know there is probably a way to create the hole in the assembly and reference the other part but I dont know how.

Autodesk Inventor 2009

View 2 Replies View Related

AutoCAD Inventor :: Moving Parts In Assembly

Apr 8, 2013

When I place parts in my assembly they are stuck in the position I place it and can only be moved once I mate it to another part of my assembly. I have only recently encountered this problem, as usually when I place a parts in an assembly I am able to simply click on the component and drag/move that part around to put it in a place that suits before I use any constraints.

What is the problem, have I clicked on some function unknown to myself which has disabled the ability to move parts/assemblies when I place them into an assembly?

View 4 Replies View Related

AutoCAD Inventor :: Adding Parts To Top Down Assembly?

Sep 28, 2011

I've created an assembly from the solid bodies of a part. Is there a way to add more parts to that assembly from other solid bodies of the original part? If so what is the procedure?

View 7 Replies View Related

AutoCAD Inventor :: Editing Parts Within Assembly?

Nov 25, 2011

I have a machine with some internal parts.To see the inside parts i need to make the outside parts Glass.Can i make the outside parts Glass while in the assembly or do i need to open each part up from there folder and make the material Glass.This would be slow if i need to open up each part to make the material Glass and when finished would again have to open the part up and set back to original material.Can all this be done while in Assembly mode?

View 6 Replies View Related

AutoCAD Inventor :: Create Parts In Assembly

Oct 31, 2013

When creating a new part in an assembly and I select a face of an existing component, how does Inventor determine the orientation and origin of that new part?   I understand how Inventor works when I select the plane/origin of a part or pick out in space in the assembly.But the placement based on the face of an existing component seems random..

I normally do not like creating parts inside of an assembly but I was trying some new workflows.

View 3 Replies View Related

AutoCAD Inventor :: Editing Parts In The Assembly?

Jan 26, 2012

I have firgured out how to create a part within the assembly.I have also figured out how to add a feature in an assembly, but that feature does not attach to a

component when I need it to.What I haven't figured out is how to edit an existing part within an assembly to add a feature that references another part.  Basically having an external reference (SW term).Also, is there a way to see the features of a part within the assembly?

View 8 Replies View Related







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