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

Rohith Patchigolla
Rohith Patchigolla Member, Moderator, Employee Posts: 80
25 Answers 25 Likes 10 Comments First Anniversary

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: 80
    25 Answers 25 Likes 10 Comments First Anniversary
    edited October 27

    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.