Creating section plane with script
Hi,
I would like to create section plane with scripting in Ansys Mechanics. I did a research but did not found anything or forum nor it worked.
How I could do that? Thanks.
Comments
-
This is an example from the documentation here:
https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v232/en/act_script/mech_apis_Graphics_CreatingSectionPlanes.html?q=SectionPlanefrom Ansys.Mechanical.Graphics import SectionPlane
location = [100, 150, 255]
sectionPlane = SectionPlane()
sectionPlane.Center = Point(location, 'mm')
sectionPlane.Direction = Vector3D(0, 0, 1)
sectionPlane.Name = "newPlane"
sectionPlane.Type = SectionPlaneType.AgainstDirection
Graphics.SectionPlanes.Add(sectionPlane)
location = [100, 150, 200]
sectionPlane.Center = Point(location, 'mm')0