Is there a way to pass "YES" click from a KWE Rule ?
I'm trying to change the InstanceName for parts in a product. When I do this manually I get a WARNING which needs "YES" click to maintain the connections to other parts (instances). Here's some code -
p art
let Str (String)
let Def (String)
let Len =0
if ((p.Query("BundleSegment","" ->Size()) > 0)
{ Def = p.Definition
Len = Def.Length()
Str = Def.Extract(Len-3, 3)
/* >>> CHANGE THE INSTANCE NAME */
p.Name = Str
/* >>> Here is where I need to pass the "YES" to the warning window */
}
THANKS in advance.
|