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.
- FSAE CFD – Lesson 1 Preparation question (Using Discovery)
- Project lines/edges into a face with the direction normal to the face
- Script for subtracting models
- No preview in explorer with scdox file
- Multiple Instances of SpaceClaim taking multiple licenses
- Spaceclaim file reference error
- Issues after installing new service pack 2024R1 (sp5)
- Add-in Error Excel
- Problems with loading my Discovery Mesh into Fluent
- Missing SubDivWrapper.dll
-
3907
-
1414
-
1256
-
1118
-
1015
© 2025 Copyright ANSYS, Inc. All rights reserved.