revit二次开发中combox控件的应用

revit 二次开发断断续续的在学习,在看完了Revit 2012 API Developer Guide.pdf 之后,多看看sdk里面的例子是不错了,跟着叶总走就是正确的了!http://blog.csdn.net/joexiongjin/article/details/6175505


为了交互,必不可少的得自己新建窗口,程序例子中是采用的构造函数传值的形式。在新窗体里面去实现要做的功能。

主窗体中code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using System.Windows.Forms;


namespace _3NewFormLevel
{
    [Autodesk.Revit.Attributes.Transaction(Autodesk.Revit.Attributes.TransactionMode.Manual)]
    public class Command : IExternalCommand
    {
        
        public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
        {
            try
            {
                using (LF lf = new LF(commandData)) //通过新窗体

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值