Vba cst microwave studio3/17/2024 ![]() ![]() You will need to declare an index variable i to replace the global index i you used in constructing the model. Put a For loop around the commands that: create your spiral bricks, add the bricks together, and rotate them onto the four faces of you unit cell. You should become familiar with the CST VBA language reference. One way to do this is to delete any items in the history list and click update. While you debug your script you will frequently have to remove any objects it creates so that you can run the script again without conflicts between existing objects and objects the script is creating. Now select your macro in the Macro menu to recreate your unit cell. When you have confirmed that the macro appears in the Macro menu and see that it contains all the steps from your model, you can delete all the steps in the history list and click update. To save the macro (and perform many other operations) right click in the area displaying the macro script. The macro script will have a tab in the work area where you can edit the macro. This macro will now appear at the bottom of the Macros menu. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |