TAGGED: Ansys Discovery, scripting, selection
-
-
December 1, 2020 at 7:33 am
daniel.nouxet
SubscriberHello,
I have to verify before launch a function if a point on a cuve or on an edge is available.
I start with the Sample exmple, PolygonMesh.cs:
protected override void OnUpdate(Command command) {
command.IsEnabled = Window.ActiveWindow != null && Window.ActiveWindow.ActiveContext.SingleSelection is IDesignBody;
}protected override void OnExecute(Command command, ExecutionContext context, Rectangle buttonRect) {
Window window = Window.ActiveWindow;
if (window == null)
return;var desBody = window.ActiveContext.SingleSelection as IDesignBody;
if (desBody == null)
return;DesignBody desBodyMaster = desBody.Master;
But I don't understand.
I try to undertand thanks to theAPI, but the description are to light for me.
Could you give me explanation ?
Regards.
-
December 1, 2020 at 10:07 am
Naresh Patre
Ansys EmployeeHello dNouxet
Help on API is available in the SpaceClaim_API.chm located in C:Program FilesANSYS Incv202scdmSpaceClaim.Api.V20 folder. There are some other library documents in this folder that you can check out. Other than this, I don't think there is any other documentation available.
-
- The topic ‘C# selection context’ is closed to new replies.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- pcb
- No longer possible to import f3d with 2023?
- line bodies and surface body shared topology
- How to chang unit in Ansys Discovery 2023?
- ANSYSLI Exited or could not read server port ANSYSLI_FNE_PORT
- SpaceClaim Script: Selection by FilterByBoundingBox
- Assignment of revolute joint
- Max/min over time results in AIM
- Axisymmetric model – Rubber seal
- To change language in Ansys Discovery
-
8832
-
4658
-
3159
-
1688
-
1482
© 2023 Copyright ANSYS, Inc. All rights reserved.