How to delete corrupt static structural systems from WB Project page?

Options
Rohith Patchigolla
Rohith Patchigolla Member, Moderator, Employee Posts: 115
First Answer First Anniversary Name Dropper Solution Developer Community of Practice Member

I see that one of the system in my WB project is corrupted and I cannot either delete it (when I delete it, the entire project is gone)

Comments

  • Rohith Patchigolla
    Rohith Patchigolla Member, Moderator, Employee Posts: 115
    First Answer First Anniversary Name Dropper Solution Developer Community of Practice Member
    edited October 2023
    Options

    Here are the steps again to delete a corrupt system from the WB.

    1. RMB on Corrupt System --> Properties. Then we can identify the system ID. Check the ID for individual components as well (Engineering Data, Geometry, Model, Setup, Solution and Results). They should all also have the same number. This information will be used in the last step.
      For the example below, the System ID is "Sys 3"

    1. In WB, go to File --> Scripting --> Open Window command and paste the script below. Please use the system ID from step 1 in the first line

    badSystem = Project.GetSystem("SYS 3")
    badSystem.Components = []
    badSystem.Delete()

    1. Save, close and reopen Project and try opening other existing Mechanical systems.

    If everthing is working well, ignore Step 4. If there is some problem saving, then close the project and try Step 4.

    1. Advanced step: Close the project, and then open *.wbpj file with Notepad and delete all line as below. These lines correspond to the system we deleted. 5 lines for each subcomponent, starting with . Also, please note that the ID corresponding to the System may not be always same as the ID corresponding to the individual subcomponents.

    Save notepad file. Then you could open the project again.

  • Josselin GUEDON
    Josselin GUEDON Member Posts: 3
    Name Dropper First Comment
    edited April 26
    Options

    Dear @Rohith Patchigolla ,

    Thank you for sharing this.
    I might do something wrong but in my case in version 2023R2 or 2024R1, step 4 leads everytime to errors.
    I've tried to link the reference ids in order to delete everything that is linked together but didn't succeed.

    Could you let me know if something else has to be taken in account in this process ?

    Thank you in advance.

    Josselin