How to use CAD Parameter in Mechanical API Scripting?

Hello everybody,

i am currently working on way to automate a parametric study in ansys, therefor i am using mechanical API scripting. 

I have created Geometry with SpaceClaim and added some Parameters. Now i want to retrieve these Parameters in the Mechanical API Script.

I'd like to give a simplified example for what i want to achieve: I am creating a Geometry with a Number of N holes. N is a Parameter which can be defined in workbench parameter set. Then i want to edit my Mechnical Analysis and reuse this Parameter N in an API Skript, e.g. to create a load which depends on this parameter or to make the meshsize depending on it. If there is simple command, i coundt find it out yet.

Thanks in advance for any information on this.

Answers

Sign In or Register to comment.