-
-
April 4, 2024 at 1:27 pmUdeep ShahSubscriber
Hi there,
I am trying to generate the mid surface for a selected body using API.
But after browsing the library it seems like there is no functionality for that, there is only functionality to get the mid surface of a body that has already been generated (body.GetMidSurfaceAspect()). Am I wrong about this or is there another method to get the midsurface through the API?
-
April 5, 2024 at 5:26 amDevendra BadgujarForum Moderator
Hello Udeep,
Let me check and get back to you on this.
Regards,
Devendra
-
April 8, 2024 at 10:58 amDevendra BadgujarForum Moderator
Hello Udeep,
This is only exposed in the scripting API. If you would like this in C#, you will have to rework the logic of this. This might be possible to record using Script recorder in SpaceClaim as shown below:
options = MidsurfaceOptions()
options.Group = Falsecommand = Midsurface(options)
command.AddMatchingFacePairs(FaceSelection.Create(Face1, Face2))
result = command.Execute()or based on an ionterval
command.AddFacePairsByRange(Body1, MM(0.91), MM(1.6)
Regards,
Devendra
-
April 12, 2024 at 6:01 pmUdeep ShahSubscriber
Hello Devendra,
Thanks for the help, I was able to get the mid surface from C# code working. The only issue is that it sometimes generates a different midsurface for certain solids even though the min and max thickness ranges are the same. Is there a way to set the thickness tolerance for the API?
-
- The topic ‘Spaceclaim API C# – Generate Midsurface’ is closed to new replies.
- Data Center Simulation
- Automating Name Selections in SpaceClaim for Large Grid Arrays
- 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
- DXF file loaded incorrectly
- plugin error failed to import assembly from spaceclaim
- Temperature’s Distribution not available in Refine Mode ?
- Overlapping contact face
-
1161
-
488
-
486
-
225
-
201
© 2024 Copyright ANSYS, Inc. All rights reserved.