I'm trying the below code but it's showing error:
Constructions pConstrct = Part.Constructions;
WrapSketchs wSketches = pConstrct.WrapSketchs;
WrapSketch wSketch = wSketches.Add(FaceArray.Length, ref FaceArray, ToolArray.Length, ref ToolArray);
I'm passing the face of body on which the sketch has to be wrapped in FaceArray and the sketch to be wrapped in ToolArray. But i'm getting an error that the arguments are invalid.
I think the error exists in the ToolArray argument. There is not enough description available in the Solid Edge help file about the ToolArray argument so i assumed it t o be the sketch to be wrapped.
Does anyone has any idea on how to resolve the issue or if someone has already done the wrap sketch it will be really helpful if you guys can point me in the right direction.
Thanks in advance.
Go to Solution.
the ToolArray argument is the profile of the sketch.
Thanks for your reply.
It works when i pass the profile of the sketch.