Personal tools
You are here: Home Forum Use select lines and points with TUI

select lines and points with TUI

Up to Use

select lines and points with TUI

Posted by Jim S at February 09. 2010 00:53:03
I generate points and lines on the module GEOM. With a script: How do I select the lines and points created?

Thank you.

Re: select lines and points with TUI

Posted by pete Halverson at February 16. 2010 01:46:25

Could you please clarify your question or leave an example of what you want to do? It may help us resolve your issue better

Re: select lines and points with TUI

Posted by Dave McDaniel at April 06. 2010 18:06:41

i would like to be able to create partitions on my geometry and then have my script select the resulting edges and pts to create groups for boundary conditions.  is this possible via the tui?

abaqus has a python function called "findAt(x,y,z)" this allows you to automate the selection of various entities in one's model.

Re: select lines and points with TUI

Posted by Erwan ADAM at April 09. 2010 15:58:56

Hi Dave,

You can try the various GetSomething available in geompy (check the GEOM documentation -->
Python interface geompy.py --> linear documentation for geompy)
In you case :
        GetEdge(theShape, thePoint1, thePoint2):
        GetEdgeNearPoint(theShape, thePoint):
can fit your needs

Regards, E.A.

Python Interface geompy.py

Python Interface geompy.py

Python Interface geompy.py

Python Interface geompy.py

Re: select lines and points with TUI

Posted by Erwan ADAM at April 09. 2010 16:03:08

In the mail I receive there are four huge lines :

"Python Interface geompy.py

"

Strange !!

I you received them too, be aware it is not a subliminal message !

 

Re: select lines and points with TUI

Posted by Dave McDaniel at April 09. 2010 19:02:21

thanks for that answer E.A., i did see that NearPoint method while exploring the geompyDC.py file.  i bet it does the trick.

 

as for the 2nd post, say wha?

Powered by Ploneboard
Document Actions