cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

How to check item ID in Creo Parametric?

Yu_707
10-Marble

How to check item ID in Creo Parametric?


Hi there,

 

I'm tring to develop a program with using Pro/Toolkit and it needs item IDs (not feature ID) for parts and detum planes.

How can I see them with Creo Parametric?

ACCEPTED SOLUTION

Accepted Solutions
Pettersson
15-Moonstone
(To:Yu_707)

See this article: https://www.ptc.com/en/support/article/CS96624

 

  • Set configuration option show_selected_item_id value to yes
  • Two methods:
  1. Internal ID via Mouse-over tooltip:
    • Set configuration option show_selected_item_id value to yes
    • Select none, one or multiple items, depending on the item type
    • The selected item's ID will be displayed as a tooltip next to the item name, when hovering over the item (in the selection)
    • Format: NAME:TypeID(TYPE NAME) ID=Internal ID
  2. Internal ID via Pick from List:
    • Do not select anything
    • Hover over the item in question, for instance a 3D solid surface
    • long right mouse button click >Pick from List
    • The list will show the surface and optional selections, including each ID

View solution in original post

8 REPLIES 8
Pettersson
15-Moonstone
(To:Yu_707)

See this article: https://www.ptc.com/en/support/article/CS96624

 

  • Set configuration option show_selected_item_id value to yes
  • Two methods:
  1. Internal ID via Mouse-over tooltip:
    • Set configuration option show_selected_item_id value to yes
    • Select none, one or multiple items, depending on the item type
    • The selected item's ID will be displayed as a tooltip next to the item name, when hovering over the item (in the selection)
    • Format: NAME:TypeID(TYPE NAME) ID=Internal ID
  2. Internal ID via Pick from List:
    • Do not select anything
    • Hover over the item in question, for instance a 3D solid surface
    • long right mouse button click >Pick from List
    • The list will show the surface and optional selections, including each ID

Thank you for your suggestion. Now I can see the item IDs and set model handles with TOOLKIT.

 

tbraxton shows the way to show feat IDs in a model tree. Do you know if it's possible to show the item IDs in the model tree like that? It would be better way to check the IDs and make easier to code.

Pettersson
15-Moonstone
(To:Yu_707)

AFAIK, item IDs can't be shown in the columns, unfortunately. Maybe you could do a Toolkit script to show them? Loop through all model features and add their names and item IDs to an array, then save that as a text file, or something? I've never used Toolkit, but it seems a relatively simple task.

 

EDIT: You could even add the Item ID as a feature parameter, then add that parameter as a column, if you want to get real fancy. But it wouldn't update automatically if the ID changes.

StephenW
23-Emerald III
(To:Yu_707)

In the model tree, in later versions of creo, session ID was added as an option to display.,

StephenW_0-1716898377912.png

 

Pettersson
15-Moonstone
(To:StephenW)

I think Session ID is still a different thing from Item ID. Item ID is only used for Toolkit programming, as far as I understand. So yeah, we have:

  1. Feature #
  2. Feature ID
  3. Session ID
  4. Item ID

It's a bit of a mess. 😀

tbraxton
22-Sapphire I
(To:Yu_707)

If you need to do this more than once for a single feature then I would suggest adding the feature id column to the model tree, you can see the id for all features without any UI clicks/picks. Using the tree should be much more efficient when debugging code.

 

 

tbraxton_0-1716548937176.png

 

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric
Pettersson
15-Moonstone
(To:tbraxton)

OP is asking about Item ID, though, not Feature ID, which is a different thing.

Pettersson_0-1716790623662.png

 

tbraxton
22-Sapphire I
(To:Pettersson)

The item ID is not unique the FID is. I am not sure how item ID would be used in coding since it is not unique, it seems odd to use this in Toolkit. I do not believe that the search tool supports searching by item ID so hovering on an object in the graphics window or pick from list appear to be the options.

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric
Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags