Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


Jeffersondhv last won the day on January 8

Jeffersondhv had the most liked content!

About Jeffersondhv

  • Rank

Profile Information

  • Gender
  • Country
    United States
  • Are you University user?

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Jeffersondhv

    GUI for HyperMesh Script

    I've been playing around with this collector, but I still didn't get to do what I intend. Right now when I use HmMarkTool or HmEntSelCol I can only select the entities one by one, e.g. I cannot create a bounding box in the UI to select the entities inside the box. How can this be achieved? I also found this UI manager called Process Studio and I've been trying to make something work from that. If I add a collector from that and export a TCL code, I can see the script created to generate that collector, however I'm not being able to run it properly. So I have the following process on the script: ::hw::pmgr::${::hw::pmgr::namespace}::DisplayWnd ::hw::pmgr::${::hw::pmgr::namespace}::Exec ::hw::pmgr::${::hw::pmgr::namespace}::SetDataInDataModel ::hw::pmgr::${::hw::pmgr::namespace}::GetDataFromDataModel ::hw::pmgr::${::hw::pmgr::namespace}::OnDataModelChanged From that, what do I need to define in order to get this working? Also, what do I need to define in terms of "hw::pmgr::namespace"? Thank you
  2. Jeffersondhv

    GUI for HyperMesh Script

    Good, that woks. Just not sure the format the callback must have. How should it be defined to retrieve elements or components?
  3. Jeffersondhv

    Panel for Constraint Definition

    You can use the following functions to get simple user input: hm_getfloat hm_getint hm_getstring
  4. Jeffersondhv

    Getting Access To Aspect Ratio Values

    Yes, check the help linked with the functions mentioned to see the options you have:
  5. Jeffersondhv

    GUI for HyperMesh Script

    Hey @tinh, can you help me with that? Thank you.
  6. Jeffersondhv

    Getting Access To Aspect Ratio Values

    There is a variety of functions you can use to achieve this: *elementtestaspect Help hm_createmark elems 1 "greater than value" "aspect 3" Help hm_getelemcheckbounds Help I hope this can help you achieve what you intend.
  7. Ok, so basically you want an user input to decide which type of selection must be used. This can be done in a variety of ways, using simpler forms or the more elegant ones with graphic interface. Using a simple yes or no question, this would be like so: set answer [tk_messageBox -message "What type of load would you like to input? \n Yes: Force \n No: Pressure" -type yesno -icon question] switch -- $answer { yes { "Code for Force load" } no { "Code for Pressure load" } } If you want to have something nicer (which requires more work), you can use for example a radiobutton. But in this case you need to build the hole interface for the user navigation like confirmation and return buttons and maybe even other options. A code snippet to use a radiobutton would be like so: #Get preview frame set w [hwtk::demo::getpreviewframe] set w [hwtk::frame $w.frame] pack $w -anchor nw -padx 4 set ::feedback "" set ::currentLoad "Force" pack [hwtk::labelframe $w.lf -text "Select the type of Loading" -padding 2] -anchor nw foreach load {Force Pressure} { pack [hwtk::radiobutton $w.lf.b$load -text $load -variable ::currentLoad \ -value $load \ -command "set ::feedback $load" \ -help "$load"] -side top -pady 2 -fill x } pack [hwtk::label $w.label -text "Active Load:"] \ [hwtk::label $w.label1 -textvariable ::feedback] -side left -pady 4 Hopefully this is helpful.
  8. Not sure if I understand you end goal. So you have a list of elements/nodes in a file and then you want to mask these entities?
  9. Jeffersondhv

    GUI for HyperMesh Script

    Thanks for you answer tinh. However I'm not clear how this should be handled to use in one of my codes. Should I use exec to call the file or something else?
  10. Jeffersondhv

    GUI for HyperMesh Script

    Ok, I just replaced "My Panel" on the drawpanel line to $w and it worked fine. Now I'm trying to have in my GUI something like showed below to select entities: How can this be achieved? Thank you
  11. Jeffersondhv

    GUI for HyperMesh Script

    Hi tihn, With this addition I keep getting the following error: My Panel does not exist. while executing "error "$frame does not exist."" ("drawpanel" arm line 11) I'm sorry for so newbie question, but I'm struggling a little to work with GUI.
  12. Jeffersondhv

    Update progress bar in GUI

    Ok, got it. I'll shall use 100.0 instead of 100 then. Thanks tinh
  13. Jeffersondhv

    Update progress bar in GUI

    I'm trying to output the progress of my script in the user message field, but it gets stuck on 0% till the end of the run even tough I'm using update. Here follows the code I'm using: proc statusMsg { current total } { ## Displays progress pecentage set percnt [ expr $current/$total*100 ] set str "%" hm_usermessage "In progress ($percnt$str)" update } I even tried using hm_blockmessages 1 before and hm_blockmessages 0 after the code execution, but it didn't work. How can I fix this? Thank you.
  14. Jeffersondhv

    Script to Compare Geometry Files

    I didn't know about this option. Thanks for letting me know about it. However as I could customize the script as desired, it suits my needs better. But it's good to know about it. Thank you tinh
  15. Hello all, I'm trying to write a code to compare the geometries of two different files. I'm able to put both files together, where the reference has its components with a modified name like COMPNAME_REF (added "_REF" to the name). This way I'm able to match the names of the components, which should be the same leaving apart the modification applied in the name. From there my intention was to compare the matched geometries' position, orientation and volume/surface area to check for alterations. To do so, I'm using the following functions: hm_getcentroid, hm_getvolumeofsolids However, some components present errors when trying to get their centroid or volume, giving me messages like: hm_getcentroid: bad geometry found. hm_getvolumeofsolid: calculation failure. But the solids do not have any visible mistake. What could be causing this? Thanks, Jefferson