Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
I am writing a J-link app that needs to create a new assembly component from a start part, then open the interactive UI so the user can define the placement of the component. I have everything working up to the point of the RedefineThroughUI function call, which always throws the XToolkitUserAbort exception. Here is the portion of code in question, any ideas what I need to do differently?
//Assemble copy of start part (default position constraint)
ComponentFeat newFeature = (ComponentFeat)assembly.AssembleByCopy(partName,(Solid)startModel, false);
//Clear start part from memory
startModel.Erase();
//Create empty constraints
ComponentConstraints constraints = ComponentConstraints.create();
//Remove default constraint, leave component packaged
newFeature.SetConstraints (constraints, null);
//Prompt User to define component placement - everything works to this point...
newFeature.RedefineThroughUI();
Thanks,
Josh