Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Wrap sketch on a surface through code

Creator
Creator

Hi All,

 

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.

 

 

2 REPLIES

Re: Wrap sketch on a surface through code

Legend
Legend

Hi Sumit,

 

the ToolArray argument is the profile of the sketch.

 

Regards

Gerald

Re: Wrap sketch on a surface through code

Creator
Creator

Hi Gerald,

 

Thanks for your reply.

 

It works when i pass the profile of the sketch.

 

Regards

Sumit