当前位置: 首页 > news >正文

个人网站搭建模拟感想爱站关键词

个人网站搭建模拟感想,爱站关键词,各网站特点,免费图片生成器前言 这三个例子都是通过注册事件来完成相应的工作,内容比较简单。 内容 事件参考博客:Revit API:Events 事件总览 AutoStamp 自动水印 使用到的事件: application.ControlledApplication.ViewPrinting application.Controll…

前言

这三个例子都是通过注册事件来完成相应的工作,内容比较简单。

内容

事件参考博客:Revit API:Events 事件总览

AutoStamp 自动水印

在这里插入图片描述
使用到的事件:

application.ControlledApplication.ViewPrinting
application.ControlledApplication.ViewPrinted

注册事件:

public class Application : IExternalApplication{EventsReactor m_eventsReactor;public Autodesk.Revit.UI.Result OnStartup(UIControlledApplication application){// Register related eventsm_eventsReactor = new EventsReactor();application.ControlledApplication.ViewPrinting += new EventHandler<Autodesk.Revit.DB.Events.ViewPrintingEventArgs>(m_eventsReactor.AppViewPrinting);application.ControlledApplication.ViewPrinted += new EventHandler<Autodesk.Revit.DB.Events.ViewPrintedEventArgs>(m_eventsReactor.AppViewPrinted);return Autodesk.Revit.UI.Result.Succeeded;}public Autodesk.Revit.UI.Result OnShutdown(UIControlledApplication application){application.ControlledApplication.ViewPrinting -= new EventHandler<Autodesk.Revit.DB.Events.ViewPrintingEventArgs>(m_eventsReactor.AppViewPrinting);application.ControlledApplication.ViewPrinted -= new EventHandler<Autodesk.Revit.DB.Events.ViewPrintedEventArgs>(m_eventsReactor.AppViewPrinted);return Autodesk.Revit.UI.Result.Succeeded;}
}

事件处理:

// AppViewPrinting
TextNoteOptions options = new TextNoteOptions();
options.HorizontalAlignment = HorizontalTextAlignment.Center;
options.TypeId = e.Document.GetDefaultElementTypeId(ElementTypeGroup.TextNoteType);
TextNote newTextNote = TextNote.Create(e.Document, e.View.Id, XYZ.Zero, strText, options);// AppViewPrinted
e.Document.Delete(m_newTextNoteId);

AutoUpdate 自动更新

在这里插入图片描述

这个例子仅仅是更新了地址信息:

  1. 注册文件打开完成事件
    application.ControlledApplication.DocumentOpened
  2. 事件处理函数
    在文件上加入地址信息
    doc.ProjectInformation.Address = “United States - Massachusetts - Waltham - 610 Lincoln St”;

CancelSave

这个例子也注册了一系列事件,但作用和题目出入太大,这个例子应该从 SDK Sample 中删除。

http://www.mfbz.cn/news/283/

相关文章:

  • wordpress 500 阿里云seo外包品牌
  • 阿里云怎么做静态网站网络营销专业可以干什么工作
  • 现在的网站做多大尺寸的百度推广收费
  • 龙口做网站南京seo公司教程
  • 扬中贴吧网站关键词优化系统
  • 网站审核员做点啥广州百度推广排名优化
  • 临清网站建设排行榜百度
  • 外国网站 icp备案关键词查询网站的工具
  • 山东省春季高考网站建设试题网站优化外包找谁
  • 化妆品网站网页设计今日刚刚发生的军事新闻
  • 百度网站收入提交精准客户截流软件
  • 团购网站自个做百度软文推广怎样收费
  • 切图做网站武汉百度推广开户
  • wordpress 获取 图片说明seo网站
  • wordpress价格表单深圳关键词推广优化
  • wordpress默认titleseo关键词优化外包
  • 视频 收费 网站怎么做抖音十大搜索关键词
  • 自建设网站网络营销以什么为中心
  • 政府门户网站建设问题软文营销经典案例
  • 苍南规划建设局网站知乎关键词排名优化工具
  • 鹤壁高端网站建设信息推广平台
  • 想通过做威客网站上的任务来赚站内推广有哪些方式
  • 如何做网站授权网址百度竞价推广是什么
  • cpa做电影网站侵权吗网络营销课程个人感悟
  • 个人网站的设计与实现摘要在线crm
  • 建网站要注意的细节建站公司哪个好
  • 可以拿自己电脑做网站主机购物网站有哪些
  • 好的培训网站模板电脑系统优化软件十大排名
  • 嘉兴网红打卡景点seo建站是什么意思
  • 免费服务器推荐宝鸡百度seo