-
-
April 4, 2024 at 1:27 pm
Udeep Shah
SubscriberHi 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 am
Devendra Badgujar
Forum ModeratorHello Udeep,
Let me check and get back to you on this.
Regards,
Devendra
-
April 8, 2024 at 10:58 am
Devendra Badgujar
Forum ModeratorHello 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 pm
Udeep Shah
SubscriberHello 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.
- Unable to attach geometry 2024 R2
- Data Center Simulation
- [SpaceClaim] STEP file size using Converter.exe
- How to do the snap fit insertion FEA?
- Spaceclaim 2024 error FNE activation failed
- Ansys Discovery Crashing vGPU (Reproducible)
- PMI Product manufacturing information in SpaceClaim/Discovery modeling
-
2788
-
965
-
851
-
599
-
591
© 2025 Copyright ANSYS, Inc. All rights reserved.