|
[Sponsors] |
June 3, 2019, 12:55 |
Help with Script
|
#1 |
New Member
Join Date: Jun 2019
Posts: 2
Rep Power: 0 |
Hello everyone,
I'm trying to write a script on ANSA so that I can rotate and shift my design such that one surface is at XY=0 plane facing upward Z. Any idea functions I can use? |
|
June 3, 2019, 20:15 |
|
#2 |
New Member
Join Date: Jun 2019
Posts: 2
Rep Power: 0 |
Nevermind I got it.
|
|
June 14, 2019, 10:00 |
|
#3 |
Member
Mahmoud Aboukhedr
Join Date: Feb 2014
Location: London
Posts: 40
Rep Power: 12 |
Just to help others:
One can use the function below to apply any transformation Code:
def main(): base.CreateTransformTranslate(front_panel_incl, 120., 1., 0., 0.) where: 1st: object The entity to be translated. 2nd: float The translation distance. 3rd float The x component of the translation vector. 4th float The y component of the translation vector. 5th float The z component of the translation vector. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] ICEM CFD Replay Script Command | ANSYS_Newbie | ANSYS Meshing & Geometry | 2 | June 12, 2019 17:58 |
Split connectors at their intersection | FOUAD12 | Pointwise & Gridgen | 3 | October 8, 2018 10:42 |
ZR Effect in Autogrid5 as a script | parthiv1991 | Fidelity CFD | 0 | July 30, 2018 09:10 |
[Workbench] Run ICEM Script in Workbench Script | MIZOR | ANSYS Meshing & Geometry | 9 | April 4, 2018 07:45 |
CentFOAM Python Script Installation: Error | socon009 | OpenFOAM Installation | 2 | May 26, 2012 09:36 |