Skip to main content
2-Explorer
Aug 30, 2018 11:22 AM UTC
Solved

activate sub assembly using toolkit

Hello

 

I have active assembly in window and i would like to activate sub assembly through toolkit..

 

Is it possible to do same same in pro-toolkit or not? 

 

Thanks and Regards

Ketan

This topic has been closed for replies.
FV_01
FV_01Answer
Sep 6, 2018 1:22 PM UTC

@Ketan_Lalcheta wrote:

I have assembly having sub assemblies. Just wanted to provide ProAsmcompConstrRedefUI() API for component of sub assembly

 

Suggested API works fine for first level components of assembly. It asks for activation of sub assembly if we need to update component of sub assembly. In manual operation of Creo, Clicking on sub assembly component for redefine activates sub assembly automatically.


AFAIK ProAsmcompConstrRedefUI() works fine. You should check your code which is setting ProAsmcomp from ProAsmcomppath - there must be something wrong there.

11 replies

17-Peridot
Aug 31, 2018 5:39 AM UTC

I can't found a function for this.

But, I think, it is possible by running a mapkey.

~ Command `ProCmdMakeActive`

Translate
2-Explorer
Aug 31, 2018 6:06 AM UTC

Yes, but map key load in between different API doesn't work properly...

Translate
FV_01
Sep 4, 2018 5:58 PM UTC

@Ketan_Lalcheta wrote:

Yes, but map key load in between different API doesn't work properly...


Hello all,

Ketan, a component activation UI command essentially manipulates ProAsmcomppath and subsequently ProSelect or ProReference behind the scenes. Just make a new ProAsmcomppath from ProAsmcomppath of a given component to make a parent subassembly in question to be a new ProAsmcomppath owner and shorten up ProIdTable accordingly.

 

HIH.

FV.

Translate