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

威海市城乡建设局网站专业网站

威海市城乡建设局网站,专业网站,上海网站商城建设公司,做搬家网站推广在那好前言 这个例子介绍 Revit 的配电盘明细表#xff0c;PanelSchedule。Revit 的电器专业在国内用的并不是十分广泛#xff0c;但从功能上来说还是比较完整的。 内容 这个例子里有三个命令#xff1a; PanelScheduleExport - 导出配电盘明细表InstanceViewCreation - 创建配…前言 这个例子介绍 Revit 的配电盘明细表PanelSchedule。Revit 的电器专业在国内用的并不是十分广泛但从功能上来说还是比较完整的。 内容 这个例子里有三个命令 PanelScheduleExport - 导出配电盘明细表InstanceViewCreation - 创建配电盘明细表SheetImport - 在图纸中导入配电盘明细表 PanelScheduleExport 用于导出的配电盘明细表 导出到 Excel 主要用到的 Revit API 通过 GetSectionData 可以获取配电盘明细表里各个分区的内容 // public class PanelScheduleView : TableView public TableSectionData GetSectionData(SectionType sectionType);一个配电盘明细表可以有的分区类型 头Header、体Body、总结Symmary、尾Footer namespace Autodesk.Revit.DB {public enum SectionType{None -1,Header 0,Body 1,Summary 2,Footer 3} }从 TableSectionData 可以获取对应的行列 TableSectionData sectionData psView.GetSectionData(sectionType); nRows sectionData.NumberOfRows; nCols sectionData.NumberOfColumns;通过 GetCellText 可以获取对应的配电盘明细表的内容 // public class TableView : View public string GetCellText(SectionType sectionType, int row, int column);InstanceViewCreation 选中一个配电盘 Panel通过 CreateInstanceView 创建一个配电盘明细表 // public class PanelScheduleView : TableView public static PanelScheduleView CreateInstanceView(Document ADoc, ElementId panelId);SheetImport 通过 PanelScheduleSheetInstance::Create 在图纸上放置配电盘明细表 // public class PanelScheduleSheetInstance : Element public static PanelScheduleSheetInstance Create(Document ADoc, ElementId scheduleId, View DBView);为了将多个明细表放在同一行计算了各个表的起始位置 XYZ nextOrigin new XYZ(0.0, 0.0, 0.0); foreach (Element element in psViews) {PanelScheduleView psView element as PanelScheduleView;if (psView.IsPanelScheduleTemplate()){// ignore the PanelScheduleView instance which is a template.continue;}PanelScheduleSheetInstance onSheet PanelScheduleSheetInstance.Create(doc, psView.Id, sheet);onSheet.Origin nextOrigin;BoundingBoxXYZ bbox onSheet.get_BoundingBox(doc.ActiveView);double width bbox.Max.X - bbox.Min.X;nextOrigin new XYZ(onSheet.Origin.X width, onSheet.Origin.Y, onSheet.Origin.Z); }
http://www.w-s-a.com/news/914550/

相关文章:

  • phpmysql网站设计建设好一个网站需要
  • 自己做的网站能被别人看到吗idea怎么做网页
  • 燕莎网站建设互联网排名前十的公司2021
  • 微软云怎么做网站微商城和小程序区别
  • 哈尔滨建站的系统网站到首页排名
  • 运动网站开发的需求分析南通市住房和城乡建设局网站
  • 佘山做网站谷歌云做网站
  • 免费发布信息网站大全666做p2p网站费用
  • 北京 网站建设咨询顾问公司网络公司有几家
  • 设计类网站如何用ps做网站首页
  • 品牌网站建设的关键事项设计网有哪些
  • 网站没收录徐州建设工程审图中心网站
  • 网站建设记账做什么科目erp系统有哪些软件
  • 泰拳图片做网站用哪里有做空包网站的
  • 查外链网站重庆做网站微信的公司
  • 有没有外包活的网站如何做网站快捷键的元素
  • 公司网站赏析网站制作2019趋势
  • 企业进行网站建设的方式有( )推广引流违法吗
  • 按营销型网站要求重做网站 费用点金网站建设
  • 深圳做网站互联网服务
  • 网站sem托管wordpress安装无法连接数据库
  • 深圳网站建设开发公司哪家好微信小程序商家入口
  • 江门站排名优化建立什么网站赚钱
  • 科普文章在那个网站做招聘网站代做
  • 监控设备东莞网站建设游戏网站域名
  • 对商家而言网站建设的好处网址导航怎么彻底删除
  • app设计网站模板企业展厅策划设计公司有哪些
  • wordpress销售主题手机网站关键词优化
  • 怎么查一个网站是什么程序做的三亚城乡建设局网站
  • 深圳分销网站设计公司做网站一般需要多久