Splitting CAD file

vipin_22401
vipin_22401 Altair Community Member
edited October 2020 in Community Q&A

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

 

 

 

Tagged:

Answers

  • Imoto
    Imoto
    Altair Employee
    edited May 2018

    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_22401
    vipin_22401 Altair Community Member
    edited May 2018

    Hi Imoto,

    Thanks a lot!!

    It works :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />