I know , if the two LoftForm do not share one face, they will not join together. In my case I have common edge curve, but no common face.
I guess it is a quation regarding Merging Surfaces via API.
I tried with this code below, it did not work obviously.
Please some one tell me how can I join two LoftForm(Surfaces in my case) when they are sharing only one edge curve in between
I have a list of lofted Forms elements in an adaptive component family. I tried as below, but I know it is not supposed to work.. Lofted Forms(Surfaces) are coming from :
Form Loft_form1 = null;
Loft_form1 = document.FamilyCreate.NewLoftForm(true, ref_ar_ar1);
Plates_array_1.Add( Loft_form1);
Form Loft_form2 = null;
Loft_form2 = document.FamilyCreate.NewLoftForm(true, ref_ar_ar2);
Plates_array_1.Add( Loft_form2);
two Loft_form s are sharing one edge curve but they are not overlapping. They are just sharing same edge curve at an edge.
Now I want to join them, as bellow.
But it is not working. Any advise will be very helpfull. Please help.
CombinableElementArray ceArray = new CombinableElementArray();
for (int i = 0; i < Plates_array_1.Count; i++)
{
ceArray.Append(Plates_array_1[i]);
}
using (Transaction t = new Transaction(document, "Combine Elements"))
{
t.Start();
GeomCombination geomCombination = document.CombineElements(ceArray);
t.Commit();
}