Jump to content
Sign in to follow this  

How to check element type using TCL commands

Recommended Posts

Dear all,


Could you tell me how can I obtain ANSYS element type in HyperMesh using TCL commands?

My target is to put element type name into a variable.


The procedure using graphical interface is following: 2D/3D -> element types -> mark element -> review. (result on the figure)


Is it possible to extract such information from particular element by a TCL command?
I've tried by hm_getentityvalue but got stuck on data_name format.


Best regards


Share this post

Link to post
Share on other sites

Try this code:

*createmarkpanel elems 1 "Select Elems"
set elems [hm_getmark elems 1]
*clearmark elems 1

foreach eid $elems {
	set typename [hm_getentityvalue elems $eid typename 1]
	puts [format "Eid %6d ; Typename= %s" $eid $typename]



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.

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.

Sign in to follow this  

  • Create New...