🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

interactive 2D mesh

User: "Pandurang"
Altair Community Member
Updated by Pandurang

Hi All

 

working on 3D flange having holes..i m trying to write script for 3D mesh of it..

process i am following is :

1. washer split for holes.

2. 2D Automesh surfaces

3. Solid map

 

I want 2D Automesh process to be interactive so that user can adjust mesh around holes to create good washer..

How can i do this..?

 

Regards,

PD

 

Find more posts tagged with

Sort by:
1 - 5 of 51
    User: "QuyNguyenDai"
    Altair Community Member
    Updated by QuyNguyenDai

    Can you do this without script?

    User: "Pandurang"
    Altair Community Member
    OP
    Updated by Pandurang

    yes

    User: "tinh"
    Altair Community Member
    Updated by tinh

    When you use hm_pushpanel to invoke panel 'automesh' to help user to adjust mesh, hm_pushpanel will return soon and not wait for user finish his work.

    => do not use hm_pushpanel, you need to pack all remained script into hm_setpanelproc

    example:

     

    eval *createmark surfs 1 $::FlangeSurfs

    set Holes [p_GetHoles surfs 1]

    hm_entityrecorder surfs on

    p_SplitHoles $Holes

    hm_entityrecorder surfs off

    eval lappend ::FlangeSurfs [hm_entityrecorder surfs ids]

    hm_setpanelproc {

         hm_setcollector automesh [hm_getcolnumber automesh 1] surfs

         hm_initpanel {

              eval *createmark surfs 1 $::FlangeSurfs

              hm_activateitem [hm_getitemnumber automesh mesh]

         }

         hm_callpanel automesh

         eval *createmark elems 1 {'by surface'} $::FlangeSurfs

         p_SolidMap elems 1

    }

    User: "Pandurang"
    Altair Community Member
    OP
    Updated by Pandurang

    Hi Tinh ,

     

    This info is really helpful but..

     

    p_GetHoles 

    p_SplitHoles 

    p_SolidMap 

     

    These are invalid commands....

     

    User: "tinh"
    Altair Community Member
    Updated by tinh

    Of course, you have to write them. I just suggest a flow.