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
    Advanced Member

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

    Need TCL/TK learning advice

    The big difference here stands on the specific functions HM uses, which are in a sense independent on the TCL language as it works as an additional package for the language. If you know the basics of programming and the syntax for TCL, I would suggest that you explore as much as you can the command.tcl file written by HM. This file is really useful as it records any action you do in the GUI into to a code format. Then looking at it, you can change the necessary arguments and others. To learn more about the available functions you can use with HM, please consult the "Scripts > Commands and Functions" part of the HM help. There you can understand the inputs for the HM functions and other capabilities you might be looking for. Hope this helps. Jefferson Vieira
  2. Jeffersondhv

    Clear Memory During Script Run

    Is there any tool that would help to identify the functions that are taking the memory or just the time to execute? Something like we have for Matlab, if possible.
  3. Jeffersondhv

    Clear Memory During Script Run

    Unfortunately I cannot post the script here. But basically it loops over every component to extract some mesh quality attributes. Functions like the following are used: *elementtestinterangle *elementtestlength hm_getthickness hm_getmass I say that it seems like HM is saving in memory more info than requested because the RAM runs out really quickly, but considering the output I'm requesting/getting, it's only creating a file with few KBs. And as the same variables are using during the loop, they should be getting overwritten, which would prevent running out of RAM. So my guess is that at each loop, each operation, HM is saving in RAM all the info related to that component, even info not requested, and as it loops through the components, the memory just keeps building up. I hope it helps clarify the situation. Thank you
  4. Hello all, I'm running a script in a very large assembly, where this script loops through every component retrieving a number of information for each of them. The information I need is not that heavy, but it seems like HM saves in its memory much more data than what I'm requesting for each component. Then it ends up crashing due to the lack of memory. Is there any way to clear HM memory while a script is running? Thank you
  5. If you want to have different properties for different elements, you need to create individual components for each element you want to vary the properties. There could be some other way to do this, but I'm not aware of it. Hope this was helpful. Best regards, Jefferson Vieira
  6. Jeffersondhv

    Duplicate elements in original component

    Check this post: If you're looking for something different, let us know. Best regards, Jefferson Vieira
  7. Jeffersondhv

    Get Temp Node IDs From Last Operation

    SOLVED IT From this topic I could see that the usage of hm_entityrecord can help me on this case. For documentation purposes, here follows the usage: hm_entityrecorder nodes on; <create components> hm_entityrecorder nodes off set num_nodes [hm_entityrecorder nodes count] set nodes_ids [hm_entityrecorder nodes ids]
  8. Hello guys, I have some points in my model that will be used to create connectors. In order to handle them in a proper manner, I need to transform them into nodes and them get the node IDs to create a node set. To create the nodes from the points I'm using this function: *nodecreateatpointmark 1 However this is one of the undocumented functions, thus I don't know if it has other options to use, because using as I showed does not return me the node IDs. I also tried to use hm_latestentityid but this one gives me only one node at a time and has a limitation to retrieve only the last 99 nodes and I might need more than that in most of the cases. Does anybody know a solution for this? Thanks in advance, Jefferson Vieira
  9. Jeffersondhv

    Catching An Error

    If no result file is written, then all the marks and node lists you create after the analysis is complete are blank. So you could try to identify if the result file exists, or simply check if these marks are blank.
  10. Jeffersondhv

    GUI for HyperMesh Script

    Ok, that's not too bad. Thanks for your help tinh!!!
  11. Jeffersondhv

    Catching An Error

    I see two things you can do: 1. Identify the error reading the result's file and act accordingly; 2. Identify the root cause from the meshing process and act from there. Do you know which mesh issue is causing this problem?
  12. Jeffersondhv

    Catching An Error

    So what is the action you need the user to take when the analysis fail?
  13. Jeffersondhv

    GUI for HyperMesh Script

    And is there a way to suppress this command to change the framework? (Because it takes the user to another "page" when this command is called) Or just embed it within the Collector widget?
  14. 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
  15. 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?