General Mechanical

General Mechanical

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

Capture image through command

    • Vikas Sablaniya
      Subscriber

      Hi everyone,

      I am trying to capture the image in modal acoustics through script commands in Ansys

      I try to write a command, but it does not have colours.

      .

       

      the code is

      /SHOW,PNG
      /VIEW,1,1,1,1
      /GFILE,800
      /REPLOT
      /IMAGE,SAVE,'current_image.png'
      /SHOW,CLOSE
      /RGB, INDEX,100,100,100,0

      What is wrong with the commands? I am trying to capture this type of image. 

      Thanks

    • Erik Kostson
      Ansys Employee

       

       

      Hi

      First do an EPLOT

      You need to use SET (e.g, set,1,1 for first mode) command in /POST1 to choose the mode.

      Then 

       

       

      plnsol,pres                     ! plot first mode if set,1,1 was used before

       

       

      See the help manual for more info and to go through in detail the free apdl course :

      https://innovationspace.ansys.com/product/intro-to-ansys-apdl-scripting/

      All the best

      Erik 

       

       

    • Vikas Sablaniya
      Subscriber

      Thank you

       

Viewing 2 reply threads
  • You must be logged in to reply to this topic.