AutoCAD Inventor :: Use Parameter To Define Part Name In Rules?

Apr 26, 2013

I want to use a parameter in my assembly as the name of a part i'm referring to in a rule but so far I have had no luck making it work. My knowledge of iLogic is pretty limited.

I am making a configurator for a staircase and I am working on the stringers now. There will be 3 or 4 different stringers (each one is a separate part) and the configurator lets you choose things like the angle, length and height of the staircase by entering values for those in a form in the assembly. Once you are done entering the values, there will be an update button that will send all the parameters to the different parts that are in the assembly and have them change accordingly. Now, say I want the length to change. I enter a length and press update and here's my problem. To which stringer-part is it going to send the length to? I can make it send to all parts but that means that I have to write one line of code for each part and if I ever add a new kind of stringer, I need to check all the rules and new lines where needed. I would like to make this dynamic by having only one line in which the part name is the same as a parameter I have in my assembly

I can either write it like this:
Parameter("Stringer1:1", "Length") = LengthParameter("Stringer2:1", "Length") = LengthParameter("Stringer3:1", "Length") = LengthParameter("Stringer4:1", "Length") = Length
 
But I would like to write it like:
Parameter(""Assemblyparameter":1", "Length") = Length
 Where Assemblyparameter is a text parameter and simply the name of the part that is inserted.

When I choose, for example, stringer 3 in my form, Assemblyparameter will be Stringer3. This would save lots of time in the future whenever new parts are added.

View 2 Replies


ADVERTISEMENT

AutoCAD Inventor :: Part Occurrence - Rules Definition Name Have Been Overwritten

Jul 23, 2012

I have several parts that are controlled by ilogic rules linked to member names ,and in some cases some of staff run the productivity bonus tool (rename browser nodes) to either file name or part number.

This causes the rules to fail as rules definition name have been overwritten.

I am after a simple rule that is triggered on save to save my occurrence browser name to what originally was defined

Dim Browsername As String = Plywood 01 

Member names example

Plywood 01
Plywood 02
Plywood 03
Plywood 04

View 6 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 :: Adding Part To Frame Generator With ILogic Rules For Features

Jul 17, 2013

I have a wire trough that we typically use on all our units. Instead of modelling each trough as it's own separate part to length, I would like to add this part to frame generator for tracking there cut lengths etc...

A few items, there is two sizes that we use, but for now I will work with just one.

I have modeled the part and renamed the important parameters.

-WIDTH - stays the same

-HEIGHT - stays the same

-LENGTH - adjusted by frame generator

-RIBS - the part has 6 currently, but there is a rib added for every 1/2 inch. it is a rectangular pattern

-SLOTS - will be added to the trough every 2 inches of length, it is a rectangular pattern

-SLOT_DISTANCE - is 2 inches and never changes, if the trough is cut on a slot, which ever is easiest, to show half a slot or none, doesn't matter, this is just for a visual and BOM reference

I found a video that shows me how to publish parts to FG, but I am stuck for the iLogic part. Part attached.

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 6 Replies View Related

AutoCAD Inventor :: Possible To Locate Where A Parameter Is Used In A Part

Jul 28, 2013

Is it possible to locate where a parameter is used in a part? Looking through every sketch to find a parameter becomes tedious when there are several dozen sketches and parameters in use.

View 2 Replies View Related

AutoCAD Inventor :: Access Part Parameter From Assembly?

May 26, 2013

There is a part with a model parameter in an assembly.

Is there a way to access the part's parameter from within the assembly?

View 5 Replies View Related

AutoCAD Inventor :: Import Parameter From Part / Assembly?

Jun 24, 2013

I am trying to acheive copying parameter from one part/assembly to another part/assembly document and this is what i came out with: 
 
Private Sub CopyParamToTarget(SourceFile As String, TargetFile As String, ByRef ParamList As ListBox) 'Declares the variables to be used in this sub Dim d_target As Inventor.Document = Nothing, d_source As Inventor.Document = Nothing Dim t_transaction

[Code]....

I did another version for Inventor VBA in which is quite similar to this length as well . . .

Tried using ComponentDefinition instead but it does not have access to the Parameters list.

View 5 Replies View Related

AutoCAD Inventor :: Change Parameter From Selected Part

Jul 26, 2012

this code works for parts. But how to change it that it works for assembly? I would like to select a part and than change the value.

