Jump to content
  • Announcements

    • Rahul Ponginan

      Please click here for a short but important announcement   03/26/17

      Dear Users Our Commercial and Academic users around the world can use these same forums here as before i.e. the Altair Support Forum , Commercial users from India with solver queries can go to the Solver Forum for India Commercial Users , Academic Users from India and AOC India Participants are requested to go to the Forum for India Academic Users and AOC India Participants , We will be tending to all queries in all the forums promptly as before, thank you for your understanding. 
Sign in to follow this  
jakubat

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
Jakub

Untitled.png

Share this post


Link to post
Share on other sites
Guest

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]
}

HTH,

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×