AutoCAD Inventor :: ILogic Material Change Failure?

May 23, 2012

The attached part has some bad work features on it, but I don't care about that (easy fix). It also contains a rule that simply changes the material from "P AND O" (pickles & oiled) to "201 S/S", for some reason the faulty work geometery causes this rule to throw an "unspecified error". If you delete the bad work geometry the rule runs fine.

View 2 Replies


ADVERTISEMENT

AutoCAD Inventor :: ILogic Material Properties Change (2010)

Oct 12, 2011

why the script below doesn`t change Physical material properties? It changes the thickness of the part, but not material properties on the BOM...

ShThk = InputListBox("Sheet Thickness", MultiValue.List("ShThk"), ShThk, Title := "Choose Thickness", ListName := "Thickness")

' material thickness from multi-value parameter called ShThk
    
    If ShThk = 0.3125 Then
    SheetMetal.SetActiveStyle("5/16"& Chr(34))
    Else if ShThk = 0.25 Then
    SheetMetal.SetActiveStyle("1/4"& Chr(34))
    Else if ShThk = 0.1345 Then
    SheetMetal.SetActiveStyle("10ga")
    else if ShThk = 0.105 Then
    SheetMetal.SetActiveStyle("12ga")
    else if ShThk = 0.1793 Then
    SheetMetal.SetActiveStyle("7ga")
    End If

View 3 Replies View Related

AutoCAD Inventor :: ILogic Snippet - Change Hatch Pattern In Section Of Specific Material In IDW

Dec 13, 2012

I am completely new to ilogic but would like to make a rule in my idw file that change the hatch pattern in a section of a specific material.

Short Version:

I have an aluminum extrusion part. Material is set to Aluminum-6061. In any section view of this part I want the hatch to be ANSI 31 with a rotation of 45 degrees and a scale of .02 How do I do this?

View 1 Replies View Related

AutoCAD Inventor :: ILogic Catastrophic Failure

Oct 20, 2011

I have a rule controlled .idw with several rules that call each other and various API macros with views and partslists that all have their own rules.

I want the drawing to close itself without saving the changes after it's done executing all of its code (the end product is written to an excel sheet). Everything works beautiful, and the drawing does close itself like it's supposed to, except for some strange reason it throws an error message when it closes.  I've tried a few different methods of closing it.  The code below is what I want to use.  I've tried it with close set to false as well (saving changes).  I've also tried calling an API macro that's pretty similar looking. They all have the same result. The rest of the code executes just fine, and no errors are thrown if I comment out the code letting the document stay open.

I've even tried making a brand new virgin part, writing a rule with just the below code and executing it. The only difference is the error window is thrown from Inventor instead of windows.

View 9 Replies View Related

AutoCAD Inventor :: Using Material IProperties In ILogic Forms?

Aug 3, 2011

I'm trying to build a simple ilogic form to fill out iproperty infomation for parts we generate.  Our company only uses a few of fields that are available.  The problem is that the Physical tab is not available in the form editor.  I would like to add this field to my form to be able to select the material for the part.  The style/standard editor in our part template file holds all materials we use.  Summary, Project, Status, and Custom are all available, why isn't Physical? 

View 9 Replies View Related

AutoCAD Inventor :: ILogic And ITrigger To Prompt Size And Material Changes?

Oct 23, 2013

I am interested in Learning about Ilogic and the Itrigger. I worked at a company where they had a prompt that would change, size, material, hole quantities etc. I am trying to recreate that for a cabinet but cannot seem to find a good tutorial, I know I need to write some sort of rule to do this but cannot find out specifcally how to do so.

View 2 Replies View Related

AutoCAD Inventor :: Material Pull Down Not Updating After ILogic Routine

Sep 25, 2013

The following rule works perfectly as an external rule except the Materiial and Appearnace pull downs do not update. I know I am missing something easy. Here is my code

'Set the materials libraryassetLib = ThisApplication.AssetLibraries("iLogicTestMatLib")'Set the current document activeoMy Parameter= ThisApplication. ActiveDocument.ComponentDefinition.Parameters.UserParameters'Turn off error reporting on parameters and.
[code]....

View 3 Replies View Related

AutoCAD Inventor :: ILogic Rule To Populate Finished Material Size Based On Model Geometry Selection

May 23, 2012

I created the following user parameters:

-Thickness
-Width
-Length
-Dia

I then created a Custom iProperty which consisted of the following "formula":    Finished Material Size = <Thickness> x <Width> x <Length> Lg.

eg. of Finished Material Result :        Finished Material Size = 6 x 25 x 300 Lg.

The problem comes up when dealing with diametrical components as the above formula will only populate for square or rectangular parts. Which would work if I could use iLogic code to populate the Finished Material Size iProperty. I have tried but failed.

First I created another user parameter called "Geometry Type" which has a drop down selection of either "DIA" or "SQUARE, RECTANGULAR".I then created the following iLogic code to set 0 as the value for the "unused" size parameters

 If PART_GEOMETRY = "DIA" Then WIDTH = "0"If PART_GEOMETRY = "DIA" Then THICKNESS = "0"If PART_GEOMETRY = "SQUARE, RECTANGULAR" Then DIA = "0"
 The part I just can't get to work is as follows.

I need some iLogic code which will populate the "FINISHED MATERIAL SIZE" custom iproperty with one of the following based on my "GEOMETRY TYPE" selection. "DIA" would return the following to "FINISHED MATERIAL SIZE":      = Ø <Dia> x <Length> Lg.

While "SQUARE, RECTANGULAR" would return the following to "FINISHED MATERIAL SIZE":     = <THICKNESS> x <WIDTH> x <LENGTH> Lg.I tried the following code but it does not work:

If PART_GEOMETRY = "DIA" Then iProperties.Value("Custom", "FINISHED MATERIAL SIZE")= "Ø"DIA "x" LENGTH "Lg."If PART_GEOMETRY = "SQUARE, RECTANGULAR" Then iProperties.Value("Custom", "FINISHED MATERIAL SIZE")= THICKNESS "x" WIDTH "x" LENGTH "Lg."

View 2 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 :: Material Change Using API

Jul 3, 2013

I changed the material using the vb.net code shown below.but after changing material the object is not updated ,the volume and mass didn't change .
 
Dim oDoc As PartDocument
oDoc = inventorApp.ActiveDocument
Dim oDTProps As PropertySet
oDTProps = oDoc.PropertySets.Item("{32853F0F-3444-11d1-9E93-0060B03C1CA6}")
[code]....

View 9 Replies View Related

AutoCAD Inventor :: Change Material In BOM -> Not Possible For All Parts

Jan 10, 2013

If I need to change the material of all parts in an assembly I find it convenient to do this in the BOM. In the 'parts only' view I add the material column, change the first one and just drag it down like in Excel.

There are however some parts where the material is greyed-out (see attached image) and I cannot change them in to something else. I already traced this to parts which are present in multiple different sub-assemblies. I guess that's also the reason for the blueish/red icon instead of a normal part icon.

If I open one of the sub-assemblies the part is fine and I can change the material.

Inventor 2013

View 2 Replies View Related

AutoCAD Inventor :: Change IProperty Material Using VBA

Mar 2, 2013

I am trying to change the iProperties "Physical" "Material" using an Inventor VBA macro..For example, say the material is set to "DEFAULT" and I want to change it to "TITANUIM", how can I do this using VBA?

View 1 Replies View Related

AutoCAD Inventor :: Use Material To Change Color Of Text?

Jan 7, 2014

In a project I'm working on I need to make the text have mirror properties. But when editing the text all i can choose from is "normal" colors. 

So is there any way to make text use materials, like you do on normal surfaces?

View 5 Replies View Related

AutoCAD Inventor :: Change Default Material To Steel?

May 28, 2012

I received a rather large assembly file from a client that was done in Pro E.  I was wondering if it is possible to change the entire assembly from Default material to steel without having to go into each individual part and changing its material manually (which could take several hours) I am using INV 2012 Pro with SP1 installed.

View 2 Replies View Related

AutoCAD Inventor :: Material Change Bolted Connection

Feb 4, 2011

I have a problem with the Bolted Connection tool in inventor. When I use it to place fasteners in my assembly everything works fine, i can select the material I want, etc... The problem is whenever I need to change something in it, the fasteners changes to the first one in the list that appears when you click the ... button, which means that I always get the wrong fasteners.  The workaround we found was to click the ... button again for all the fasterners, and this has to be done in the right order (start to end) otherwise I will get again the wrong fasteners and to select the fasteners again.

One more thing, I'd like to know if it is possible to have a more user-friendly way to change the bolts in bolted connection. I would like it to be like when you import a component from the content center, with that dialog box. As for now, I have to choose the bolts with their part number while when I import them with the content center, I have all set the key values.

View 1 Replies View Related

AutoCAD Inventor :: Cannot Change Material For The Some Parts In The Assembly BOM

Nov 9, 2013

I wish I can open my general assembly BOM and set the proper Materials to my all my parts after migration from 2012 release.

But I cannot change Material for the some custom part in the assembly BOM in the Parts Only tab. Parts refusing to change a Material have special symbol and I guess it means “promoted assembly” – no info regarding these symbols.

I can change any Material in Structured and Model Data tabs but it is extremely inconvenient for the big assembly.

[URL]....

The questions is: Why those promoted assemblies have inaccessible Material in the Parts Only tab?

I have similar subassemblies built in similar way as you can see fro video, but one is treated as promoted assembly and other as promoted part, the question is what possible difference between those is?

View 8 Replies View Related

AutoCAD Inventor :: Change IPT IProperty (Material) With VBA Macro

Jul 6, 2013

how to change an "IPT" files iProperty "Material" with a VBA macro?

For example,

If I have created a part (ipt) file, the iProperties "material" is set to "Default"

How can I change the material to say...."GOLD" (Example Only!!!) using a AutoDesk Inventor VBA macro?

View 1 Replies View Related

AutoCAD Inventor :: Change Material For Multiple Parts At Once

Sep 20, 2011

I need to change an entire assembly's parts to a different material.  How can I do this without editing each part?

View 2 Replies View Related

AutoCAD Inventor :: 2013 Frame Generator Won't Let To Change The Material?

Apr 18, 2013

I get this error message when attempting to change the material in the frame generator. 

View 9 Replies View Related

AutoCAD Inventor :: How To Change Units To Metric In Material Editor

Oct 13, 2012

How to change the units to metric in material editor? See attached picture

View 1 Replies View Related

AutoCAD Inventor :: Change Spelling Of Aluminum To Aluminium In Material Database?

Feb 1, 2012

How do I change the spelling of Aluminum to Aluminium in the material database in Inventoe.

View 1 Replies View Related

AutoCAD Inventor :: Change Part Material Render Style Within Assembly?

Oct 5, 2011

How do I change the a part material render style within an assembly?

I have tried this below. It changes the name but doesn't update the render style.
Sub Material()Dim oassy As AssemblyDocumentSet oassy = ThisApplication.ActiveDocumentDim ocompdef As AssemblyComponentDefinitionSet ocompdef = oassy.ComponentDefinitionDim ooccurr As ComponentOccurrencesSet ooccurr = ocompdef.OccurrencesDim opartdef As ComponentDefinitionSet opartdef = ooccurr.Item(11).Definitionopartdef.Material.RenderStyle.Name = "Red"End Sub

View 2 Replies View Related

AutoCAD Inventor :: How To Change Sheet Metal Rule For Changing Material

Aug 4, 2013

 I want to change the material of a sheet metal part using inventor api.I tried something like code
 
Dim partDoc As PartDocument partDoc = inventorApp.Documents.Open(FilePath & filename, False) If partDoc.SubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}" Then Dim smDef As SheetMetalComponentDefinition smDef = partDoc.ComponentDefinition Dim style As SheetMetalStyle style = smDef.SheetMetalStyles.Item("sheetMetalRule")

 But I can't get the code for material change.

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 :: ILogic To Change Sheet Name

Oct 31, 2013

I've seen snipppets of code to get the Sheet name but is there a way to set it via code? I'm thinking it might be useful to set the sheet names to the chosen sheet format (as opposed to just 'Sheet').

I'm sprucing up my drawing template...

Rule #1 is for selecting sheet format (which title block/sheet size / orientation)
Rule #2 is for setting iproperty values to populate the titleblock with info. (if required)
Rule #1 was based on code from S.Bixler & inventortrenches
Rule#2 was based on more code taken from here.

View 2 Replies View Related

AutoCAD Inventor :: Change Row Of IAssembly Using ILogic

Nov 11, 2013

Issue between an i-assembly and i-Logic. So, I have an assembly that includes some extra components that are not always needed and therefore an i-Logic rule takes the decision whether these will be suppressed or not.

Of course this is not a problem however it turns out that I miss some info from BOM according to the suppressed parts   ...and all these makes sense following the LOD etc.

A potential solution to keep up to date the BOM while you are excluding the needless components is to create 
an i-Assembly.

To keep that simple I turned my current Assembly to an i-Assembly and very successfully I excluded various components and of course I included some others by adding extra ROWS. 

So far So good

Now I want to apply some dimensional boundaries by using i-Logic rules. According to them I want to allow this i-assembly to jump among these different ROWS that meet the right criteria.

Very rough thoughts led me to the following code...

For example...

If Width > 600 Then
iPart.ChangeROW ("..." , "...") 'Row-1'
Else
iPart.ChangeROW ("..." , "...") 'Row-2'
End if

The Problem is that the above code works fine, for a example, in case that I will place an i-part in my assembly... However I am looking to change the row of the actual assembly that as I mentioned before I turned it to an i-assembly

To make this even more clear I want to be able to manipulate my i-assembly with i-Logic rules while this is open in Inv. I don't want to change rows while this is placed as a component or sub-assembly in an another assembly...

View 1 Replies View Related

AutoCAD Inventor :: Change BOM Structure With ILogic?

Jan 8, 2014

I'm using rules to control a part that I made. This part is available in steel and wood. 

But steel = normal and wood is something we have to buy.

I would like to adjust my rule so that my material choice will effect the "Default BOM Structure"

I just can't find the right "code" to start with.

View 8 Replies View Related

AutoCAD Inventor :: Color Change With ILogic?

Jun 27, 2012

I am using Inventor 2012:  I have a table with different part numbers. I want to create an iLogic rule to change the color of second solid body in my part for a specific part number.

This is what I did.

If iProperties.Value("Project", "Part Number") = "F22111796" Then
 Feature.Color("plastic")= "Gray"
ElseIf iProperties.Value("Project", "Part Number") = "F22111796V" Then
 Feature.Color("plastic")= "Gray (Dark)"
ElseIf iProperties.Value("Project", "Part Number") = "F22111796N" Then
 Feature.Color("plastic")= "Gray (Light)"
Else
 Feature.Color("plastic")="Gray"
End If

However it does not change the color of the second solid body when I make the part number active.

View 1 Replies View Related

AutoCAD Inventor :: Using ILogic To Change An IPart Row?

Oct 25, 2012

I have a sheet metal part that I converted into an iPart and I set up different rows with different sheet metal styles. What I want to do is run an iLogic code to change to a specific row which in turn would change the actual material of that sheet metal part....I've tried the snippet iPart.ChangeRow but cannot get it to run the code. I'm not sure if I'm not doing something right or what...

Inventor 2014, Windows 7, 64 bit

View 9 Replies View Related

AutoCAD Inventor :: Change Sheet Metal Parts Material / Thickness Bend Radii From Assembly

Nov 22, 2013

How do we change sheet metal parts material, thickness Bend Radii from an assembly in groups.

View 3 Replies View Related

AutoCAD Inventor :: Change Hole Type With ILogic

May 21, 2013

I would like to know if it is possible to use iLogic to change the Hole Type from Through to Tapped as conditions dictate.  Is this even possible?  I already have a backup plan but wanted to check out all possibilites before I proceed.  Using Inventor 2012 SP2.

View 1 Replies View Related







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