cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

J-Link RedefineThroughUI

JoshBenson
12-Amethyst

J-Link RedefineThroughUI

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

0 REPLIES 0
Announcements


Top Tags