-
-
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
- Unable to attach geometry 2024 R2
- Getting Mesh Faces With Specified Normal Via SpaceClaim Scripting (V241)
- How to provide blade angles in bladegen.
- DXF file loaded incorrectly
- plugin error failed to import assembly from spaceclaim
- Crash by using Script Editor
- Overlapping contact face
- Thermoelectric Cooler Model
- Temperature’s Distribution not available in Refine Mode ?
-
1216
-
543
-
523
-
225
-
209
© 2024 Copyright ANSYS, Inc. All rights reserved.