Skip to main content
1-Visitor
January 25, 2017
Solved

call family table instance with pro/programs

  • January 25, 2017
  • 7 replies
  • 6937 views

hello everyone,

i want to replace  *.prt with pro/programm from family table

but this *.prt is generic it have a family table

how can i replace?

2.JPG

1.JPG

Best Regards,

Cömert YILMAZ

This topic has been closed for replies.
Best answer by HamsterNL

If you know the name of the instance you want to place, it's easy...

Put this in your RELATIONS (or use an INPUT PARAMETER)

MY_INSTANCE = "510FB0158_1"

Then open your PRO/PROGRAM and look where the current part is being placed.

ADD PART 510FB0_158_159_160

...

END ADD

Now replace "510FB0_158_159_160" with "(MY_INSTANCE)"

ADD PART (MY_INSTANCE)

..

END ADD

Now change the value of MY_INSTANCE 🙂

When this succeeds, you could also look into the "lookup_inst" function...but that's a whole different ballgame

7 replies

1-Visitor
January 25, 2017

See Creo Parametric Help Center Example: A Parametric Design for a Blender Cover

24-Ruby III
January 26, 2017
HamsterNL
HamsterNL18-OpalAnswer
18-Opal
January 26, 2017

If you know the name of the instance you want to place, it's easy...

Put this in your RELATIONS (or use an INPUT PARAMETER)

MY_INSTANCE = "510FB0158_1"

Then open your PRO/PROGRAM and look where the current part is being placed.

ADD PART 510FB0_158_159_160

...

END ADD

Now replace "510FB0_158_159_160" with "(MY_INSTANCE)"

ADD PART (MY_INSTANCE)

..

END ADD

Now change the value of MY_INSTANCE 🙂

When this succeeds, you could also look into the "lookup_inst" function...but that's a whole different ballgame

cyılmaz1-VisitorAuthor
1-Visitor
January 30, 2017

thank you so much  for help

HamsterNL
18-Opal
January 31, 2017

No problem.

If you want to know more about the lookup_inst then just give a shout 🙂