Skip to Main Content
Need Support? Let’s guide you to the right answer or agent.
Status Future consideration
Workspace STAAD.Pro
Created by Guest
Created on Jun 19, 2025

[OpenStaad] Add a Design.DeleteDesignCommand function in open staad.

Currently, using the Design.AssignDesignCommand function to add a design command like "CODE CHECK" is ideal only for one execution using VBA. If you execute the code multiple times, the "CODE CHECK' command is added to the command equal to the number of times you executed the macro. My goal is to automate my analysis that every time a user is updating the model like adding new members, I can just execute a macro to re-apply the "CODE CHECK" to "all members" including the additional members without manually selecting the "CODE CHECK" command and assigning it to view. So, an additional function to delete an existing design command would be a good one. And you could add another function that list all the added commands, so that we can put a logic in our code that if say "CODE CHECK" exists in the commands, I can only delete the "CODE CHECK" command without affecting the other commands.

  • Admin
    Carlos Aguera
    Jul 2, 2025

    Thank you for posting this idea. This seems like a reasonable request. Basically you are suggesting that extending the design functions in OpenSTAAD with the ability to manage the design commands to compliment the AssignDesignCommand with functions that can get the list of members assigned to a given design command, and edit the list be assigning a new list using a set command.