Ansys Learning Forum › Forums › Discuss Simulation › 3D Design › How to execute SpaceClaim script within ACT? › Reply To: How to execute SpaceClaim script within ACT?
July 27, 2021 at 12:54 pm
Rajesh Meena
Ansys Employee
Hello
The SpaceClaim scripting function can not be used in ACT app without importing the spaceclaim libraries.
I would recommend you to first of all use ACT console in SpaceClaim for developing/Testing the code. Please refer to the help manual to check the parent libraries to be imported for a function (C:\Program Files\ANSYS Inc\v211\scdm\SpaceClaim.Api.V19).
For example, to use Direction.Create(0,0,1) you can simply search for this function in the help manual to find that you would need SpaceClaim.Api.V19.Geometry to be imported.
#-------------------------------------------------
SpaceClaim.Api.V19.Geometry as geometry
geometry.Direction.Create(0,0,1) #Create a direction object
#-------------------------------------------------
Similarly, List is nothing but a .Net array of type System.Collections.Generic.List.
Hope it helps.
Thanks Rajesh
The SpaceClaim scripting function can not be used in ACT app without importing the spaceclaim libraries.
I would recommend you to first of all use ACT console in SpaceClaim for developing/Testing the code. Please refer to the help manual to check the parent libraries to be imported for a function (C:\Program Files\ANSYS Inc\v211\scdm\SpaceClaim.Api.V19).
For example, to use Direction.Create(0,0,1) you can simply search for this function in the help manual to find that you would need SpaceClaim.Api.V19.Geometry to be imported.
#-------------------------------------------------
SpaceClaim.Api.V19.Geometry as geometry
geometry.Direction.Create(0,0,1) #Create a direction object
#-------------------------------------------------
Similarly, List is nothing but a .Net array of type System.Collections.Generic.List.
Hope it helps.
Thanks Rajesh