Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

I am attempting to set bolt pretension via Python based extension

    • OpticsinAlabama
      Subscriber

                  # Create Beam Preload in the selected analysis
                  
                  pret = ExtAPI.DataModel.Project.Model.Analyses[0].AddBoltPretension()
                  #Set Scoping Methodto Beam Connection
                  pret.InternalObject.GeometryDefineBy = 19
                  beamID=allbeams[yyy].ObjectId
                  pret.InternalObject.BeamConnectionSelection=beamID
                  #The Beam Connection definition is now set
                  beam_pretensions=DataModel.GetObjectsByType(DataModelObjectCategory.BoltPretension)
                  beam_pretensions[yyy].Name=Beam_name

      Ansys does not adhere to their "object.ScopingMethod" here....with this arcane code you set, nevertheless I am successfully creating the Pretension objects.

      However I do not know how to set the STEP (load, lock etc) and the actual preload. The documentation is scarce on this.

      Can someone help?

    • OpticsinAlabama
      Subscriber

      I am having problems knowing how to use the ACT debugger. Is there a training video available that would help?

    • erko
      Subscriber


      USe: SetDefineBy - for more details See this post I made:

      https://discuss.ansys.com/discussion/10668/how-to-lock-bolt-pre-tension-using-mechanical-scripting
      Any more questions post here as it is for scripting:
      https://discuss.ansys.com

      erko

       

    • erko
      Subscriber

      1234

    • erko
      Subscriber

      test

Viewing 4 reply threads
  • You must be logged in to reply to this topic.
[bingo_chatbox]