×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

delete datum points on Abaqus with python script

delete datum points on Abaqus with python script

delete datum points on Abaqus with python script

(OP)
Hi,
I have a list of n points a=[[1,2,3],[2,3,4],....] i need to delete this points on Abaqus with python script.
and i have another list of n points b where i want to applicat displacement on this points!
Can you help me please!!!

RE: delete datum points on Abaqus with python script

So what's the problem? Through the datum container you can check the coordinates and get the ID and then you can use the ID and delete them from the feature list.

Points for BC have to be reference points, not datum points. Creating them and applying a BC is also not hard. Just work yourself into scripting.

RE: delete datum points on Abaqus with python script

(OP)
for the Bc supper !
but for the deleting points i use this script but i'don't have result:
deletednoeud=[]
for m in range (len(noeud)):
if noeud[m][2]<zmin+1:
deletednoeud=deletednoeud+[noeud[m]]
delnoeud=p.DatumPointByCoordinate(coords=(deletednoeud[0])).id
for m in range (1,len(deletednoeud)):
delnoeud=delnoeud+p.DatumPointByCoordinate(coords=(deletednoeud[m])).id
p.deleteFeatures(('delnoeud',))

RE: delete datum points on Abaqus with python script

(OP)
thanks for the example but when i applicat them i have a python error KeyError:wire-2 in the line 31 .

RE: delete datum points on Abaqus with python script

Since I didn't had any wire in my example, I assume you've tried to use my script on your model.
That was not my intent. It was an example how to work on datum points on part level. Learn from the script and then create one that works for your model.

Use the python interpreter in /CAE to test things. print commands are useful and the TAB key to see further otions.

RE: delete datum points on Abaqus with python script

(OP)
how can i delete the parent feature without deleting its child features?

RE: delete datum points on Abaqus with python script

Usually that is not possible, because there is a direct dependency.

RE: delete datum points on Abaqus with python script

(OP)
so do you have another solution for this problem:
1-create n points
2-relate this points with wires
3-define a plan
4-define a cut extrude
5-and finally delete points below the plan
thanks for your help!!

RE: delete datum points on Abaqus with python script

If my understanding of your procedure is correct:
That won't work, since all initially selected datums are parents of the wire. So you can't delete any of those datums later.


But...
When you know the coordinates of the points that the wire should pass, why do you use datums to create the wire? Start the wire option and then enter the coordinates directly. Afterwards look into the .rpy file and take the python command to automate that process. With that method you don't need any datums.

RE: delete datum points on Abaqus with python script

(OP)
the problem that i don't know the points that the wire should pass,i have a list of n points that i will relate them with wires if the distance between two points less than a parameter

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources