Problem with NewBlend

Problem with NewBlend

Anonymous
Not applicable
270 Views
0 Replies
Message 1 of 1

Problem with NewBlend

Anonymous
Not applicable

Hi, All,

 

I was using the NewBlend to create a composite shape.

public Blend NewBlend(bool isSolid, CurveArray topProfile, CurveArray baseProfile, SketchPlane sketchPlane)

There are two ways to call the NewBlend:

1) baseProfile is plane 1 and topProfile is plane 2 and sketchPlane's normal is from plane 1 to plane 2

2) baseProfile is plane 2 and topProfile is plane 1 and sketchPlane's normal is from plane 2 to plane 1

I assume these two methods should generate the same results. However, in the example I attached, the results are different. In this case, method 1 generates the results I need. However, in some other scenarios, method 1 does not work. 

 

So I am wondering what is the rule behind this method NewBlend, is there a way to get the results consistently?

 

Thank you very much!

Jack

 

In my attached code, when the constructor parameter for class Structure is false, it is method 1, otherwise method 2.

public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
{
     UIDocument uiDocument = commandData.Application.ActiveUIDocument;

     // false -- method 1
     Structure structure = new Structure(false);
     // true -- method 1
     //Structure structure = new Structure(true);
     structure.Draw3D(uiDocument.Document);

     return Result.Succeeded;
}

 

 

 

Picture 1. Combination of the NewBlends based on positive x direction

Capture.PNG

Picture 2. Combination of the NewBlends based on negative x direction

Capture02.png

0 Likes
271 Views
0 Replies
Replies (0)