using AECOsim Building Designer ,I want to add TF Linear Element to model reference ,is it possible programmatically ?
TFFormRecipeLinearList formList = Program.tfApp.CreateTFFormRecipeLinear(); TFFormRecipeLinear linearForm = formList.AsTFFormRecipeLinear; Point3d p = Program.MSApp.Point3dFromXYZ(50, 0, 0); Point3d q = Program.MSApp.Point3dFromXYZ(50, 20, 0); linearForm.SetEndPoints2(ref p, ref q); linearForm.SetThickness(0.5); linearForm.SetOffsetType(TFdFormRecipeOffsetType.tfdFormRecipeOffsetTypeCenter); linearForm.SetTopFixedHeight(5.0); //the problem here formRecipeLinear = formList.AsTFFormRecipe; tfFormRecipe = tfrecipeFreeCls.AsTFFormRecipe; Program.tfApp.ModelReferenceAddFormRecipe (Program.MSApp.ActiveModelReference, ref formRecipeLinear);