Skip to main content
14-Alexandrite
November 15, 2023
Solved

Change varied Items VB API

  • November 15, 2023
  • 1 reply
  • 2272 views

Hello,

Does anybody know how to change new value of varied items with CREO 7 VB API.

 

Regards

Ludovic Besse

Best answer by Civodul

It's true.

 

Thanks for your time

1 reply

17-Peridot
November 16, 2023

In VB API this is not possible.

 

You can use a workaround:

1) In assemble create a relation PARTVARPARAM:CID_XX = ASMPARAM

where

PARTVARPARAM - variable parameter in the part

CID_XX - XX is a ID of the part component in the assembly

ASMPARAM - assembly parameter

 

2) Using VB API change the value of the asm parameter "ASMPARAM"

Civodul14-AlexandriteAuthor
14-Alexandrite
November 16, 2023

I've already tried this solution, the problem is that the native assembly is also modified.

Thanks

17-Peridot
November 16, 2023

You are right.

But I think, that by changing a variable parameter of the component will change the assembly too.

Is it not true?