Jump to content

Pritish Avachat

Members
  • Content Count

    13
  • Joined

  • Last visited

About Pritish Avachat

  • Rank
    Beginner

Profile Information

  • Country
    India
  • Are you University user?
    No

Recent Profile Visitors

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

  1. Hello All, I have two components say A and B, some nodes on part A are intersecting part B. I am cheking it with hm_collisioncheck but I dont want to fix it with *collisionfix_temp, I want to move entire component A away from B with the amount equal to the interference. Is it possible to "read the penetration value (max depth) from collision check command" so that I can translate the entire component by that amount in my TCL scripts. OR Any other way to find this by co-ordinates of nodes? Thanks in advance!
  2. Thank You so much both of you, @tinh and @Pandurang It's working perfectly!
  3. Hello Tinh, Thanks a lott for your help with inputtype. I am able to create different criteria and parameter files, as well as I know the commands to run batchmesh. My query is, suppose I have created three files with 5mm, 6mm, 10mm. When I run a tcl script, a pop-up should come up (3 buttons) asking user which mesh size to be used(5/6/10mm) as per the user input respective files will be called, and the pop up window will dismiss. I am taking help of 'Dialog' code from hwtk studio, but not helping perfectly. Can you help with for this code ? Thanks in advance! Pritish
  4. With Due respect, Thank you for telling me that there is enough on internet. It will be very helpful if you guide me regarding my question context. If you know, maybe providing a sample code or reference file.
  5. Hello, Below is the code to take input from user and store to variable $input I want to run batchmesh script using this mesh size from user input. Thank You for any help in this regard set input [hwtk::inputdialog -text "Enter Average Mesh Size" -inputtype str \ -x [winfo rootx .] -y [winfo rooty .]] Also, Can we modify above code to ensure that user inputs only numbers and not text. Thank You ! Pritish
  6. Hello Guys, Hope you are all doing well ! Your tutoring has helped me a lot in my initial coding. Now, I am looking to load a tpl file, but before loading I want to take user input for one variable (say span) and use that variable value in formules mentioned in tpl script. For that I am thinking to have a window pop up before running tpl file, which will store user input value(span) in one variable ($input) and then using this $input in further tpl script. I was able to write this code for poping up window in hypermesh, but this is not working in hyperview when I call same tcl script. set input [hwtk::inputdialog -text "Enter Span Value" -inputtype str \ -x [winfo rootx $w] -y [winfo rooty $w]] tk_messageBox -title "hwtk::inputdialog" -message "Span: $input mm" 1. CAN you guys help me to pop up a window in Hyperview which will store data in a variable ? 2. How to integrate Tpl script in Tcl to achieve my objective ? or any other way to load the tpl file with Step 1 input in it ? Awaiting your replies !
  7. Building a automeshing macro for one component ( from midsurface extraction to meshing ). In which the component has to be meshed with different element size in these five regions.
  8. Hello All, I have one sweep Beam. I extracted the midsurface for it. Further I have splitted this extracted midsurface into 5 different parts. Now I need to organize these 5 parts into 5 different components automatically. I am new to TCL/TK, so can anyone help me to develop logic for the same ? Thanks in Advance !
  9. Hey Tinh,
    Thanks for your assistance !

    Can you help me on below task for HM:

    I have a sweep surface, I need to trim that surface in 5 parts ( user defined planes ) and organize them into seperate components, for that I have below code to trim

     

    set plane [hm_getplanepanel "Please define a plane"]
    foreach {nx ny nz} [lindex [lindex $plane 0] 0] {}
    foreach {bx by bz} [lindex [lindex $plane 0] 1] {}

    but I need code to create N1, N2, N3 which are perpendicular to sweep surface not with global axis.
    Also can you help to organize these newly created surfaces to different components.

  10. Code for importing geometry in HM is as follows:

     

    *geomimport "auto_detect" "Z:/Users/CAD.stp" "CleanupTol=-0.01" "DoNotMergeEdges=off" "ImportBlanked=off" "ScaleFactor=1.0"

     

    How can I get these inputs like CAD location, tolerance, scalefactor from user when I run TCL script ?

  11. Code for importing geometry in HM is as follows: *geomimport "auto_detect" "Z:/Users/CAD.stp" "CleanupTol=-0.01" "DoNotMergeEdges=off" "ImportBlanked=off" "ScaleFactor=1.0" How can I get these inputs like CAD location, tolerance, scalefactor from user when I run TCL script ?
×
×
  • Create New...