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


ADVERTISEMENT

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 :: 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 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 :: 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 :: 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 :: 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 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 :: 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 :: 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 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

Lightroom :: How To Change Only Selected Part Exposure

Jun 17, 2013

When I select Brush, changing the exposure supposed to change only the selected part exposure. In my LR-5 it changes the whole image exposure.  What am I doing wrong?

View 1 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 :: 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 :: Make Selected Part Or Sub From API?

Jul 3, 2013

I'm using Inventor 2013 and VB 2010 Express... I can find a part or sub from browser and open it seperately by below

Dim invDocs As AssemblyDocument
invDocs = Form1.inv_App.ActiveDocument
Dim invDocument As Document
Dim Sayac As Integer
Dim oRefDocs As DocumentsEnumerator
oRefDocs = invDocs.AllReferencedDocuments
Dim invDocument2 As Documents
invDocument2 = Form1.inv_App.Documents
For Each invDocument In oRefDocs
If Form1.BaseFilename(invDocument.FullDocumentName).ToUpper = TextAranan.Text Then  invDocument2.Open(invDocument.FullDocumentName, True)
Sayac += 1
Next

But I need to make the part selected on the browser? I want to focus (highlight) on the part and reposition the browser tree?

View 4 Replies View Related

AutoCAD Inventor :: How To Get Iproperties Of The Selected Part Or Sub-assembly

Jan 19, 2013

I'm using Visual Basic 2010 Express and Inventor 2013. I can get the properties such as PartName, Description information of the all sub parts using below

Dim invDocs As Documents
invDocs = inv_App.Documents    
Dim i As Integer
Dim invDocument As Document
For i = 1 To invDocs.Count
[code].........           

Above code works perfect. But I want to get or change i property values of the selected part or assembly in the biggest assembly. I got below information:

Dim selSet As SelectSet
selSet = asmDoc.SelectSet
Dim compOcc As ComponentOccurrence
Dim obj As Object
For Each obj In selSet
compOcc = obj
'Debug.Print(compOcc.Name)
compOcc.Visible = False              
Next

But I do not know how can I get the properties of the selected part or sub-asm . How can I walk from "compOcc" to "invDocument.PropertySets.Item("Design Tracking Properties").Item("Description") "

P.S. I will check the selected part quantity. It must be only ONE! Control Code below:

Dim asmDoc As AssemblyDocument
asmDoc = inv_App.ActiveDocument
If asmDoc.SelectSet.Count <> 1 Then
MsgBox("You need to select only one part or sub-asm to change properties...!")
Return
End If

View 2 Replies View Related

AutoCAD Inventor :: How To Change G_L Parameter From In To Mm

Aug 24, 2013

I have generated frame that has 100 members in it. Is there a quicker way of changing G_L unit to a mm so that I don't have to go into all 100 parts to change the custom properties?

Also I do not need unit string to be appear in my BOM.

View 9 Replies View Related

AutoCAD Inventor :: How To Make Part Selected In Model Browser

Jan 25, 2013

I'm using VB 2010 express. My code is getting selected part and changing some "Design Tracking Properties" of it. But when I change the properties focus goes from the selected part/sub?... How can I make part selected again? How can I make it focused.I need like below like

invDocument.SetFocus or invDocuments.MakeItSelected like...
Dim asmDoc As AssemblyDocument
        asmDoc = inv_App.ActiveDocument
        '********
        Dim invDocument As Document = Nothing
        Dim compOcc As ComponentOccurrence = Nothing
[code]...

View 2 Replies View Related

Photoshop Elements :: Change Color Picture To Blank And White And Keep A Selected Part Colored?

Sep 15, 2012

How can I changed a colored pictkure to black and white and keep a selected part colored (color swap)

View 1 Replies View Related

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

AutoCAD Inventor :: How To Change G_L Parameter From Decimal To Fraction

Dec 2, 2011

How to change the G_L parameter from decimal to fraction (1/16)? I've attached some screenshots.

View 9 Replies View Related

AutoCAD Inventor :: Change Length Of Geometry By Text Parameter?

Mar 15, 2013

I need to change the length of geometry by a text parameter.How to do this?

I tried this:

If widthselection="420" Then
Parameter(d11)=725mm
Parameter(width)=420mm
ElseIf widthselection="620" Then
Parameter(d11)=1075mm
Parameter(width)=620mm

[code]....

View 2 Replies View Related

AutoCAD Inventor :: Change Content Center Component Based On Parameter Changes

Aug 23, 2012

How can I change size of the content center part in an assembly based on parameters using iLogic.

There is also the possibility that I would need to replace from content center. I have been unsuccessful in adapting previous examples to work as I need. attached is an example of a part I am tryig to change with parameters and the start of some iLogic. I am using inventor 2012.

View 3 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 :: 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







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