|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
santosh prasad
Join Date: Mar 2018
Posts: 1
Rep Power: 0 ![]() |
Hello all,
I am trying to set only desired PIDs to visible in ANSA, so as to perform penetration check command on those visible PIDs. Can anyone guide me in doing this using python scripting. Basically I am asking for the command in ANSA which is to be used. Thanks |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Join Date: Sep 2016
Posts: 9
Rep Power: 9 ![]() |
See the attached example script. You'll have to change the filename to just have the *.py extension.
Here's a brief explanation of the idea: 1. First, collect all PIDs using the ansa.base.CollectEntities() function. For more information, refer to the documentation in the scripting library 2. Filter the PIDs to just get the desired. This is usually done via the PID name or the id associated with it. 3. Show only the desired PIDs using the ansa.base.Or() function. For more information, refer to the documentation in the scripting library 4. Perform the desired checks! Alex |
|
![]() |
![]() |
![]() |
Tags |
pids, scripting, visible |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to rotate plane(360 degree) using ANSA scripting. | Renu123 | ANSA | 1 | March 14, 2018 18:26 |
What is the right file's extension format for Solidworks/Unigraphics to ANSA? | Hypermesher | ANSA | 2 | November 15, 2017 06:26 |
How to find center of model using ANSA Scripting? | Renu123 | ANSA | 5 | October 2, 2017 06:14 |
Ansa Python Scripting | Renu123 | ANSA | 1 | September 16, 2017 12:45 |
Ansa Python Scripting | Renu123 | ANSA | 2 | August 29, 2017 03:46 |