TAGGED: #ACT#AnsysACT#Ansys, script, spaceclaim
-
-
April 2, 2024 at 8:55 amNiklas SellmannSubscriber
Hello,
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 pmErik KostsonAnsys Employee
Hi
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.
- Data Center Simulation
- Unable to attach geometry 2024 R2
- Getting Mesh Faces With Specified Normal Via SpaceClaim Scripting (V241)
- How to provide blade angles in bladegen.
- Crash by using Script Editor
- plugin error failed to import assembly from spaceclaim
- DXF file loaded incorrectly
- Temperature’s Distribution not available in Refine Mode ?
- Overlapping contact face
- Thermoelectric Cooler Model
-
1181
-
488
-
487
-
225
-
201
© 2024 Copyright ANSYS, Inc. All rights reserved.