Jump to content

Sagar Motwani

Members
  • Content Count

    16
  • Joined

  • Last visited

Everything posted by Sagar Motwani

  1. Hi, When I am trying to automate meshing in SimLab for .slb file, it is asking for Geom file (.x_t) which is kept in same folder as .slb and even .slb file contains only Geometry (imported CAD from the same parasolid file). Now, I am left with two option - 1. Either automating >> directly importing parasolid file. > Renaming each component and then meshing. (which is more time consuming than 2nd option). 2. Importing .slb file >> giving Geom file > then meshing. (lesser time consuming than 1st ) But the problem with second option is, I dont know how to auto feed Geom file, initially only or in code. If this whole process runs in graphic mode, it will pause and ask to select Geom file. But, if it is nographics (batch mode) the simlab goes non responding, until it is killed by task manager.
  2. Is there any way to get documentation for scripting in .sls file too, like what we have in SimLab help for Python and JS ? Or list of APIs used in .sls scripting by SimLab ?
  3. Hi, For selecting nodes by path, I have tried >> *nodelistbypath $node1 $node2 1 *entitysetcreatelist temp_nodes nodes 1 But this works only for a open path or shortest path from node1 to node2 in closed loop. Please help me in above matter for selecting all nodes on a path. P.S. I have a line with its ID on that path. For any idea related to nodes on that line. And, I don't want to go with --> *nodelistbypath $node1 $node_mid_path 1 *nodelistbypath $node_mid_path $node2 2 >>Union 1 and 2<< *nodelistbypath $node2 $node1 2 >>Union 1 and 2<<
  4. Thanks Livil, I am already getting Subcase Name List with my code, but facing problem in getting Subcase Id List.
  5. Can some would suggest me script for read and write all the subcase names and their respective ids, for now to get all subcases names, I am using- hwi GetSessionHandle mySessionName mySessionName GetDataFileHandle myDataFile $op2File set subcase_list [myDataFile GetSubcaseList] puts "subcase_list $subcase_list" can some suggest script or code to find all Subcases ids with minimal changes in above.
  6. Can some would suggest me script for read and write all the subcase names and their respective ids, for now to get all subcases names, I am using- hwi GetSessionHandle mySessionName mySessionName GetDataFileHandle myDataFile $op2File set subcase_list [myDataFile GetSubcaseList] puts "subcase_list $subcase_list" can some suggest script or code to find all Subcases ids with minimal changes in above.
  7. Hi George, My script is for selecting some bad (nearby/ attached) surface elements on same plane, moving it to Temp component/ collector and then remeshing those edges nodes using Spline option in 2D Panel. When, I delete that Temp Component at the end, I am getting Segmentation Error. I tried deleting setting files, seems to not work out. Still getting, Segmentation Error when I delete that Temp Component, using "*deletemark components 1". Thanks, SAGAR
  8. Thanks Tinh and Imoto . This worked fine [.mainFrame.bottom.leftfrm.label cget -text]. As you told, HyperMesh and HyperMesh Desktop are using different frame.
  9. Hi Roshan and Tinh, The command "set Message [.mainFrame.bottom.message_label cget -text]" seems to work fine in Hm 14.0.130. But, is throwing error - bad window or invalid command name ".mainFrame.bottom.message_label", for Hypermesh above HM 14.1 and also HM 2017. Can you please suggest any solution to this. Thanks, SAGAR
  10. I have come across "Segmentation Error" in my script. Script is for seleting particular surface elements and remeshing it with Spline option, and deleting prev. elements on user satisfaction. The script seems to be fine in context of Syntax and API uses. It would be helpful, if someone could tell me the common causes for this error. And, better, if someone could suggest solution to this problem. We thought it as error caused due to memory limitation. So, we have also used *clearmark every now and then. But, seems to not affect that much. Thanks, SAGAR MOTWANI
  11. Hi, Is there any API or any way that can help me "to Disable writing Command.tcl file" through script/ code. I have only came across manual way, HM menu>> Preferences >> Script Performance >> (check) Disable writing to the command file. Thanks, SAGAR
  12. Hi, Tinh. I think, i got confused reading any file using TCL with reading a file in HyperView. I am totally new to HyperView Coding, but I have handy knowledge of HyperMesh code. It would be great, if someone would suggest or share link to Basics of HyperView Coding. Thanks, SAGAR MOTWANI
  13. I know how to read/ write files using TCL, even I have automated many things in HyperMesh. Its just, I am new to HyperView automation, and need some guidance only.
  14. I have Modal file .bdf file and Time Result file .h3d file (of order 0.5 to 8.0). Now, I want to export this file into UNV. I have all required info of Element Ids, Subcases, Result type- Stress, Components, with me. Also, I know the manual way to approach this. Can someone help me with HyperWork Script to automate this thing? Thanks, SAGAR MOTWANI
  15. What does "atta" and "attb" (attribute no. 5 and 6) in HM api "*optiresponsecreate", are for ? The forum at 'http://10.132.22.249/altair2017/help/hm_ref_guide/topics/reference/hm/_optiresponsecreate.htm' is showing "atta" and "attb" are - "The attributes of a response". Can someone explain me in detail about that ? Or how to get and use those attributes of api "*optiresponsecreate" in a TCL script.
×
×
  • Create New...