Trim and Delete or move part inside other component

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

Hi

 

Let's say i have 3 components 

Let's Name as 1, 2, and  3.

2 Component is intersecting with other two components.

 

Now i want trim all these component at intersection.

i can do with *surfmark_trim_by_surfmark

 

here i want to delete or move the trimmed part or surfaces of 2 component which is inside surf volume of other two components (1 & 3)

 

Ho can i do this ?

 

Any idea Guys.

 

Thanks in Advance.

/profile/3195-tinh/?do=hovercard' data-mentionid='3195' href='<___base_url___>/profile/3195-tinh/' rel=''>@tinh /profile/43398-qnguyen-dai/?do=hovercard' data-mentionid='43398' href='<___base_url___>/profile/43398-qnguyen-dai/' rel=''>@Q.Nguyen-Dai/profile/49243-vipin/?do=hovercard' data-mentionid='49243' href='<___base_url___>/profile/49243-vipin/' rel=''>@vipin

/profile/97129-adriano-a-koga/?do=hovercard' data-mentionid='97129' href='<___base_url___>/profile/97129-adriano-a-koga/' rel=''>@Adriano A. Koga

Regards,

PD

Answers

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited August 2020

    My first question: can you do this task in interactive session?

     

  • Pandurang
    Pandurang Altair Community Member
    edited August 2020

    Yes I can!!

     

    Any idea how can we do this with script??

     

    Once 3 components got selected by user ..script should rest of the things...

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited August 2020

    Yes I can!!

     

    Any idea how can we do this with script??

     

    Once 3 components got selected by user ..script should rest of the things...

     

    Make one time all task you need and found all commands within the file 'command.tcl'

     

  • tinh
    tinh Altair Community Member
    edited August 2020

    I:D/emoticons/default_biggrin.png' srcset='/emoticons/biggrin@2x.png 2x' title=':D' width='20' /> think he knows file command.tcl 

    But he didn't know how to detect surfs 'inside' comps 1 & 3

     

    Check every surf of comp 2, take a point on each surf and from it get closest point on comp 1&3

    Check normal vector at the closest point if it is reversed then surf is 'inside'

    hm_getsurfacenormalatcoodinate is helpful

  • Pandurang
    Pandurang Altair Community Member
    edited August 2020

    I:D/emoticons/default_biggrin.png' srcset='/emoticons/biggrin@2x.png 2x' title=':D' width='20' /> think he knows file command.tcl 

    But he didn't know how to detect surfs 'inside' comps 1 & 3

     

    Check every surf of comp 2, take a point on each surf and from it get closest point on comp 1&3

    Check normal vector at the closest point if it is reversed then surf is 'inside'

    hm_getsurfacenormalatcoodinate is helpful

    Thanks /profile/3195-tinh/?do=hovercard' data-mentionid='3195' href='<___base_url___>/profile/3195-tinh/' rel=''>@tinh

    i will try this...

    Hope That should work...

     

    Actual scenario is ...I hv to create solid weld of comp 2 that will be in contact with 1 and 3 comps.

    with above script if worked

    1. I will mesh that surfs of comp 2 which are outside

    2. I will have to Mesh the trimmed surfs of comp 1 and 3 .... Organize this mesh to comp 2

    3. I got closed volume mesh....Make it solid (Tetra)

    4.  Becoz of trimming i got matched Mesh Surf for 2 & 3 or 2 & 1...So that i can create contact too..

     

    This is how whole script going to be...

     

    Regards,

    PD

     

  • Pandurang
    Pandurang Altair Community Member
    edited August 2020

     

    Make one time all task you need and found all commands within the file 'command.tcl'

     

     

    This is unexpected Answer Bro...But Still Thanks for Reply

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited August 2020

     

    This is unexpected Answer Bro...But Still Thanks for Reply

     

    What? Something is wrong with 'command.tcl'?

  • vipin_22401
    vipin_22401 Altair Community Member
    edited August 2020

    Hi /profile/48527-pandurang/?do=hovercard' data-mentionid='48527' href='<___base_url___>/profile/48527-pandurang/' rel=''>@Pandurang

     

    I dont know how exactly the components look like, but another approach would be to work with 'solids' instead of surfaces.

    Try if the boolean operations in solid edit works for you.