AutoCAD Inventor :: Using ILogic To Change Parameter

Mar 26, 2013

When I import a part from content center, a tube in this case, I get a length parameter called <PL>.

I am using this parameter in the parts lists, so it shows "=Outer diameter x thickness x <PL>"

However I don't want trailing zeros, leading zeros or units string to be shown.

I know I can open the parameters window, right click the parameter, then click custom property format and then uncheck these boxes and its fine.

But I want to know if there is a smarter way to do this, like creating a rule to execute on all the parts?

I have around 500 pipes with the parameter <PL> that needs to be changed.

View 6 Replies


ADVERTISEMENT

AutoCAD Inventor :: Change Drawing Scale With ILogic Upon Parameter Change

Jul 8, 2013

I have a spreadsheet and iLogic driven mater assy to generate different iterations.

I would like to change the scale of a base view on a drawing based on a parameter in my assembly. The idea is to get iLogic to change the view using a simple If / Else statement.

This is what I tried:

If Parameter("0 Generic Assembly v2.2.iam.BP") < 1570 Then
ActiveSheet.View("VIEW1").Scale = 1/8
Else
ActiveSheet.View("VIEW1").Scale = 1/10
EndIf

So basically the value of "BP" parameter (excel parameter in my assy) would drive the scale of the views. But its not working. Is it actually a sensible method? Can I use in the drawing environment the excel parameters in my assembly?

This is the error message I get when the rule is run:

"Error in rule: View Scale, in document: 0 Generic Assembly v2.2.idw

Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))" 

Also using the same thinking I use iLogic to populate the drg number field on the drawing based on an excel parameter. The rule works but does not always updates the drawing no upon the parameter change or update/rebuild commands.

View 1 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 :: Cannot Change Parameter Value For ILogic Unless User Is A Local Admin On PC

Aug 23, 2012

I have a users who cannot change parameter values for iLogic unless user is a local admin on the workstation. This machine has just been upgrade to Inventor 2013.

View 1 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 :: 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 :: Round Parameter Using ILogic?

Sep 20, 2011

how to round a parameter using ilogic.

For example. I have Roperev=Roperev_1. Roperev_1 is determined by an excel equation. I need Roperev to produce a nominal number because this parameter dries a coil revolution and I need the revolution to be a whole number.

I can not just round the excel result because the excel result needs to be multiplied by 2.53 to get the resultant for Roperev_1

View 9 Replies View Related

AutoCAD Inventor :: Pass Parameter To DLL Using ILogic

Mar 26, 2013

I have built a vb interface using a tutorial from AU. Now I would like to do the same without the interface.

Inventor uses ilogic to pass parameters to the dll - the dll does the number crunching & returns values to Inventor - no interface required.

The tutorial uses an OK button to fire values back & forth - how can I do this without a button? I would like this to fire in the background without a form appearing.

View 4 Replies View Related

AutoCAD Inventor :: Use IProperty As Parameter WITHOUT Using ILogic?

Jul 22, 2013

I know how to get a parameter into my list of custom iProperties.What I want to do is take the iProperty lbmass and add it to the list of user parameters.  Is there any way to do this without using iLogic?

View 8 Replies View Related

AutoCAD Inventor :: Ilogic Parameter Identification

Dec 31, 2012

I have several part models that are very simple and are basically long cylinders. I want to create an external ilogic rule that i can run in each part file that can identify the largest sketch parameter dimension. So basically it will find the Length of the cylinder due to it being a larger dimension and then rename the parameter.

I could just name the cylinder length sketch parameter the same in each part file, but I wanted to attempt to make it more universal for all users. So if a new user forgets to properly label his part parameters, the ilogic program can identify what parameter it should be looking for and rename it properly.

View 1 Replies View Related

AutoCAD Inventor :: Delete All Parameter In ILogic

Sep 27, 2012

In 2009 Inventor iLogic, we have a button to delete all parameters and rules. But now, in 2013 Inventor iLogic, I only find a button to delete all rules. Where is the button to delete all parameters?

View 9 Replies View Related

