Change Material and copy

Change Material and copy

GeorgK
Advisor Advisor
717 Views
3 Replies
Message 1 of 4

Change Material and copy

GeorgK
Advisor
Advisor

Hello together,

 

whats the best way to change the material in a part? I use this code for VB.Net:

 

oDoc.ComponentDefinition.Material = oDoc.Materials.Item("Titanium")

 

Is there a better way and more stable for Inventor 2014-2016?

 

How could I copy materials from one library to another one?

 

Thank you Georg

0 Likes
Accepted solutions (1)
718 Views
3 Replies
Replies (3)
Message 2 of 4

MechMachineMan
Advisor
Advisor
http://modthemachine.typepad.com/my_weblog/2010/02/accessing-iproperties.html

--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes
Message 3 of 4

adam.nagy
Autodesk Support
Autodesk Support
Accepted solution

Hi Georg,

 

Have just written an article on copying material:

http://adndevblog.typepad.com/manufacturing/2015/05/copy-material-to-another-library.html

 

Cheers,



Adam Nagy
Autodesk Platform Services
Message 4 of 4

GeorgK
Advisor
Advisor

Hello Adam,

 

thanks for the solution.

 

Cheers

 

Georg

0 Likes