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


ADVERTISEMENT

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 :: Using A Macro To Enable Copy Model IProperty Setting

Dec 3, 2013

We have recently found the feature of copying the model iProperties to the drawing would be beneficial to searching for files in our ERP database. I am looking for a way to turn on the ability to copy model iProperties and select which properties to copy with a macro. There are several articles showing how to enable the feature and several ways to macro the same process. I have not been able to find a way to turn it on with a macro.

We plan to adjust our templates to enable the feature on all new drawings and add additional custom iProperties to the models that were previously only used in the drawings. I have wrote a macro to add iProperties to existing models that didn't have them when they were created. Now I am looking for a way to enable everything in the drawing. I see a great benefit to clicking a single button to enable the copy model iProperties feature and select several iProperties that will be copied without having to do it manually for every old drawing.

Is there a way to access the check box to enable this and to select properties within the API? If not, would creating a macro to do the copy from the model to the drawing be the best way to create that functionality in an older drawing or not? We have a little program that will give programmatic control over the mouse but creating code to access the feature that way would be more hassle than teaching our users to manually check the boxes.

View 3 Replies View Related

AutoCAD Inventor :: Link Standard IProperty To Custom IProperty?

Aug 7, 2012

I'm looking to see if there is a way to link the revision number to a custom iProperty in the same part.  Our laser requires a specific output for programming, but I only want this to show up on actual lasered parts as we don't need it on parts that are sawcut.  Basically what I would like to do is create a custom iProperty that I can link to the title block for that reads RV:<Revision>.  Is there a way to do this?  I'd rather not create a separate drawing template for lasered parts as we've got about 100 templates for our various customers the way it is.

View 6 Replies View Related

AutoCAD Inventor :: Automate Change To IProperty Of Multiple Parts?

Jul 23, 2013

Is there a way to change an iProperty, specifically the iProperties->Project->Project field for multiple parts automatically.

I use the iLogic Design Copy Tool to copy over an entire project, and for the most part the only changes is the project number.

I didn't see a way to change this in the Design Copy Tool, possibly there is some other tools that can do this that I don't know about. But if not, I am assuming a small script (VBA??) would be required to do this? whether it is in Inventor or just an outside program to carry out this change.

I found this old thread, but it seems that people just found another way to do this?

[URL]

My workflow would follow something like this:

-Use iLogic Design Copy Tool to copy over project to new folder

-Open up full assembly

-Run rule or script to update all parts in assembly with new Project iProperty

-Save

-update the drawings as I need, (they will all need to be reviewed as some parts will be modified anyways)

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

AutoCAD Inventor :: Use ILogic To Change Custom IProperty In Several Components At Once

Mar 25, 2013

I've been using iLogic. I'm creating a template assembly that will be used for multiple jobs. Therefore, the job number will be changing. I want a custom iProperty in ALL parts and sub-assemblies (cleverly call it "Job #" maybe) that I can include an a separate property called "Drawing #" which whose value will be [some text]-<Job #>-[some more text]. I want to be able to update all the "some text" parts manually for each component, but I want the Job # to update automatically. I need this property because I have a column in all my Parts Lists called "Drawing #" which tells the drawing number for any given part or assembly.

Ultimately what I want to do is open a text or Excel file, enter the job number, open my Inventor drawing, and have every Drawing # entry in every parts list magically update to the correct job number.

I've managed to use iLogic to do just that with a single .ipt/.iam file. But I have dozens upon dozens of components in the main assembly. I'd like to run some rule or hit some button or do something that will cause the Job # property to update for ALL sub-assemblies and parts, so that all my parts lists reflect the change.

View 4 Replies View Related

AutoCAD Inventor :: ILogic Rule To Change Custom IProperty

Dec 11, 2012

I am after writing part of rule for ilogic,i need the rule to fill out a custom property with information for me. I have a part that has 2 parameters

parameter 1 = Frontplanangleparameter 2 = Endplanangle
Custom property
iProperties.Value("Custom", "DESC2") =

I need the rule to examine both parameters and if both angles = 0 then DESC2 = ""And if any parameter >0 then

iProperties.Value("Custom", "DESC2") = bevel

View 1 Replies View Related

AutoCAD Inventor :: Macro To Make Change In The Assembly?

Jun 22, 2012

I have an assembly that includes iPart.

For example there are:

C: Part1
C: Part1 Part1-01
C: Part1 Part1-02 ...
C: Part2
C: Part2 Part2-01
C: Part2 Part2-02 ...

I need a macro to make the change in the assembly. You need to replace Part1-04 to Part2-04. Which method should apply for this?

View 6 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 Name And Tooltip Text Of Macro Button

Jan 3, 2012

For several years I've been programming in Inventor and AutoCAD, with VBA. Making macros and creating a button for them in the toolbar of Inventor is no problem. What disturbs me slightly is that the name of the button is the same as the name of the macro. In VBA you can't create functions with spaces in the name. So the name of the toolbar button often looks quite silly.

Is there a way to change the name and the tooltip-text of the toolbar button without loosing the link to the original macro? In AutoCAD this is no problem, but Inventor...

Product Design Suite 2014
Inventor 2012 SP2, Vault 2014
HP Workstation Z220
Intel Xeon 3.4GHz
16GB RAM
Nvidia Quadro 4000
Windows 7 Professional (64bit)

View 1 Replies View Related

AutoCAD Inventor :: Macro To Change Text Style Font

Jan 2, 2012

Inventor 2012.

How to make a macro that changes the font for a specific Text Style. The name of the Text Style is eg. "3mm", which I want to change from RomanS to Verdana.

View 1 Replies View Related

AutoCAD Inventor :: Macro-command To Change Title Block In IDW

Feb 11, 2004

Is there any macro-command to do this :

"Open the .idw that you created your title block in. Locate and right click on your title block in "drawing resources". Select copy. Open the file that you want to put your title block in. Right click on "drawing resources" and paste your title block there. Now you will have to delete their title block and then activate yours. "

I want to change my drawing template and I have many to do and it must have somewhere somehow a way to do this automatically?

View 8 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 :: 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 :: 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 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 :: 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 :: 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 :: Adding Save Run Macro To Automatically Run Macro

Dec 30, 2012

I have been using the addin "Save Run Macro" to automatically run a macro every time the "Save" button is pressed.

Any of the following questions about "Save Run Macro"?

1] When I protect the macro from viewing (so I can protect my code) "Save Run Macro" does not see the macro.

2] When I save the part for the first time (ipt, iam or idw/dwg) the macro does not run. I always need to run the macro again.

View 1 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 :: 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 :: Cannot Delete Unused Material In Material Editor

Nov 2, 2013

I can delete every unused material except one in the Material Editor.I am trying to make the custom Material library and somehowI have got the Material I cannot delete. URL....

View 9 Replies View Related

AutoCAD Inventor :: Adding Material And Texture To Material Library?

Mar 12, 2013

I am in the samill building buisness.  While designing I thought it would be nice to show logs on our equipment.  Is there anyway to show bark on drawings to show the texture on the final drawing?

View 1 Replies View Related

AutoCAD Inventor :: Can't Get Inventor 2013 Show A Custom Iproperty Correct

Jun 18, 2012

I can't get Inventor 2013 show a custom iproperty correct.My iLogic rule is this: 

iProperties.Value("Custom", "myvol")=volume = iProperties.Volume

But the custom iProperty is a Yes or No.Had no problem with this in Inventor 2011.

View 2 Replies View Related







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