AutoCAD Inventor :: Changing User Parameter In Assembly

Apr 1, 2003

I have a part file ("part1.ipt") that has a user parameter called "Height". When I open this file as a part document, I can modify the "Height" parameter to change the height of the part. This functionality works great:

Set oPartDoc = oApp.Documents.Open(sPartFileName, True)
Set oParameters = oPartDoc.ComponentDefinition.Parameters
'change part height to 30 cm
oParameters.Item("Height").Expression = 30

Now, I am wanting to add this part to an ASSEMBLY document, then change the parameter to 30, but have been unable to do it.
I have this so far:

Dim oAsmCompDef As AssemblyComponentDefinition
Set oAsmCompDef = oApp.ActiveDocument.ComponentDefinition
Dim oOcc As ComponentOccurrence
Set oOcc = oAsmCompDef.Occurrences.Add(sPartFileName, oMatrix)

After I add all the parts, I highlight a part in the assembly pane, I click on FxParameters but I don't see the User Parameters for the part. Are the User Parameters not available when a part is placed into an assembly?

This assembly will have multiple parts added from the same file name, but the "Height" parameter needs to be modified for each occurrence.

View 5 Replies


ADVERTISEMENT

AutoCAD Inventor :: ILogic Assembly Has Double User Request At Inserting In Assembly

Sep 18, 2012

We have an iLogic assembly with to parts in it. Maybe to cylindrical parts. The iLogic rules should do the following.

1. Start a Rule after open document.

2. This Rule starts a Rule in the first cylindrical component.

3. This Rule ask the user for a diameter.

4. The assembly gives this new parameter value to the second component

5. Then the assembly calls another rule in the second component to change it with the new parameter

Everything is working fine when the following combinations are taking place:

1. I open up the assembly out of vault or from a local drive or an accessible server drive

2. I insert the assembly as sub assembly in another assembly from a local drive or an accessible server drive

It don't work with the following situation:

- I insert the assembly as sub assembly in another assembly out of vault

Then the user becomes the dialog "Choose a diameter" twice.

I don't know why, but I have the idea it has something to do with the functionality of inventor to insert a component more than once. If you insert a component in an assembly Inventor gives you the opportunity to add more than one occurence after each other. 

change that behaviour? Maybe a switch to change that inventor "add more than one occurence" behaviour.

View 1 Replies View Related

AutoCAD Inventor :: Add Boolean User Parameter?

Aug 24, 2012

Looking for sample VBA code to get all referenced documents from an assembly and add a boolean user parameter to each (parts and sub assemblies).  I have been trying to modify peices of code I have found on this forum and Mod the Machine, but have had no luck so far. 

There may also be standard content center parts in the assembly as well that I would like to somehow identify so I can skip over them.

View 1 Replies View Related

AutoCAD Inventor :: Delete User Parameter

Apr 22, 2013

Most of the time, I delete an user parameter without problem. But, in a part, I got an error for two of them and I don't understand why.  I create a new parameter and redirect all dependencies from the old one to the new. (oldParam.Dependencies.Count = 0).

But when I try to delete it, I've got an error. Also, when I try to delete it by the interface, I don't see the Delete option.

View 8 Replies View Related

AutoCAD Inventor :: How To Add User Parameter (Text Value)

Jun 10, 2011

Parameters with a text value, How do I add userParameter? In iLogic 
 
Examples. DoubleValue)

Sub Main()    

Dim oCompDef As PartComponentDefinition
oComDef = ThisApplication.ActiveDocument.ComponentDefinition
Dim oParams As Parameters
oParams = oComDef.Parameters
Dim uParams As UserParameters
uParams = oParams.UserParameters
strVal= uParams.AddByExpression!("strVal", 0.15, "mm")
iLogicVb.UpdateWhenDone = True
End Sub

View 6 Replies View Related

AutoCAD Dynamic Blocks :: Passing A Value From The Action Parameter To A User Parameter

Dec 1, 2013

I need to use the dimension created by an action-parameter as a variable in a user defined function but AutoCAD will not allow me (see attached).

How may I access the action-parameter's dimension ?

View 1 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 :: Don't Have A User Parameter Linked To A Dimension

Aug 6, 2013

I'm having problems with the parameter menu. When I don't have a user parameter linked to a dimension in the model the parameter disappears out of the parameter menu.

View 2 Replies View Related

AutoCAD Inventor :: How To Export Text User Parameter

May 2, 2013

Is there a way to export a text user parameter?

View 8 Replies View Related

AutoCad :: Use User Defined Parameter To Drive Action Parameter?

Feb 7, 2012

it is possible to use a user defined parameter to drive a action parameter.

I have several polar and linear stretch actions i would like to drive from one parameter.

View 3 Replies View Related

AutoCAD Inventor :: User Defined Text Parameter In IPart

Aug 17, 2011

I am trying to make an iPart of a fitting where I can change the "Body type" and it will change all the parameters associated with that body type through iLogic.  Really I am just playing around in iLogic to see if this is something worth learning.  Back to the point, I would like to change a  multi-value user text parameter through the iPart table but I cannot find the paramter in the parameters tab. 

Since it is a user parameter I thought it would be in the "Other" folder but it isn't.  I do however have the other multi-value user number parameter in that folder, which makes me think that maybe I can't use the paramter in the iParts table? 

INV 2012 SP1
Windows 7 64 Bit
ATI FirePro V5800
14.0 GB RAM

View 9 Replies View Related

AutoCAD Inventor :: Export Multi Value Text User Parameter

