×

Notice

The forum is in read only mode.

scripting

  • paco_espinola
  • Topic Author
  • Offline
  • New Member
  • New Member
More
18 years 1 month ago #1155 by paco_espinola
scripting was created by paco_espinola
I realized that is no possible to post a script.

Even a small awk is rejected by this page.

Scripting is maybe the best tool to improve all the mesh and solvers.
More
18 years 1 month ago #1158 by Joël Cugnoni
Replied by Joël Cugnoni on topic Re:scripting
Hi,

there are 2 ways of posting a code or script.

Either:
use the CODE button (inserts the \"[ code ]\" markup) in the bar above the text area to encapsulate your code by keeping the formating.
Or
attach your code/script to the post in a ZIP file

see these examples

[code:1]

def Fonction(event):
global x1, x2, y1, y2, n,i,ligne,angle, x
x1, x2, y1, y2, n,i,ligne,angle,x = 0,0,0,0,0,1,480/2,0, 0
while n .....

[/code:1]

Attachment pygraph.zip not found

<br><br>Post edited by: admin, at: 2007/03/24 22:43

Joël Cugnoni - a.k.a admin
www.caelinux.com
Attachments:
More
17 years 2 months ago #1780 by Andy Foan
Replied by Andy Foan on topic Re:scripting
In Salome-Mech, what path do I save a python script file to so it can be started from the python window, and what do I type there to start the script file?
More
17 years 2 months ago #1783 by Andy Foan
Replied by Andy Foan on topic Re:scripting
Looks like the home\caelinux folder works ok, so put the script there in a text file called scriptfile.py then call it from the Salome python window by typing
&gt;&gt;&gt; import scriptfile
Moderators: catux
Time to create page: 0.136 seconds
Powered by Kunena Forum