|
[Sponsors] |
August 4, 2020, 05:48 |
Ansa duplicate elements
|
#1 |
New Member
Sumit Patel
Join Date: Mar 2020
Posts: 8
Rep Power: 6 |
Hello..how to find duplicate elements through script in ansa ??
|
|
October 19, 2020, 05:47 |
|
#2 |
New Member
Join Date: May 2014
Posts: 21
Rep Power: 12 |
Hi, you may try the following:
Code:
# PYTHON script import os import ansa from ansa import * from ansa.base import checks, Check def checkDuplicate(): dubl = checks.general.DuplicateElements()#takes no arguments dubl.separate_by = "GEOM/FE" res = dubl.execute(exec_mode = Check.EXEC_ON_VIS, report = Check.REPORT_NONE) report = res[0] if report.issues: for issue in report.issues: title = issue.description print('Duplicate elements found. Applying fix.') issue.try_fix() else: print('No duplicate elements found.') def main(): checkDuplicate() if __name__ == '__main__': main() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SU2-7.0.1 on ubuntu 18.04 | hyunko | SU2 Installation | 7 | March 16, 2020 04:37 |
What are entities, elements, property, ENT and PID in ANSA? | granzer | ANSA | 1 | January 17, 2020 12:03 |
ANSA says " 2nd Order elements are not supported." | Sheldon Lee | ANSA | 3 | August 4, 2017 10:49 |
Ansys SIG$ILL error | loth | ANSYS | 3 | December 24, 2015 05:31 |
CFX4.3 -build analysis form | Chie Min | CFX | 5 | July 12, 2001 23:19 |