m_invApp = GetObject(, "Inventor.Application")
' Get the Parameters object. Assumes a part or assembly document is active.
Dim oParameters As Parameters
oParameters = m_invApp.ActiveDocument.ComponentDefinition.Parameters
[code]........

View 5 Replies View Related

AutoCAD Inventor :: Check Part Parameter Within Assembly?

Oct 15, 2013

I'm trying to run a for loop to check a part's thickness parameter within an assembly but I do not know how to access that parameter from the assembly. Once I check that the thickness does not equal 1/4" I want to assign the sheet metal rule to be user defined. Here is what I got so far:
 
Dim SheetMetalRule As String = BODY_GAUGE & " " & SHEET_METAL_RULEDim assyDoc As AssemblyDocumentassyDoc = ThisApplication.ActiveDocumentDim partDoc As DocumentFor Each partDoc In assyDoc.AllReferencedDocumentsIf partDoc.ComponentDefinition.Parameters.UserParameters("THICK").Value = .25 ThenElse If partDoc.ComponentDefinition.Parameters.UserParams.Value <> .25 ThenThisApplication.Documents.Open(partDoc.FullFileName, False)SheetMetal.SetActiveStyle(SheetMetalRule)partDoc.SavepartDoc.CloseEnd IfNext

View 1 Replies View Related

AutoCAD Inventor :: Set Mass Of Wire Part Equal To Last Parameter

Jan 30, 2013

I would like to add tree parameters to this part. One is a wire diameter. Another should be the length of the wire. The last should calculate the weight of the wire. Then I wish to set the mass of this wire part equal to this last parameter. Is it possible somehow?

View 3 Replies View Related

AutoCAD Inventor :: ILogic Change Parameter In Any Part That Is Not A Component

Oct 1, 2013

The commented code does not work. I want to be able to open a part and change its size parameters before i open the assembly. this code will run as an external rule in a new empty file. 

If i can do it without opening the part, that is even better. Test can I open a part, change a param, then close part.

Dim fname As String
fname ="C:Workspacemy_progchanF_BB_L.ipt"
Dim pDoc as PartDocument = ThisApplication.Documents.Open(fname,False)
pDoc  = ThisApplication.Documents.Open(fname)

These are just attempts to find a syntax that works. I need the method to change the parameter.

 'param = pDoc.PartComponentDefinition.Parameter.Param("TKNS")
 'pdoc.parameter.Param("TKNS") = 8
pdoc.Save
pdoc.Close

View 4 Replies View Related

AutoCAD Inventor :: ILogic Driving Part Parameter From Assembly?

Oct 24, 2013

I have a multi body part that I componented into an assembly. I am trying to get the assembly parameter in this case, "Height" to drive the parameters in the part model. I think I am using the right code but I get an error when I run the rule.

View 5 Replies View Related

AutoCAD Inventor :: Creating Part Parameter With ILogic Running In IDW?

Mar 19, 2012

Im quite new to customizing inventor and have been playing around with I-logic. I can get I-logic to enter values into existing ipt paramaters when run from a rule within the idw. I can also get I-logic to create a custom Paramater within the ipt using some copied API code, however I dont know my way around API at all yet. So...

I was wondering if it was possible to create a custom part parameter from an ilogic rule run in an idw with that ipt featured?

View 4 Replies View Related

AutoCAD Inventor :: Studio Assembly Animation - Part Parameter

Nov 8, 2013

I have an assembly inside of Inventor Studio.  One of the parts inside of the assembly has a parameter that I would like to animate. When I select the "Parameters" function within the "Animate" tab on the ribbon, I get an error:

"There are no favorite parameters defined."

This worked fine when I tried the same thing with only the part inside of Inventor Studio, but not when the part is included inside of an assembly.

View 3 Replies View Related

AutoCAD Inventor :: Number Of Bends In Sheet Metal Part Into Parameter?

Aug 14, 2009

What is the name of a value that might hold the total number of bends in a part?

Or at least how those feature are managed?

Simply put, I'd like to pull the total number of bends into a parameter so it can be exported later.

View 3 Replies View Related

AutoCAD Inventor :: Saving A Multi Value Parameter List Externally From The Part

Jan 17, 2013

I have an iLogic template part that has a multi value parameter. In this case the product code can be selected from a list of 4 codes. In futre we may need 5 and the 5th may need to be available to older parts.

I would like to avoid having to add the 5th as an option to every part we've ever made when the 5th becomes required.

