You use the appData object to store custom application-related data in the model database. The appData object is an instance of an AbaqusAppData class. You can add any attributes to the appData object that are necessary to track information about your custom application. The following example illustrates how you can store the version number of your application on the appData object: import customKernel myAppData = customKernel.AbaqusAppData() myAppData.majorVersion = 1 myAppData.minorVersion = 2 myAppData.updateVersion = 3 You use the setAppData method to install an appData object as session.customData.appData and to associate it with your application name. For example: myAppName = ‘My App’ customKernel.setAppData(myAppName, myAppData) You can call the setAppData method only once per application name, which prevents unauthorized changes to the method. However, the setAppData method may be called multiple times using different application names to allow more than one application to register with the same model database. When the user saves a model database, Abaqus copies the session.customData.appData object to the mdb.customData.appData object. |