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

Erik Kostson
Erik Kostson Member, Employee Posts: 209
50 Answers 100 Comments Photogenic 5 Likes
✭✭✭✭
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: 209
    50 Answers 100 Comments Photogenic 5 Likes
    ✭✭✭✭
    edited May 23 Answer ✓

    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.