Jump to content

Livil Lyle

  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Livil Lyle

  1. Hi Raj, Can you try after adding "s" to the end of SelectYComponent. buildh SelectYComponents {MAG | Z-Trans} Share the code and error if you still face issue.
  2. Hi Raj, are you getting the build handle? hwi GetSessionHandle sess; sess GetClientManagerHandle pm Plot; pm GetBuildPlotsCtrlHandle bp;
  3. have you tried creating a mark by box? *createmark elems 1 "by box" x0 y0 z0 x1 y1 z1 syst location contained all tol
  4. I was able to do it with this command. *createmark elems 1 "on plane" 0 6 0 0 1 0 1 1 1 hm_highlightmark elems 1 h
  5. Hi Dhairyasheel, 1. first create a font with the properties and then assign it to the label you create font create myFont -family cambria -size 14 ttk::label .test.frame1.label1 -text "Hello" -font myFont -width 15 2. all entry boxes have a variable set using -textvariable which should be a namespace variable, this can be set dynamically and will be reflected accordingly. hwtk::entry frame_1.ent_1 -textvariable ::mynamespace::entry1variable 3. use -command followed by the function while creating the button: hwtk::button frame_1.button_1 -text "test" -command {::test::Myprocedure}
  6. Hi, *createmark elems 1 "on plane" "x y z i j k tol plane touching" "
  7. For setting colors, get model handle and then use SetColor For PPT, use Automatic Report Director (ARD) it comes with Hyperworks 2019, for earlier versions you will have to install it though PSO installer, https://connect.altair.com/CP/downloads.html?suite=Packaged Solution Offerings
  8. Hyperworks desktop: .mainFrame.bottom.leftfrm.label cget -text Hypermesh: .mainFrame.bottom.message_label cget -text
  9. Hi Raj, You can add model using: poIPost_handle AddModel filename (reader_name) and set results using: model_handle SetResult file_name (reader_name) AddModel by default will overlay the model,.
  10. Hi Jouher, You will have to iterate through all components, find individual thickness and write an algorithm to find which are uniform or uniform according to your requirement. ' You can use API: hm_getthickness to quickly get each component thickness.
  11. Once you get the IDs, you can use poIResultCtrl_handle GetSubcaseLabel id to get the labels. regards, Livil
  12. Hi Dmoreau, There may be some issue with graphics card then, see if the script runs n another machine. If it works, you can try reinstalling the graphics driver driver.
  13. you can start and stop animation using the code. pageH StartAnimation session CaptureAnimation avi side_section.avi pageH StopAnimation
  14. Hi BurntPixel, Easier way is to get the component ID and get all the nodes directly from the component: set lst_nodes [list]; puts "Please select components" *createmarkpanel components 1 if {[hm_marklength comps 1]} { set n_compID [hm_getmark comps 1] *createmark nodes 1 "by comp id" $n_compID if {[hm_marklength nodes 1]} { set lst_nodes [hm_getmark nodes 1]; } } if {[llength $lst_nodes]} { foreach n_nodeID $lst_nodes { set lst_coord [join [hm_nodevalue $n_nodeID]]; # file operation to write nodeID and lst_coord should come below this. } } nodes will be saved in a tcl list lst_nodes. Regards, Livil
  15. Hi Raj, You can use the below APIs: hm_getclosestnode x y z ?elem_mark? ?node_mark? ::hwat::core::GetClosestNodeByDistance x y z n_nodeList n_exemptNodes ::hwat::utils::GetClosestNode x y z [d_tolerance] [assemname] [n_exemptNodes] To get x y z of the user selected nodeID use: hm_nodevalue $nodeID For more info refer help or search the commands in Altair Connect.
  16. Hi Raj, You can refer to examples in HWTK GUI Toolkit which comes along with Hyperworks installation. You can also quickly search the syntax in Altair Connect to get more information.
  17. Find attached elements to the node, Mask everything and unmask only those elements. Fit the view.
  18. Hi Mohammed I haven't done this yet, you can try: pltINote_handle SetAttachment curve pltINote_handle SetAttachToCurveIndex $curveID pltINote_handle SetAttachToPointIndex point_index to find point_index you can GetVectorHandle and from vectorHandle GetValuesList list. Find at what index the maximum value occurs in the value list.
  19. Hi Balazs, You can check out scripts in Script Exchange, just filter out Hyperview as in attached image. https://connect.altair.com/CP/script-list.html Do note that HyperView scripting does require practice in getting correct handles and hierarchy. I have written some easy scripts in this forums earlier which can be a good reference to begin with.
  20. Hi mpvnaresh, The algorithm used for re-meshing could be temporarily creating it, usually any such modifications will be handled in the end by automatically deleting. Btw, which version of Hyperworks are you using?
  21. Hi Martina, You should be able to directly import .stl directly, I'm not sure if the support is given in Student Version.
  22. Hi Julio, There seem to be some issue with Student Edition, I was able to recover the model by exporting as .rad and re-importing again but there is a possible loss of data. If you can share the model before the issue and a video showing when it losing the data, it can be fixed in future software release. Thanks. llyle
  23. Hi Julio, May be when you're doing some operation the script could have disabled graphics, but since the operation failed it didn't enable it again. You can go to Preferences->Script Performance and uncheck all options and press apply. Otherwise it could be some graphics card/driver issues too. Try doing the same operation in another machine, if it is not reproducible, check if graphics card is compatible with Hyperworks, update driver, and delete Hyperworks temp files.
  • Create New...