Jump to content
Yu-Ju Chen

Create an "Part id"array of plenty of parts

Recommended Posts

As title,

I have plenty of parts and I would like to save their part id into an array.

The begining of my script will be :

*createmark comps "displayed"


I have no idea to get the components' id of this group of parts.

Then I don't know how to save them into an array by "*createarray" script for the further step.

Can anyone help?


Share this post

Link to post
Share on other sites
23 hours ago, Pandurang said:

you can save that in variable..then use it later in script


*createmark comps 1 "displayed"

set part_ids [hm_getmark comps 1]

Hi, Pandurang,

Thanks for your helpful suggestion

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.

  • Create New...