c#
theSession = Session.GetSession();
theUI = UI.GetUI();
theUfSession = UFSession.GetUFSession();
isDisposeCalled = false;
FeatureSigns sign = FeatureSigns.Nullsign; // 定义布尔
FeatureSigns sign1 = FeatureSigns.Positive;
double[] block_orig = { 0.0, 0.0, 0.0 }; // 原点
double[] block_orig1 = { 0.0, 0.0, 2.5 };
string[] block_len = { "11", "22", "33" };// 尺寸
string[] block_len1 = { "20", "40", "60" };
Tag blk_obj_id = Tag.Null;
theUfSession.Modl.CreateBlock1(sign, block_orig, block_len, out blk_obj_id); // 创建块
theUfSession.Modl.CreateBlock1(sign1, block_orig1, block_len1, out blk_obj_id);