资源简介
DynamicModelUpdate.rar
代码片段和文件信息
//
// (C) Copyright 2003-2014 by Autodesk Inc.
//
// Permission to use copy modify and distribute this software in
// object code form for any purpose and without fee is hereby granted
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting
// documentation.
//
// AUTODESK PROVIDES THIS PROGRAM “AS IS“ AND WITH ALL FAULTS.
// AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK INC.
// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
// UNINTERRUPTED OR ERROR FREE.
//
// Use duplication or disclosure by the U.S. Government is subject to
// restrictions set forth in FAR 52.227-19 (Commercial Computer
// Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
// (Rights in Technical Data and Computer Software) as applicable.
//
using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;
using Autodesk.Revit.DB.Events;
using Autodesk.Revit.UI;
namespace DynamicModelUpdate
{
///////////////////////////////////////////////////////////////////////////////////////////////
//
// Application to setup our updaters register them (on startup) and unregister it (on shutdown)
//
[Autodesk.Revit.Attributes.Regeneration(Autodesk.Revit.Attributes.RegenerationOption.Manual)]
public class AssociativeSectionUpdater : Autodesk.Revit.UI.IExternalApplication
{
private AddInId m_thisAppId;
//////////////////////////////////////////////////////////////////
// creating and registering our updaters on Revit startup
public Result onstartup(Autodesk.Revit.UI.UIControlledApplication app)
{
// this application‘s Id is the currently active AddIn Id:
// (the Id is taken form the manifest file(AddIn) of this application)
m_thisAppId = app.ActiveAddInId;
app.ControlledApplication.DocumentOpened += RegisterSectionUpdaterOnOpen;
return Result.Succeeded;
}
private void RegisterSectionUpdaterOnOpen(object source DocumentOpenedEventArgs args)
{
if (args.Document.title.StartsWith(“AssociativeSection“))
{
m_sectionUpdater = new SectionUpdater(m_thisAppId);
m_sectionUpdater.Register(args.Document);
bool enableSecondUpdate = false;
if (enableSecondUpdate)
{
m_sectionUpdater.UpdateInitialParameters(args.Document);
}
}
args.Document.DocumentClosing += UnregisterSectionUpdaterOnClose;
}
private void UnregisterSectionUpdaterOnClose(object source DocumentClosingEventArgs args)
{
if (m_sectionUpdater != null)
{
UpdaterRegistry.UnregisterUpda
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 819200 2014-01-14 15:04 DynamicModelUpdate\AssociativeSection.rvt
文件 3514 2014-02-17 20:49 DynamicModelUpdate\CS\Application.cs
文件 501 2014-01-14 15:04 DynamicModelUpdate\CS\DynamicModelUpdate.addin
文件 2435 2014-02-17 20:49 DynamicModelUpdate\CS\DynamicModelUpdate.csproj
文件 364 2015-10-12 14:25 DynamicModelUpdate\CS\DynamicModelUpdate.csproj.user
文件 925 2015-10-12 14:24 DynamicModelUpdate\CS\DynamicModelUpdate.sln
..A..H. 14848 2015-10-12 14:24 DynamicModelUpdate\CS\DynamicModelUpdate.v11.suo
文件 1466 2014-01-14 15:04 DynamicModelUpdate\CS\Properties\AssemblyInfo.cs
文件 40759 2014-01-14 15:04 DynamicModelUpdate\CS\ReadMe_DynamicModelUpdate.rtf
文件 9405 2014-02-17 20:49 DynamicModelUpdate\CS\SectionUpdater.cs
目录 0 2015-10-08 11:45 DynamicModelUpdate\CS\Properties
目录 0 2015-10-12 14:24 DynamicModelUpdate\CS
目录 0 2015-10-08 11:45 DynamicModelUpdate
----------- --------- ---------- ----- ----
893417 13
- 上一篇:东北大学操作系统实验4次
- 下一篇:集美大学汇编考试题目2014
相关资源
- ex02.rar
- 2.16.2_0.crx
- Tomasulo算法实验报告.docx
- ravemaster_1076245.rar
- Photon_english.dll
- lCD1602万年日历温度显示程序仿真.zi
- EPSONL4168L4160打印机清零软件教程步骤
- 极品私人密盘(190814).zip
- 影视.txt
- YW寄生虫.zip
- 百度连接提取码.txt
- 9Tkinter.zip
- 计算机网络谢希仁第七版课后答案完
-
unti
tled1385696325.rar - 频率计.rar
- 杨辉通信考研视频资料.docx
- qq_43391237_11004384.zip
- skyline安装包及破解文件.txt
- 坐标转换.rar
- 卡尔曼滤波源代码.rar
- poker.zip
- beta_build.dll
- 10493925-1534760938165.zip
- Main.unity
- buckboost.slx
- 零基础学习QTP自动化测试视频教程.
- sms1.2.rar
- 内含地址.txt
- 安养_易模块反编译工具[支持带密码
- KUKA和康耐视相机TCPIP通讯.pptx
评论
共有 条评论