Ansys Learning Forum Forums Discuss Simulation General Mechanical Named selections, scripting and modification of holes position on a plate: reg Reply To: Named selections, scripting and modification of holes position on a plate: reg

mohan.urs
Ansys Employee

Hey Tanmay,
The better approach would be use parameters in spaceclaim or discovery to change the relative distance using expressions to control position of holes and mechanical scripting to attach point masses using a python object.

Here are some references for it
Spaceclaim Parameters - 
Working with Parameters
Expressions, Functions, Quantities, and Units

Script for adding point masses - 
How to add point mass to a specified named selection with its properties defined in the script. — Community Forum

If you want to do it all through scripting i would suggest you use developer forum in the above link to search or create posts. It is similar to this forum but is more focoused towards scripting.

Regards,
Mohan Urs