Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

create Linear Form by c# ,AECOsim

$
0
0

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);

Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>