×

Notice

The forum is in read only mode.

scripting

More
15 years 1 month ago #3043 by Andy Foan
Replied by Andy Foan on topic Re:scripting
Step1

Attachment Study_1.zip not found

Attachments:
More
15 years 1 month ago #3044 by Andy Foan
Replied by Andy Foan on topic Re:scripting
Step 2

Attachment Study_2.zip not found

Attachments:
More
15 years 1 month ago #3045 by Andy Foan
Replied by Andy Foan on topic Re:scripting
Step 3

Attachment Study_3.zip not found

Attachments:
  • Nicky
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
15 years 1 month ago #3053 by Nicky
Replied by Nicky on topic Re:scripting
great! thanks!

just one thing: do I have to create the script from scratch or can I do everything on the GUI and then find the script which does the same thing I have done?<br /><br />Post edited by: Nicky, at: 2009/06/17 16:48
More
15 years 1 month ago #3062 by kwou
Replied by kwou on topic Re:scripting

Just one thing: do I have to create the script from scratch or can I do everything on the GUI and then find the script which does the same thing I have done?


As Alessandro already stated:
In the Salome GUI, you have the command:

&quot;Dump study&quot; (or ctrl D)

It creates a python script that you can execute again reimporting it in Salome. I think it is possible to change some parameters in the script and to execute it automatically, but I don't know how to do that.

** kind regards - kees<br /><br />Post edited by: Kees Wouters, at: 2009/06/18 10:51

Interest: structural mechanics, solar energy (picture at 'my location' shows too little pv panels)

--
kind regards - kees
More
15 years 5 days ago #3262 by JMB
Replied by JMB on topic Re:scripting
Nicholai Chapman wrote:

Hi! I need to mesh a geometry several times so I would need to do it automatically. Is it possible to script so that I can use Salome to do this? From where would I get the commands? thanks!


Hello Nicolai,

Version Salome 5.1.1 introduces the ability to define variables that can be the basis of generating geometry. It allows one to alter the geometry when the values are changed.

For example one could define:

Length: 20
Width: 30
Height: 40
Radius: 5

Then a filleted box can be created using these variables rather than numeric values (as in older Salome versions). Changing the values of any or all these variables and regenerating the solid now will display the altered shape and size! This is a much anticipated feature which has finally made it to the 5.1.1 release.

I have only briefly played around with this feature. See if that is what you are looking for.

regards,
JMB
Moderators: catux
Time to create page: 0.144 seconds
Powered by Kunena Forum