How can we have empty material assignment inside mechanical when importing a CAD assembly

Options
Erik Kostson
Erik Kostson Member, Employee Posts: 130
First Answer Name Dropper First Anniversary Ansys Employee
edited May 23 in 3D Design

Say we have a CAD assembly where parts have been assigned material properties. How can we then have an empty material assignment inside mechanical when importing the CAD?

Best Answer

  • Erik Kostson
    Erik Kostson Member, Employee Posts: 130
    First Answer Name Dropper First Anniversary Ansys Employee
    edited May 23 Answer ✓
    Options

    This is how it could possibly be done:

    1. Set material properties (see image below)
    2. Import CAD file
    3. Refresh the Model Cell (A3) from WB
    4. Go to Engineering data and CADMaterial (see libraries)
    5. Add all materials as needed
    6. Open Spaceclaim and run script (see below)
    7. Open mechanical

    Script

    mat = Window.ActiveWindow.Document.Materials
    locmat= mat.Values
    im=mat.Count
    for i in range(1,im):
       (locmat[i].Delete())
    
This discussion has been closed.