Jump to content
Sign in to follow this  
Alex.01

Script: name for bolts

Recommended Posts

Hi all,

 

I want to do an script which makes this:

I have a model with a lot of bolts which are formed for 4 or 5 bar2 elements. I want to do an script which groupes each bolt (with its bar2 elements) and generates a tag or name for it (i.e. Bolt 1, Bolt 1001). The input would be 1 bar2 element, and I think I could do it by using *findmark command but I don't know how to carry on.

Do you have any ideas to help me ?

 

Thanks in advance.

 

Regards,

Alex

Share this post


Link to post
Share on other sites

Hi tinh, thanks for your answer but finally I could do the script.

Anyway, what I had was this (bolt made with several 1d elements):

image.png.51a46c4da373d605e56963ec07479cfd.png

 

And what I wanted was this (a tag with a ID for the bolt, i.e.5003) :

image.png.a934ffd0afcf5c427b89d7805de5b5d7.png

 

But as I said before I could develop de script.

You can delete this topic if you want considering it doesn't contribute to the forum.

Many thanks.

tinh likes this

Share this post


Link to post
Share on other sites

Hi, It's good

so you will input 1 bar elem, and then use *findmark to find attached bar elems to group them?

you also can use *createmark with option "by attached".

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

Sign in to follow this  

×
×
  • Create New...