Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

With the macro the database can be imported first manually and afterwards using a shortcut.

View file
nameMaterial_Database_Macro.py

To use this macro for the first time, download the file above and save it in your workspace (or any other folder). To start this macro inside MSC Apex Generative Design, go to Macro → Play Macro and select the Material_Database_Macro.py. After the macro is played once the shortcut ctrl+F1 can be used.

...

In Options → Application Settings → Scripting & Customization a script can be set up for Post Model NewDefault. The Script Function Name has to be the same as in the script (in this case Material_database). Under Script File Name the script below has to be selected.

...

Once this is activated the script will be executed for every new time a default model is created.

...

The material database script can be edited with every text editor, thus material properties can be changed or added.

...