TAGGED: #ACT#AnsysACT#Ansys, script, spaceclaim
- 
		
			
- 
April 2, 2024 at 8:55 am
Niklas Sellmann
SubscriberHello,
i try to create an ACT wizard extension for spaceclaim. I already wrote a code that creates a geometry in spaceclaim and it works fine when i start it directly in the scripting extension of spaceclaim.
For the ACT version i have an issue with the creation of a planar body. The following part of the code creates an error:
import clr
import units
import timeclr.AddReference("SpaceClaim.Api.V23")
from SpaceClaim.Api.V23.Geometry import *
from SpaceClaim.Api.V23.Modeler import *...
#polGen is a List[ITrimmedCurve] of curvesegments
refPlane=Plane.PlaneZX
face1 = PlanarBody.Create(refPlane, polGen)
body1= face1.CreatedBody...
The row, where PlanarBody.Create is executed, creates the following error in the ACT Log console:
TypeError: expected Plane, got Plane
I can't find a solution to this problem, does anybody know how to solve this?
 - 
April 2, 2024 at 2:13 pm
Erik Kostson
Ansys EmployeeHi
This should help (change v19 to v23 in the below script).
https://discuss.ansys.com/discussion/653/how-to-import-spaceclaim-api-packages-in-act
Should you have any more questions post it in that forum (dedicated to scripting)
 
 - 
 
- The topic ‘Spaceclaim Scripting TypeError: expected Plane, got Plane’ is closed to new replies.
 
- Project lines/edges into a face with the direction normal to the face
 - No preview in explorer with scdox file
 - Multiple Instances of SpaceClaim taking multiple licenses
 - Issues after installing new service pack 2024R1 (sp5)
 - Spaceclaim file reference error
 - Add-in Error Excel
 - Problems with loading my Discovery Mesh into Fluent
 - Missing SubDivWrapper.dll
 - Fileformats
 - Discovery 2025r2 failed to initialize
 
- 
                        
                        4167
 - 
                        
                        1487
 - 
                        
                        1363
 - 
                        
                        1194
 - 
                        
                        1021
 
© 2025 Copyright ANSYS, Inc. All rights reserved.