Jump to content

Recommended Posts

Hi all,

 

I have a CAD file as shown in the image below. It is symmetrical about z-axis.

I need to trim the CAD into half and delete surfaces in other half.

 

Can anyone suggest the logic to select the surfaces in any half, i already have the code to split in half.

 

image.png.d149f21b5538ed0ad8e2a5779800860d.png

 

 

 

Share this post


Link to post
Share on other sites

Hi Vipin

 

You can use "by block" option in *createmark.

Here is sample code.

 

set blockname [::hwat::utils::GetUniqueName block "Dummy"];
*createsimpleblock $blockname 11 -100000 -100000 0.5 100000 100000 100000;
*createmark surfs 1 "by block name" $blockname;
*numbersmark surfaces 1 1;
*createmark blocks 1 "by name only" $blockname;
*deletemark blocks 1;
 

Thanks,

Imoto

vipin, llyle and Pandurang like 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...