I'd like to have the list of codes stored in an external file (Possibly an xml) and the template part reference that file to acquire it's list of available codes. That way I can add codes to the xml and all the files will have their list of available codes updated.

View 2 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 :: Export To DWG / Missing (Part Number) Text Parameter

Dec 3, 2012

I'm using the "Part Number" parameter inside a block of text in my drawing, but when I export it to AutoCAD DXF 2010 format, the text in the exported file shows up as "<PART NUMBER>", instead of displaying the actual part number.

-Using Autodesk Inventor Professional 2012

View 2 Replies View Related

AutoCAD Inventor :: IV2012 Sp1 - Delete Unused Parameter Takes 4-5 Seconds Per Parameter

Dec 23, 2011

I have user parameters that are no longer needed and are not being used anywhere.  They each takes 4-5 seconds to delete, prior to 2012 this would happen instantly.

IV2014 SP1 64bit
Dell Precision T7500, Geforce GTX 480, DirectX11 306.97
SpaceExplorer 4.04, 3DxWare 3.12.2
Twin Intel Xeon E5506 2.13GHz, 12GB RAM, Win7 Pro SP1 64bit

View 6 Replies View Related

AutoCAD Inventor :: Convert Model Parameter To Reference Parameter?

Oct 2, 2012

I need to convert a model parameter to a reference parameter thru the API.

I saw this item discussed in the group before, but I cant find the thread.

View 4 Replies View Related

AutoCAD Inventor :: Set Parameter For End Value Of Parameter Animation

Dec 19, 2011

I got a deadline for my project, but I got a big problem:

"I cannot set the "parameter" for the End Value in Parameter Animate dialog"

For easy understand, let's see a example:

1. I got a part which has two parameters named: "A" and "MaxA"
2. I animate Favorited parameter A.
3. The End Value is MaxA_ (Everything is ok)
4. I finish Studio environment, then I change parameter MaxA_ from 200 mm to 400 mm
5. I turn back to Studio environment, the End Value now is "200 mm" (I want this will be MaxA_, so I can animate the flexible parameter). 

show me how to keep the end value will be "MaxA_" after I change parameter? 

View 3 Replies View Related

AutoCAD Civil 3D :: Part Catalog Optional Parameter Not Showing Up?

Nov 3, 2013

In 2013, I had an optional part parameter for pipes called "Velocity", and it worked fine.  We use a network catalog, and I was trying to use the same part catalog for 2014, but it gave me a Runtime Part Parameter Configuration Error for the Parameter Name "VEL".  So I copied the "Pipes Catalog" folder from my C drive for 2014 and pasted it to the network.  I then revised the AeccPartParamCfg.xml in the AeccShared Content folder with the same information as I had in the previous network catalog. 

Specifically, I added the following line in the xml file

"<AeccDfParameter name="VEL" desc="Velocity" context="FlowVelocity" index="0" datatype="Float" usage="Double_General" unit="" visible="True" internal="True"/>"

and further down in the xml file under

" <AeccParamUsage>
<AeccPartDomainCfg domain="Pipe_Domain">"

I added the line "<AeccOptParam context="FlowVelocity"/>"

see the attached image 1-Old AeccPartParamCfg xml file.JPG to see images from the xml file.

I got the same error when I opened C3D 2014.  I added an underscore between Flow and Velocity for context, and it worked! (See attachment 2-Revised AeccPartParamCfg xml file.JPG)

So C3D 2014 opens without the error.  I click on Part Builder and click on RCP (formerly Concrete Pipe from OOTB part catalog) under pipes.  I right click on Size Parameters and click "Add..." which takes me to the New Parameter dialog box as seen in attachment 3.JPG.  It shows three of the optional properties I have added: Pipe Classification, Friction Slope, and Velocity.

I add these three optional properties and edit their configurations as seen in attachment 3.JPG.  I give Friction Slope and Velocity both a range of 0 to 1000 with a default of 0.

I create a new parts list and add the part family RCP.  I click to add part sizes and get the final dialog box on attachment 3.JPG.  Velocity doesn't show up!  Pipe Classification and Friction Slope show up, but no velocity!

I have tried deleting the 'VEL" line in the xml file, copying the "FSL" line and pasting and revising it for velocity, but that didn't work.  I tried switching the FSL and VEL lines in the xml file to see if FSL would disappear and VEL would appear, but that had no effect.

C3D 2014
Windows 7 64 bit

View 5 Replies View Related

