![]() ![]() In addition to permitting a structured approach to programming, macros inside the resulting macro library can be called by toolbar buttons that employ the *USE command, as long as the *ULIB command is not reset inside any of the macros or by other user actions or macros. Comments on each section follow the Label for the block that is a subsidiary macro for the *USE command. ![]() The principal trick in getting this technique to work is to immediately follow each /EOF command that ends a “block” with the Label for the next *USE macro block. These subsidiary macros are positioned after the “main” macro ends with the /EOF command. It calls “subroutine” macros inside itself with the *USE command. The *ULIB command calls its own file using its own file name. ![]() This example starts in a “main” routine by declaring itself as a macro library with the *ULIB command. The technique keeps all related macros inside one source file. This can aid simplicity in version control and distribution. mac files stored in one or multiple locations-all can be packaged in a single. A “package” of macros for one purpose does not have to consist of a series of. There is a way to write APDL programs that contain their subroutines in a single file, taking advantage of the *USE command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |