We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
Ansys Products

Ansys Products

Discuss installation & licensing of our Ansys Teaching and Research products.

How can I find and erase wrong parameter?

    • Jimmy
      Subscriber

      I cannot find parameter that I made a mistake in ANSYS SpaceClaim script. Sometime the parameter appears redundant in parameter set. Could you tell me how to find and erase them?unknown parameters and redundancy

    • Sampat Kumar
      Ansys Employee

       

      Hi Jinwhan,
      You should use the “Save project” button to save the parameters created in the SC if this SC tab is synchronized with the WB. If you only use the “save” option to save the project in the SC but haven’t saved the WB project, then this type of error occurs.

      If you do not see the parameters in Spaceclaim – > groups tab, but shows up in WB parameter set, you can use the script to delete the parameter.

      1. In Workbench project page, Go to File -> Scripting -> Open Command Window.
      2. Copy and paste the following commands and hit enter to delete the parameter.

      p2 = Parameters.GetParameter(“P2″)
      parameterizedEntity = p2.GetAssociatedEntityProperties().keys()[0]
      parameterizedProperty = p2.GetAssociatedEntityProperties()[parameterizedEntity][0]

      p2.Disassociate(parameterizedEntity, parameterizedProperty)

      p2.Delete()

      In the commands above, we are deleting a parameter named P2.
      p2 = Parameters.GetParameter(“P2″)
      You can change the name to delete a different parameter.

      Please let me know if you face any issues with it. 
      Regards,
      Sampat

       

       

Viewing 1 reply thread
  • The topic ‘How can I find and erase wrong parameter?’ is closed to new replies.