Jump to content

jcd

Members
  • Content Count

    70
  • Joined

  • Last visited

Everything posted by jcd

  1. The tcl command *set_meshedgeparams 0 1 0 does not seem to work in HM 2017 however it works just fine in 14. Is there any reason this could be happening and any way to correct it ? I am trying to use *set_meshedgeparams as a precursor command to *hmmeshspline Are any of the above commands deprecated in HM 2017 ? Thanks. Any help is appreciated.
  2. @tinh : This is brilliant! Exactly what I was looking to achieve. Thank you so much
  3. You can select it from the client selection dropdown in HyperView, Although I believe TableView was only introduced in HyperWorks 14.0
  4. Is there a command / option that we can use to enable word wrap in TableView cells. Right now, when a cell has data that is longer than its width, it just shows "..." at the end instead of the actual data when I publish the TableView window to an html file. It shows up correctly when I publish a .ppt but not in an html. Any help is appreciated. Thank you.
  5. How could we insert an image into TextView using the <img> tag ? I tried adding it to the HTML in the TextView editor, however the image does not show up on Evaluating the text, nor does it throw any error ? Any help is appreciated. Thank you.
  6. Is there a list of tcl commands that exists for use with TableView ? I was able to find some for the TextView and other HyperWorks modules but could not find any commands for TableView in the HyperWorks Reference Guide on the Knowledge Base ? Thanks.
  7. How could we apply a contour plot to a model using tcl commands ? Such that after doing so when an animation is started, the contour plot appears with it ? I've found commands to SetDataType and SetDataComponent for the contour Handle, however I could not find an apply command for the same. Any help is appreciated. Thank you.
  8. And how could we write a similar command to publish an HTML or a PDF for a HyperView session using a tcl script ? Thanks
  9. Similar to the ExportHTMLReport command for a session variable in HyperView, is there a corresponding ExportPPTReport tcl command for a HyperView session variable as well ?
  10. What does this size value indicate while creating a constraint for certain nodes in HyperMesh ?
  11. @tinh : That was the problem indeed. I had used hm_blockredraw 1 in my code but had forgotten to set it back to 0. Thank you!
  12. Whenever I finish exporting a SolverDeck from my tcl gui, and then when I close the tcl GUI, the HyperMesh model becomes completely unresponsive in the Graphics Area after that. The rest of the HyperMesh GUI works perfectly, however I am unable to see the actual geometry / model in the Graphics Area for which I exported the SolverDecks, what could be the issue here ? Any help is appreciated. Thank you.
  13. @tinh : This is brilliant! I did think of binding the message_label text itself whenever it is changed, but wasn't able to find any way to do so. However, I never thought that we could bind it to whenever the width of the message_label is changed. This is exactly what I was looking for. Thank you !
  14. @tinh : This is really useful. However I have one concern, when I configure the message_label to my textvariable, it stops storing the updated messages that should be displayed when the batch mesher is run, instead if I change my variable's value only then is the text in the message_label changed on the hm window. However, I was able to get the current text in the message_label using, .mainFrame.bottom.message_label cget -text Then again, this only gives me the text that is displayed at the time I use this above line, but doesn't keep updating as the text in the label changes. For example, I want to create a label in my GUI which mirrors the text that is displayed in the message_label always, how could I go about doing that ? Is there a specific variable that stores the variable in message_label which I can then link my own label's textvariable to ? Thanks.
  15. Is there a way to read what updates are being posted on the Status bar when the batch mesher is run on a particular model ? For example I can see various status updates such as "Topology Cleanup : Step 10" and so on, but I want to read those status updates into a variable using a tcl script. Any help is appreciated. Thank you.
  16. How can I execute a command such as "ls" or "dir" through a tcl script, such that, its output is shown on the tkcon console in HyperMesh ? Any help is appreciated. Thank you.
  17. @tinh : How would I use evaltclstring to invoke a proc and where should I be defining the proc itself ? Additionally, I'd also like to know, just for the sake of completeness, that how could I escape double quotes inside double quotes while using *evaltclstring ?
  18. How can I use the *evaltclstring function in a globalpage.mac file in hypermesh when the tcl string inside it also has double quotes, such as, *evaltclstring("set t1 [string map {"\n\n" "\n"} $t1]; puts $t1;",0) Any help is appreciated because the above command results in my hypermesh becoming unresponsive on startup. Thank you.
  19. @tinh : I did try this and it worked perfectly, however, I still had one small issue. Whenever I open a fresh HyperMesh window, navigate to the Utility frame and then click on User, the button appears perfectly. And if I stay on the utility frame and click on other buttons such as Disp or Abaqus and then click back on the User button, then the button .btnDemo still appears. However, when I click away from the Utility menu and click on the Mask or Model menu and then come back to the Utility menu and click on the User button, the demo button doesnt appear then. It's a really weird occurence, and I'm not even sure how to begin debugging this, since I assume that the macroSetActivePage is called every time I click on the User button, but the demo button inside it still doesnt show up. Any help is appreciated.
  20. @Q.Nguyen-Dai : I too have 16GB of RAM on my laptop, and my laptop eventually shuts down if I run this script too much. Which is why, I need to optimize it so that memory usage is not an issue.
  21. @Q.Nguyen-Dai : The script does work faster, I agree. But that is not the issue I am facing. The script results in very high memory usage even though it works fast and that is what I am trying to avoid. Try opening up Windows Task Manager before you run the script, note the physical memory usage % and note it after the script has run. You'll see a sharp rise. When I run it with about 60,000 elements my memory usage jumps 6% and it jumps 8% when I run it with 90,000 elements.
  22. @Q.Nguyen-Dai : I did try removing those lines and it makes no difference to the memory usage. I still see a 6% jump in Physical Memory usage before and after running this script. Removing those lines only results in the text not being printed on the tcl console's stdout.
  23. Here it is, *createmark elems 1 displayed; set count 0; set minX 10000; set maxX 0; foreach elem [hm_getmark elems 1] { puts "[expr {double($count)/[hm_marklength elems 1]}]% done"; set x [hm_getentityvalue elems $elem "cogx" 0]; if {$x < $minX} { set minX $x; } if {$x > $maxX} { set maxX $x; } unset x; incr count; update; } After running this small bit of code in the HyperMesh tcl console, my Physical Memory jumped from 20% to 28% when I checked the Windows Task Manager. This is what I'd like to avoid and I'm not sure how best to optimize my code block. Edit : I also tried using the hm_getmarkvalue command to get all values of cogx for all elements in one go, but this command takes a lot longer to run, and freezes up the GUI, however it does not use up any more physical memory. Any help in implementing this command while leaving the GUI unfrozen would also be appreciated.
  24. I am using the function hm_getentityvalue as follows, hm_getentityvalue elems 123 "cogx" 1 in order to get the x coordinates of all the elements in a particular hypermesh meshed model, and then I'm finding the minimum and maximum x-coordinates and the corresponding 2 elements that represent them while running through the elements in a foreach loop. However, this code seems to be using too much physical memory, almost a 6% jump after every iteration and eventually leads to 99% physical memory usage on my machine. How could I avoid this ? And also, is there an easier way to find elements with minimum and maximum x/y/z coordinates in a model using tcl code but not by cycling through each element and checking its coordinates ? Thanks,
×
×
  • Create New...