AutoCAD Inventor :: Get ILogic Parameter Tab On Ribbon

Sep 4, 2012

Get the i-logic parameter tab on ribbon. I am not able to locate that in my 2013 version.

have a look on attached image.

View 5 Replies View Related

AutoCAD Inventor :: Create Multi-value Parameter With ILogic?

May 1, 2012

Is there a way to create a multi-value parameter with ilogic?

Inventor Pro 2013 (PDS Ultimate)
Vault Pro 2013
Windows 7 64
Xeon 2.4 Ghz 12GB

View 9 Replies View Related

AutoCAD Inventor :: ILogic - Model / Reference Parameter

Apr 12, 2013

I wish I perform the following code with iLogic. Is it possible to change a model parameter to a reference parameter?
 
If My_Expression Then' My dimension "d0" is a Driven Dimension' or' My dimension "d0" is a Reference ParameterElse' My dimension "d0" is NOT a Driven Dimension' or' My dimension "d0" is a Model ParameterEnd If

View 9 Replies View Related

AutoCAD Inventor :: How To Set Multi-parameter / Iproperty Using Ilogic

Jun 26, 2012

How to set multi parameter, iproperty using ilogic (or smth else)?

I hav eparameters: d1=50, d2=100, d3=5. I need to set a new multi parameter/iproperty that the final value is:

Angle 50x100x5 (suppousedly code should contain smth like: "Angle", "d1", "x", "d2", "x", "d3") but I do not know exactly...

View 2 Replies View Related

AutoCAD Inventor :: Update User Parameter With Ilogic

Dec 28, 2013

Is it possible to update an existing User Parameter. While I can only  delete-create a new. In this case the connection is lost with BOMQuantity.

View 5 Replies View Related

AutoCAD Inventor :: ILogic Rename Parameter Dialog Box?

Feb 21, 2013

way to rename a new dimension parameter in sketch with a dialog box directly not having to go to Functions or diemnsion properties.

View 2 Replies View Related

AutoCAD Inventor :: ILogic Dynamic Parameter Update Off?

Aug 4, 2013

The rule iterates through an assembly looking for parameters. If it finds them it 'pushes' the value down from the top level Assembly into the sub-components.

It works well, but each component updates dynamically as the parameter value is changed. This looks a bit jerky and weird.Is there any way to write the script so the the updates all happen at once at the end?

' set a reference to the assembly component definintion.' This assumes an assembly document is open.Dim oAsmCompDef As AssemblyComponentDefinitionoAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition'Iterate through all of the occurrencesDim oOccurrence As ComponentOccurrenceFor Each oOccurrence In oAsmCompDef.Occurrences'check for and skip virtual components'(in case a virtual.
[code]...

View 7 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 :: ILogic Code To Set Parameter In Bunch Of Parts?

Jun 25, 2013

Is it possible with iLogic code to set a parameter in a bunch of parts equal to another paramter?

I want some iLogic code that will go into my pipe parts and make the PL param = D2.

View 1 Replies View Related

AutoCAD Inventor :: ILogic Not Displaying Parameter Code Properly

Dec 20, 2012

I was working with ilogic, Adding a new rule and all of a sudden I got an error and when I double click on a parameter to add it to the code, the format changed.

It used to look like this when I added a parameter: Parameter("vertical seperation:1", "partitionthickness") 
but now when I double click on a parameter I get this: vertical seperation.ipt.partitionthickness 

Also when I right click on a parameter and select display current state, It does the same thing, for some reason the code does not display like it used to.

I got an error when this first happened and I tried reproduce the error again but it did not appear again. This affected all my parts and even in different projects.

I re installed inventor because I thought there might be a file link broken but it did not fix it.

View 4 Replies View Related

AutoCAD Inventor :: ILogic To Populate Iproperty From Multi Value Parameter

Nov 3, 2011

I am struggling to find the right ilogic to extract the state of a multi-value text parameter and use it to populate a single i property.

View 1 Replies View Related

AutoCAD Inventor :: ILogic Degree Minute Second Format For Parameter

