Jump to content
0815

How to remove nodes from a set by usage of tcl

Recommended Posts

Hi everybody,

 

I try to add some nodes to a node-set by usage of tcl like this:

 

*createmark nodes 1 $nodeID
*appendmark nodes 1 "by face"
*entitysetupdate "NSET" nodes 1

 

This works perfectly!

 

But now I would like to remove nodes inside of a specific box. I tried this but it doesn't work ...

 

*createmark nodes 2 "by box" $x1 $y1 $z1 $x2 $y2 $z2 0 inside 0 1 0

*markintersection nodes 1 nodes 2

*deletemark node 1

*entitysetupdate "NSET" nodes 2

 

What am I doing wrong?

 

Thx in advance

 

Share this post


Link to post
Share on other sites

Hi tomislav

try this

 

*createmark nodes 1 "by set" NSET
*createmark nodes 2 "by box" $x1 $y1 $z1 $x2 $y2 $z2 0 inside 0 1 0
*markdifference nodes 1 nodes 2
*entitysetupdate "NSET" nodes 1

0815 and tinh like this

Share this post


Link to post
Share on other sites
14 hours ago, vipin said:

Hi tomislav

try this

 

*createmark nodes 1 "by set" NSET
*createmark nodes 2 "by box" $x1 $y1 $z1 $x2 $y2 $z2 0 inside 0 1 0
*markdifference nodes 1 nodes 2
*entitysetupdate "NSET" nodes 1

hi vipin,

 

it works:D

 

Thanks for your support!

vipin likes this

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...