Skip to main content
Feb 6, 2024 7:17 PM UTC
Solved

How do add new ModelItems to Model? Creo Parametric TOOLKIT / Object Toolkit

Hello everyone, I'm new to Creo and I am trying to figure out how to add objects to a Model.

I tried to create a new Part file and add some 3D points (as an example) but I cannot see them in a Window. Also, the number of ModelItems didn't change. 

 

Could you tell me, please, how to add new ModelItems?

RPNAnswer
Feb 6, 2024 9:26 PM UTC

If I understand the documentation, this will just init a 3D point struct, nothing more. You need to create a feature, or place an UDF to create new model items. Expect 2 lines more, of code 😀

3 replies

RPNAnswer
Feb 6, 2024 9:26 PM UTC

If I understand the documentation, this will just init a 3D point struct, nothing more. You need to create a feature, or place an UDF to create new model items. Expect 2 lines more, of code 😀

Mar 7, 2024 11:03 AM UTC

RPN thank you for the answer.
Actually, it was not just 2 lines of code ( I needed to create a feature tree), but I managed to do it! 🙂 

 

 

Mar 7, 2024 6:57 PM UTC
  • Ok, that is good to know, personally I would exclude the feature tree code, because you rebuild the complexity in your code, and you loose flexibility. If you use an UDF, you have only to manage the location and a couple of variables. But this are only my 2 Cents 😉s