Aug 1, 2013

I am trying to have iLogic change the custom property format for my user parameters.  I am able to work with linear measurements, but I would like to also work with angular measurements.  I want my angular units to be "Degrees" the format to be "Deg-Min-Sec" and the precision to be DD MM.

Below is my code to change the units to deg, but I can't change the format or precision:

 Dim oPartDoc As PartDocument
    oPartDoc = ThisApplication.ActiveDocument
    Dim oParameter As Parameter
    Dim oFormat As CustomPropertyFormat

[Code]....

View 1 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 :: Create User Parameter Values With ILogic

Oct 29, 2012

Macro for writing the sheetmetal Extents width and length to the custom properties.  I need to get these values into the part parameters so that they can be used in the BOM.

I can get this to work if I manually create the "SM_Length" user parameter, but how do I make the iLogic CREATE the parameters if they do not already exist?  I think it would be something added below the "Catch..." just cant seem to figure out what it needs to be.

'look for custom iproperty and try to set it
Try
iProperties.Value("Custom", sExtLength)=Round(SheetMetal.FlatExtentsLength, iRoundValue)
Parameter("SM_Length")=Round(SheetMetal.FlatExtentsLength,4)

Catch
' assume error means not found and create it
customPropertySet.Add(Round(SheetMetal.FlatExtentsLength,iRoundValue), sExtLength)
EndTry

View 9 Replies View Related

AutoCAD Inventor :: ILogic Code To Create User Parameter?

Jul 29, 2011

I want to use iLogic to create User Parameters with Multi-Value lists filled with info from an excel spreadsheet. What is the code to create a new User Parameter?

i7-2720QM Dell Precision M6600, Win 7 Pro 64-bit, 8GB RAM
Autodesk Product Design Suite Ultimate 2013
Autodesk Vault Professional 2013

View 4 Replies View Related

AutoCAD Inventor :: ILogic - How To Make Error Message Using Numeric Parameter

Feb 18, 2013

I have a text parameter "ARM_TYPE" that kicks out a numaric parameter "ARM_ANGLE" through an ilogic rule. My problem is i need to have the rule kickout an error when (ARM_TYPE= "none"). I can do this by changing the "ARM_ANGLE" parameter from a Numaric to Text format (see below). The problem here is that "ARM_ANGLE" is used in several more ilogic rule calculations generating other parameter values which also need to kick out an "error"
 
If Parameter("ARM_TYPE") = "A995" ThenParameter("ARM_ANGLE") = -12ElseIf Parameter("ARM_TYPE") = "A1023" ThenParameter("ARM_ANGLE") = -3.7ElseIf Parameter("ARM_TYPE") = "A1081" ThenParameter("ARM_ANGLE") = -44.1ElseIf Parameter("ARM_TYPE") = "NONE" ThenParameter("ARM_ANGLE") = "####"End If

View 2 Replies View Related

AutoCAD Inventor :: ILogic Rule To Read Out User Parameter Of IPart

Nov 1, 2012

I've created a main assembly containing several ipart components. With the following rule I can read the model parameters, but not the user parameters of the iparts:

A = Parameter("Part1:1", "d0")
 
If I create a component, insert it in the main assembly and make it an ipart afterwards, the user parameters can be read out with ilogic. But if I insert the same ipart again, the user parameters can not be read out anymore. Model parameters are no problem. 

View 1 Replies View Related

AutoCAD Inventor :: Deleted Parameter Thickness Being Inserted Into ILogic Rule?

Apr 3, 2013

When I have a sheetmetal part with an iLogic rule in it and I delete a feature, Inventor sticks this garbage into my rule.

View 7 Replies View Related

AutoCAD Inventor :: ILogic - Modify User Form Parameter Read Only Status

Jan 9, 2013

Any way to modify a user form parameter's read only status using a rule?

I have a parameter that I want people to be able to edit when another parameter is set to true and to be locked if it's set to false. The only thing that comes to mind is have a rule that will just switch the value back automatically if the user changes it but it would be good if i could control the read only status.

View 3 Replies View Related







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