Detailed Drawings > Detailed Drawings > Running Drawing Programs > To Run the Drawing Program (Execute a State)
To Run the Drawing Program (Execute a State)
Along with the EDIT PROGRAM menu, the DRAWING PROGRAM text-tool window opens, listing the lines of the program. Using the commands in the EDIT PROGRAM menu, you can interactively add lines to the program, remove lines from it, step forward and backward, and modify it. As you make each change, the system updates the display of the drawing.
* 
You cannot modify a value that the program is driving (such as the value of a drawing user attribute, the sheet on which a draft entity should be). However, you can modify a value that the program is not driving if the program moves the view.
If you delete an item that the drawing program controls, the system automatically removes from the state the command in the program that controls that item.
If you convert a view to a snapshot, the system removes from their states all commands in the drawing program that control the view and its subordinate items.
The drawing program can only modify the drawing, not the models of the drawing.
When the program appears, the system positions the text-tool cursor after the last line executed. As you move through the program, you can change the display by choosing commands from the Set State menu on the Menu Manager. After you exit the DRAW PROGRAM menu, the system executes the program in its entirety and redisplays the drawing. It automatically updates the drawing program to reflect changes made to parts when you retrieve a drawing, switch to Drawing mode, or regenerate the drawing.
After you use one of the editing commands, the system reinterprets the entire text of the program, and re-executes the program up to the cursor.
If the interpreting is successful, it converts all parameter names, model names, and keywords to uppercase. In addition, the model suffix of a parameter appears automatically when needed (for example, if the drawing has more than one model).
If the interpreting is unsuccessful, the system informs you that an error has occurred and highlights the error line. It cannot execute any line that is not interpreted, so if you move the text-tool cursor into an uninterpreted area of the program, it does not execute any states and does not change the drawing. Until you correct the error, the system does not execute the program and make the changes that the program has made to the drawing.