CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Mesh Generation & Pre-Processing Software > ANSA

Help with Script

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 3, 2019, 12:55
Default Help with Script
  #1
New Member
 
Join Date: Jun 2019
Posts: 2
Rep Power: 0
bhmin is on a distinguished road
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?
bhmin is offline   Reply With Quote

Old   June 3, 2019, 20:15
Default
  #2
New Member
 
Join Date: Jun 2019
Posts: 2
Rep Power: 0
bhmin is on a distinguished road
Nevermind I got it.
bhmin is offline   Reply With Quote

Old   June 14, 2019, 10:00
Default
  #3
Member
 
Mahmoud Aboukhedr
Join Date: Feb 2014
Location: London
Posts: 40
Rep Power: 12
Mahmoud_aboukhedr is on a distinguished road
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.
Mahmoud_aboukhedr is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 10:58.