Jump to content

Alex.01

Members
  • Content Count

    24
  • Joined

  • Last visited


Reputation Activity

  1. Alex.01 liked a post in a topic by vipin in Select faces which contain elements   
    Hi, use markpanel instead.
     
    *createmarkpanel elems 1 "Please select the elements" 1
  2. vipin liked a post in a topic by Alex.01 in Beginning and ending of joints betwwen components   
    I really thank you guys, you helped me a lot.
  3. Alex.01 liked a post in a topic by tinh in Beginning and ending of joints betwwen components   
    Hi
    If you don't find an "hm_" command to get these vertices:
    *features_advanced  (as vipin suggestion)
    *createmark elems 1 "by comp name" ^feature
    set NodeList [join [hm_getvalue elems mark=1 dataname=nodes]]
    array set Count {}
    set Vertices {}
    foreach NodeId $NodeList {
       if {[incr Count($NodeId)]>2} {lappend Vertices $NodeId}
    }
    puts $Vertices
     
     
    Before version 13 we don't have command "hm_getvalue", so looping through each element by tcl and get its nodes is quite long. at that time, to query such data i had to use an hm template to fasten script.
  4. Alex.01 liked a post in a topic by vipin in Beginning and ending of joints betwwen components   
    Hi Alex,
     
    Find shared nodes using hm_getnodessharedbyothercomps in mark 1, find edges and get all edge nodes in mark 2.
    Then get markintersection?!
  5. Alex.01 liked a post in a topic by tinh in Script: name for bolts   
    Hi, It's good
    so you will input 1 bar elem, and then use *findmark to find attached bar elems to group them?
    you also can use *createmark with option "by attached".
  6. Alex.01 liked a post in a topic by tinh in Update progress bar in GUI   
    If your script runs very fast => don't need progress bar
    If your script runs in a short time => use smoothy updated progress bar, because it's not expensive so make it nice
    If your script runs in a long time => use periodically updated progress bar, because it's expensive so make it ugly!
    Ugly is better than none (hm frozen)
  7. Alex.01 liked a post in a topic by tinh in Update progress bar in GUI   
    Yes, because update cmd will invoke various cmds, it slows down script. So do not make it runs smooth (look beautiful, but expensive!)
     
    The progress bar is stuck sometimes because a certain cmd takes much time,
    If you want it runs smoother, you have to put "update" inside that cmd.
    If the cmd is a tcl proc, it is possible
    Otherwise is not.
     
     
     
  8. Alex.01 liked a post in a topic by tinh in Update progress bar in GUI   
    What is body of main proc?
    Add update cmd into every loop of it
  9. Alex.01 liked a post in a topic by Sanjay Nainani in Distributed load on edge   
    Hello,
     
    Please find attached video of the above procedure.
     
     
    Thankyou
    untitled1.mp4
  10. Alex.01 liked a post in a topic by Sanjay Nainani in Distributed load on edge   
    Hello,
     
    This can be done using the rbe3 element.
    Take a central node and "duplicate and translate" it vertically to some distance.
     
    Now go to the rbe3 panel and take the translated node as dependent node and the nodes on the line as independent nodes. This will create a rbe 3 element.
    Now you can assign the force to the translated node.
     
    The RBE3 element is a powerful tool for distributing applied loads and mass in a model. Unlike the RBAR and RBE2 elements, the RBE3 doesn't add additional stiffness to your structure. Forces and moments applied to reference points are distributed to a set of independent degrees of freedom based on the RBE3 geometry and local weight factors.
     
    Thankyou
  11. Alex.01 liked a post in a topic by Sanjay Nainani in Element size?   
    Hello,
     
    You can do this using TCL.
     
    First open the command Window
    Go to View>>Command Window
     
    Then type the following code:
    *createmark elems 1 displayed
    hm_getaverageelemsize 1
     
     
    This will give you the average element size.
     
    credits @tinh
     
    Thankyou
     
  12. tinh liked a post in a topic by Alex.01 in Script: name for bolts   
    Hi tinh, thanks for your answer but finally I could do the script.
    Anyway, what I had was this (bolt made with several 1d elements):

     
    And what I wanted was this (a tag with a ID for the bolt, i.e.5003) :

     
    But as I said before I could develop de script.
    You can delete this topic if you want considering it doesn't contribute to the forum.
    Many thanks.
×
×
  • Create New...