Jump to content
Pandurang

How To Check selected Components contains shell(2D) or solid(3D) elements

Recommended Posts

Hi 

*createmarkpanel comps 1 "you don't prompt anything ?"

*createmark elems 1 "by comp id" {*}[hm_getmark comps 1]

set Types [lsort -unique [string map {103 2d 104 2d 204 3d 206 3d 208 3d} [lsort -unique [hm_getvalue elems mark=1 dataname=config]]]]
puts $Types

 

Livil Lyle and Pandurang like this

Share this post


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

Hi 


*createmarkpanel comps 1 "you don't prompt anything ?"

*createmark elems 1 "by comp id" {*}[hm_getmark comps 1]

set Types [lsort -unique [string map {103 2d 104 2d 204 3d 206 3d 208 3d} [lsort -unique [hm_getvalue elems mark=1 dataname=config]]]]
puts $Types

 

Thanks Tinh,

 

one query...

what is use of --> {*}

Share this post


Link to post
Share on other sites

Hi,

 

One query

 

How do i interpret the return value of puts $Types.

 

If it is printing 2 what does that mean ?

 

Regards,

 

Mrunmaya Mudigere.

Share this post


Link to post
Share on other sites

Hi,

 

Thanks for the reply

 

From knowing 2 is plot how can i make out whether the selected component contains 2d 0r 3d elements

 

Regards,

 

Mrunmaya Mudigere.

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