Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! 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