Jump to content
hugo_c

*createcenternode

Recommended Posts

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 

error.png

Capture.PNG

Share this post


Link to post
Share on other sites

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..

 

Share this post


Link to post
Share on other sites

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 

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites
13 minutes ago, tinh said:

 

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

 

Capture.PNG

version.PNG

Share this post


Link to post
Share on other sites
On 3/8/2019 at 4:56 PM, Imoto said:

--- 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.

 

Pandurang likes this

Share this post


Link to post
Share on other sites
13 hours ago, Hugo Carlier said:

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)

 

Edited by tinh

Share this post


Link to post
Share on other sites

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.  

tinh likes this

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...