Hi,
I created a structure macro that successfully generates my slot array to achieve this, I need to simulate a slot array in CST.
Due to the number of elements (approximately 128 elements, or 5 x 28), I prefer to use VBA to implement the entire structure and run an optimization algorithm with CST Studio Suite .
I have tested my VBA code in the Macro Editor, and it works fine.
However, I need to have this structure in the History list to prevent it from being deleted after each run of CST.
To achieve this, I created a structured macro that successfully generates my slot array. However, when I click on "Update" in the History window, I encounter the following error:
The error is unusual; it indicates an issue with declaring a variable, even though my macro does not start with "Dim Num_of_Coupling." Instead, it begins with the Main function.
How can I resolve this issue?
How can I change the size of the elements (after they have been created by a macro) using only the Parameter List window, without having to delete and recreate the slot array macro? This is crucial for performing a simple parametric update for the optimization algorithm in CST.
Thank you for your assistance!