AutoCad :: Hide Part Of Dynamic Block (Visibility Parameter)

Oct 1, 2007

I'm struggling to hide a piece of such a block (using Visibility Parameter).

View 2 Replies View Related

AutoCAD Inventor :: Ipart - Standard Parameter Column Change Depending On Custom Parameter Column

Jan 3, 2013

I am trying to publish to the CC a guide rail. The vendor of the rail gives me the option of entering the desired length of the rail. After that he gives me the option to choose between the length that I entered and a shorter and longer standard length witch can be delivered faster.

I want to do the same thing with my published part, but I cannot make a key parameter to change depending on the entered custom parameter. I want the user to make the next steps when inserting from the CC: 1- select the size of the rail; 2-select the type of the rail; 3- enter the desired length of the rail; 4- choose between the desired length and the 2 recommended lengths (I need these 3 lengths to be shown)

Is this possible?

View 9 Replies View Related

AutoCAD Inventor :: Button To Run Rules

Nov 24, 2011

I've created several (4) ilogic rules and want to run them by pressing a button. So I need a form with 4 start buttons. Can I create this with Ilogic in Inventor 2011 or do I need to be VBA expert?

View 3 Replies View Related

AutoCAD Inventor :: Trigger ILogic Rules Using API?

Mar 29, 2011

I am currently using a vb.net application to control inventor using the API code.The API code is used to delete/suppress unwanted occurances from parts and sub-assemblies, depending on what is selected in the external application. It then puts all the parts and sub-assemblies together into a final assembly.

Most of the parts contain iLogic rules, to control dimensions, and these have been set to trigger when the part file is opened.I have noticed that in my final assemblies some of the parts don't appear as they should, however if i close the final assembly and open the individual part it appears to be correct. If i then open the final assembly it looks fine.

I think this might be due to the iLogic rule being triggered when the part is opened.Is there any way to trigger the rules using the API code while the final assembly is open, instead of closing it down and opening all the component parts and sub-assemblies?Or should we set the rules to trigger on a parameter change?

View 6 Replies View Related

AutoCAD Inventor :: ILogic Rules Setting

Jul 23, 2012

I'm trying to set a rule in which i have 2 i parts that i can change the length of . I want a rule where if i change one of them it changes the other to fit with it.

View 1 Replies View Related

AutoCAD Inventor :: How To Run Multiple Rules Simultaneously

May 3, 2012

I have an assembly with multible parts which all have iLogic rules in them. I want to controle when the rules are executed in each part, thus I have set them as "Don't run automatically". These rules are iTriggered by the top assembly, if they are active.

Is there a possibility of how I can run multiple rules simultaneously?

The code below is an example of the controle rule that determines the rules to be run but it takes one rule at the time...

 IfComponent.IsActive("5580 Heating element package 1")=TrueThen
iLogicVb.RunRule("5580 Heating element basket 1", "iTriggerRule")
EndIf
IfComponent.IsActive("5580 Heating element package 2")=TrueThen
iLogicVb.RunRule("5580 Heating element basket 2", "iTriggerRule")
EndIf
.
.
.
up to x

I have also tried with For - Next statements...But the rules are run in the order that tey are written...

As the computer has a lot of memory in reserve; I want somehow all the iTriggerRules to be run at the same time as this would save a lot of time.

View 2 Replies View Related

AutoCAD Inventor :: ILOGIC Workflow / Way To Add Rules

Oct 1, 2012

I made a simple rule that triggers before save to ask user to make a selection, which then updates an iProperty.I created A multi value fxParameter and used the InputListbox function.

Ultimately I want to know the best way ok making this rule available to all parts, old and new.I am thinking, it will be easy enough to update my templates and embed this code into the part, as well as content center files by updating each file / template .

But for existing parts, is there a way to add these rules without the user having to do much steps.because there is an fxParameter I am thinking the user will have to know how add this to their part.I can change it to just an input box where they can type in the correct value, if that would be easier.

View 6 Replies View Related

AutoCAD Inventor :: ILogic Rules Not Triggering

Sep 8, 2011

I have been having trouble with parts that do not trigger iLogic rules. I've set the triggering events to After Open Document, but nothing triggers. I must manually open the parts and then click the iTrigger to get the rules to run. This is not all parts only a select few and seemingly random.

Is there something I can do to ensure the triggers fire and the rules to run?

Sidebar: If a part is set for trigger After Open Document should that part trigger the rules when the assembly that the part is in is opened?

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







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