write a script to split a whole set curved line using (split at joint) that is visible in line edit option in hypermesh

satya swaroop
satya swaroop Altair Community Member
edited August 2023 in Community Q&A

Hi all

i have curve

image

where i want to split it using line edit and split at joint (which are red in colour) , here i want to write a script for this

it should split the whole curve at this red joints with that script 

can you provide the script

Answers

  • Rishabh Awasthi_20948
    Rishabh Awasthi_20948
    Altair Employee
    edited August 2023

    Hello Satya 

    You can understanding how to write a tcl by taking note of the commands used in command.tcl file while performing the operations manually in the tool like line edit /split at joint It is present in Start In directory or Current working directory . (Edit -> Command File).

    image

    For example : *surfaceaddpoint 10 170.302645 70.0000434 58.5009772 is a command that adds a point to surface with id 10 and co-ordinates (170.302645,70.0000434,58.5009772) . The *surfaceaddpoint are internal Hyperworks APIs which you can utilize to generate tcl scripts. 

    I would recommend to use Hyperworks search or Hyperworks reference guide to understand the syntax and arguments required for these commands. (https://help.altair.com/hwdesktop/hwd/topics/reference/hm/_surfaceaddpoint.htm)

    The list for Tcl commands for Hyperworks are : https://help.altair.com/hwdesktop/hwd/topics/chapter_heads/commands_and_functions_scripts_r.htm

    Do you plan the ask the user to select the red points for line splitting ? *createmarkpanel command can be used to take inputs and to save the inputs use hm_getmark command.