Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Hi, all
I have trying to assemble components into subassembly which had been activated,
but just can't find any way to get the Activate subassembly model.
model.currentmodel only can get root assembly.
"
Is it possible to dothat in weblink?
Any advisewill be fully appreciate
Thanks
Thanks for the reply~ Andreas
Itry to use pfcselect instead, let users to point out the target subassembly.
It works well as below;
-----------------
var selopts = new ActiveXObject("pfc.pfcSelectionOptions").Create("prt_or_asm");
var sels = session.Select(selopts, null);
var sel = sels.Item(0);
var model = sel.SelModel;
-----------------
Pro/E will pop up a Select message window while session.Select(); (as attachment)
Is that possible to change the text "Select -2147483648 items" at will?
Thanks
Shu-Fan
Thanks for the reply,
It works as below,
-----------------
var selopts = new ActiveXObject("pfc.pfcSelectionOptions").Create("prt_or_asm");
var sels = session.Select(selopts, null);
sels.MaxNumSels = 1;
var sel = sels.Item(0);
var model = sel.SelModel;
-----------------
The text become "Select 1 items".
~Shu-Fan