Jump to content

Recommended Posts

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..?





Share this post

Link to post
Share on other sites

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



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


brahmadev 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.

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...