🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

*createcenternode

User: "hugo_c"
Altair Community Member
Updated by hugo_c

Hi i'm currently working on hypermesh tcl script 

I'd like to create a node at the center of a circle defined by three nodes. 

here's my script 

 

#Select face sup nodes
set nodes {}
hm_markclear nodes 1
*createmarkpanel nodes 1
set nodes [hm_getmark nodes 1]

#create center node
tk_messageBox -message '[lindex $nodes 0] [lindex $nodes 1] [lindex $nodes 2]'
*createcenternode [lindex $nodes 0] [lindex $nodes 1] [lindex $nodes 2]

 

unfortunately it doesn't work and i can't understand why.. 

 

Thank you 

<?xml version="1.0" encoding="UTF-8"?>error.png

<?xml version="1.0" encoding="UTF-8"?>Capture.PNG

Find more posts tagged with

Sort by:
1 - 12 of 121
    User: "tinh"
    Altair Community Member
    Updated by tinh

    It says 'node specified not found'

    Seem that you don't pick 3 nodes.

    User: "hugo_c"
    Altair Community Member
    OP
    Updated by hugo_c

    Hi Tinh, 

     

    i changed my script for only 

     

    *createcenternode 9868 9869 9870 

     

    And i still have the same error message.. why ?? 

    I forgot to mention that i import these datas from a .dat file. Maybe i need a command to call all nodes, i don't know..

     

    User: "hugo_c"
    Altair Community Member
    OP
    Updated by hugo_c

    Edit

     

    I got the same issue each time i'm calling nodes.

    same with 

    *vectorcreate_twonodes 9868 9869 

    I believe there's a specific command to import nodes 

    User: "tinh"
    Altair Community Member
    Updated by tinh

    Try select 3 nodes then input 'hm_getmark nodes 1' to see ids

    If they are there but *createcenternode says 'not found', it may be due to software bug

     

    Your hm version?

    Try renumbering all nodes?

    User: "hugo_c"
    Altair Community Member
    OP
    Updated by hugo_c

     

    So i changed my script for

     

    #Select face sup nodes
    proc func_nodes_sup {} {
        set nodes {}
        hm_markclear nodes 1
        *createmarkpanel nodes 1
        tk_messageBox -message '[hm_getmark nodes 1]'

    func_nodes_sup

     

    <?xml version="1.0" encoding="UTF-8"?>Capture.PNG

    <?xml version="1.0" encoding="UTF-8"?>version.PNG

    User: "tinh"
    Altair Community Member
    Updated by tinh

    Update hotfix?

     

    My hm13 works well. 

    If you can't overcome, try hm13 !

    User: "hugo_c"
    Altair Community Member
    OP
    Updated by hugo_c

    I just tried on hm 14, same issue.. 

    well there's not so much things to do. 

    Thank you anyway ! 

     

    Hugo 

    User: "Imoto"
    Altair Employee
    Updated by Imoto

    --- English ---
    If you are facing the strange issue when you using the HyperMesh/HyperView/HyperGraph and so on...

    Please try to delete the following Files/Folders, then you can reset the HyperWorks-Desktop products.

     

    First of all, please check the 'Start-in directory'.
    1. Right click on HyperMesh/HyperView/HyperGraph short cut icon.
    2. Hit the Property.
    3. Check the 'Start-in directory'.
    4. Close the all HyperMesh/HyperView/HyperGraph...
    5. Delete the following Files/Folders.
    ・command.tcl (File)
    ・hmsettings.tcl (I guess this file is exist in MyDocument folder)
    ・hmmenu.set (File)
    ・batchmesher_config.cfg (File)
    ・hwsettings.xml (This file is referenced in HyperWorks Desktop)
    ・hwsettings.xml.bk (This file is used in HyperWorks Desktop)
    ・%USERPROFILE%\.Altair (Folder)
    ・%USERPROFILE%\AltairLibraries (Folder)
    ・%USERPROFILE%\hweDefaultWS (Folder)
    ・%USERPROFILE%\AppData\Local\Altair (Folder)
    ・%USERPROFILE%\AppData\Local\Temp\.altair (Folder)
    ・%USERPROFILE%\AppData\Local\Temp Search the files in start with 'HM' name in this folder. (Files are remain if you forced termination in before)
    ・\Altair (I guess this folder is exist in MyDocument folder)

     

    Note: You can move to right folder when you paste the「%USERPROFILE%」to your explorer.

     

    User: "tinh"
    Altair Community Member
    Updated by tinh

    I just tried on hm 14, same issue.. 

    well there's not so much things to do. 

    Thank you anyway ! 

     

    Hugo 

    Hm14 is very fool, don't use it.

    Hm13 is the best.

     

    Could you share the file? (just keep 3 elems at the hole and delete others)

     

    User: "hugo_c"
    Altair Community Member
    OP
    Updated by hugo_c

    Hi, 

     

    Finally the issue comes from the fact that the .dat comes from Catia v5

     

    Can't explain why 

    User: "Imoto"
    Altair Employee
    Updated by Imoto

    Hi @Hugo Carlier

     

    Please share your model.
     

    Thanks,

    Imoto

    User: "hugo_c"
    Altair Community Member
    OP
    Updated by hugo_c

    So, 

     

    I noticed that in the .Dat file coming from CATIA v5, there were two lines creating and erasing a 'Dummy element'

    ' I   831786 N ! Dummy element '

    ' .MAI SUPPRIME   831786 ! Remove dummy element '

     

    Honestly i don't know what it is but it turns out that after erasing these lines the file works perfectly back. 

     

    Hope it'll help other users having the same issue.