Aug 26, 2010

I created a sketch that I would like to use in an iFeature.  The sketch dimensions are controlled with an ilogic rule referencing a multi value text user parameter, eg the text parameter pull down menu controls the size of the part.

Is there an easy way to get this parameter into an ifeature or derived part?

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 :: User Parameter Driven Text Height - 2012?

May 15, 2012

We are having issues with text height and variations depending on how the text is added.

I am currently adding etching to sheet metal parts by using the user parameters (which are driven by 3rd party source, excel file) and using a cut extrusion -1mm.

We have developed a marco which detects the shape of each letter and adds etching to our sheet metal program manually. We do this to get rid of the double lines when you cut text into a part. Our process is design in Inventor, unfold then convert to DXF 2004, where we import to our SM programming package (Radan).

I have noticed that when using 10mm simplex if the text is driven by parameters and 10 point text is selected the charecter height is 9.9928mm, however if the text is added manually it measures 10mm exactly. Why is this happening? It is probably of no concern to most, but we would need to add extra charecters to our macro to account for the descrepency, and in turn would take the macro longer to run.

When the text is added by user parameters, you can briefly see the 10mm text height flash to 9.99mm when finishing the edit sketch. Changing this to 10mm again has no effect.

what is causing this, or have any alternative ways of adding 10mm simplex single line etching to a dxf from an Inventor 2012 SM part?

View 5 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 :: Cleaning Up Models By Deleting Obsolete User Parameter

Jul 4, 2012

I have created a large complex assembly that is parametrically driven by a skeletal sketch ipt by means of an embedded excel spreadsheet.

I am cleaning up the models  by deleting obsolete user parameters. But there is one that will just not give me the option to delete it.

I have interrogated the model inside and out but can not find anywhere that this parameter is still being used.

I go into the Parameter Dialogue Box (ƒx) and hover the cursor over the parameter and there is nothing that apears that indicates theis parameter is used anywhere in the model.

Is there an iLogic routine or some other method that will allow me to run a check or a search through the model that will point me to where the parameter might still be lingering.

I have attached a JPG if it will make things clearer.

RHRT_1 is the Parameter I am trying to get rid of.

BTW. The Models and Assemblies I create are guarded by Proprietry Laws so I am unable to send a copy to anyone.

Inventor 2012 Professional

View 1 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 :: User Parameter Expression List - Allow Custom Values?

Mar 21, 2013

Where do I find the "Allow custom values" option for a multi list parameter expression?

View 2 Replies View Related

AutoCAD Inventor :: Add Item To Multi-Value-List Of User Parameter (2012 API)

Jan 3, 2014

IV2012 API with VB:

How can i add an item to a Multi-Value-List of an existing User Parameter in Inventor2012 (Accessing API with Visual Basic) ?

My idea is for example:

uParams.Item(i).ExpressionList.AddItem(As String)

The problem is, that such a function "AddItem" doesn't exist.

View 4 Replies View Related

AutoCAD Inventor :: Circular Pattern With User Parameter Controlling Angle Of Notch

Oct 13, 2013

I am setting up a family of parts that consist of a round disc with a fixed OD and a circular pattern of notches cut into the OD. The notches must go to a certain depth from the center, so those parameters are set. My problem is that I need to control the amount of material left between the notches, along the OD, after the pattern is done. Given the fixed parameters of the major OD, minor OD (3.5" in this case) and number of notches, the only way to control the amount of material between notches is to change the angle. When I set up the sketch to do the notches, I can only get a fully constrained sketch if I assign a specific angle  to the notch. I need to be able to set it up so that the angle of the notch varies so the end result is a specifc amount of material left after the circular patter is completed.

In the attached PDF, I show what I have done so far. In this case the OD of the part is 4" and the diameter of the notch at it's closest to the center is 3.5". So basically, I end up with a driven parameter of 0.443. If I assign this value the parameter of d14, I need to make it equal to a ratio of another parameter (let's call it d15) so that d14 = d15*2.. This can only be accomplished by changing the angle.

In my family, the major OD and minor OD remain the same, but the angle must change to retain a specific amount of material between the notches  when the number of notches is increased or decreased.

Is there an iLogic rule I can write to control this?

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

AutoCAD Inventor :: Assembly To Control A Parameter

Oct 20, 2011

How can i run a rule in an assembly to control a parameter that occurs in different parts ie to turn a feature on or off on mutiple parts

View 4 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 :: 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 :: Changing A Parameter Through IProperties?

Oct 11, 2011

Is it possible to change a Parameter value through iProperties?  I have pipe with carries a "Length" parameter for its length.  I checked the " Export Parameter" to make this value visible in the iProperties.  Is there a way to create a Macro to make this possible?  I'd love to be able to change pipe lengths without physically opening the file.  This is my first time getting into programming/ macros.

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 :: Reference Parameter Measuring Between Two Parts In Assembly

Jul 31, 2012

I need to assign the dimension in my screenshot to a parameter so I can use it to drive another assembly. However, I can't find any way to capture it in a usable manner.

In the screenshot I have an associative part inserted that contains only a sketch with the projected line and point that I wish to measure between, but the geometry in the sketch does not update when the model geometry changes. This seems to be normal behavior?

View 3 Replies View Related

AutoCAD Inventor :: Unable To Alter Linked Parameter In Assembly

Sep 12, 2012

I have created a multi-value parameter in a part and exported it.  I then linked it in the assembly but I am unable to edit it.  I tried using iLogic but it also does not alter the part.  Please see the attached 3 jpegs.  

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







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