Click the Record Code button in the
Code section of the Method Editor ribbon to record a sequence of operations that you perform using the model tree, as shown in the figure below.

To stop recording code, click one of the Stop Recording buttons in the ribbon of either the Model Builder or the Application Builder.

By using Data Access, you selectively access various settings in the Model Builder, from the Application Builder. For example, you can set the values of the
Heat transfer coefficient and the
External temperature properties of the busbar tutorial model used in the documents
Introduction to COMSOL Multiphysics and
Introduction to the Application Builder.

To generate similar code using Record Code (
Data Access is not used when recording code), follow these steps:
To generate code corresponding to changes to the application object, use Record Code or
Record Method, then go to the Form Editor, and, for example, change the appearance of a form object. The following code corresponds to changing the color of a text label from the default
Inherit to
Blue: