How to add materials from material library in Mechanical with ACT?

Member, Moderator, Employee Posts: 481
100 Answers 250 Likes 100 Comments Second Anniversary
✭✭✭✭
edited June 2023 in Structures

How to add materials from material library in Mechanical with ACT?

enter image description here

Tagged:

Welcome!

It looks like you're new here. Sign in or register to get started.

Best Answer

  • Member, Moderator, Employee Posts: 481
    100 Answers 250 Likes 100 Comments Second Anniversary
    ✭✭✭✭
    Answer ✓
    1. cmd = """
    2. library1 = EngData.OpenLibrary(
    3. Name="Composite Materials",
    4. Source="Composite_Materials.xml")
    5. system1 = GetSystem(Name="SYS")
    6. engineeringData1 = system1.GetContainer(ComponentName="Engineering Data")
    7. matl1 = engineeringData1.ImportMaterial(
    8. Name="E-Glass",
    9. Source="Composite_Materials.xml")
    10. """
    11.  
    12. ExtAPI.Application.ScriptByName('journaling').ExecuteCommand(cmd)
    13. ExtAPI.DataModel.Project.Model.RefreshMaterials()

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.