自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

BIM技术园

专注Revit开发,分享BIM知识

  • 博客(14)
  • 资源 (10)
  • 收藏
  • 关注

原创 Revit开发——幕墙相关

Revit几个Until类

2022-11-11 23:00:32 418 1

原创 Revit开发——文字(TextNote)引线平行处理

最近需要用到文字标注,添加引线,需要引线与水平轴方向平行。所以特地看了下引线属性。如下图是一个带引线的文字:通过Lookup查看属性:可以看到文字的Coord坐标值:(-20.6609192549027, 35.1406863987702, 0)引线End坐标值:(-10.803767863707, 34.6621451422085, 0)两个坐标Y轴差值:0.47854125656165。而当前视图比例为1:50.将视图比例换成1:1时,两者相差0.009570825131233。当前值乘以

2021-10-12 15:13:34 682

原创 Revit二次开发-几个相关Utils类

WallUtils:主要处理墙端点连接。StructuralFramingUtils:主要处理梁相关问题。SolidSolidCutUtils两个构件连接处理类

2021-09-10 17:31:48 321

原创 Revit开发--创建立面

1. 立面视图创建相关RevitAPI方法首先创建一个立面:public static ElevationMarker CreateElevationMarker( Document document, ElementId viewFamilyTypeId, XYZ origin, int initialViewScale)创建立面视图:public ViewSection CreateElevation( Document document, ElementId viewPlan

2021-07-29 14:26:44 834

转载 Revit开发——机电管道的各种管件Fitting的认识与区别

一、前言机电二次开发是个非常复杂和细碎的工作,本帅编在做的时候就一头雾水,尤其是生成管件的时候经常报错,经过一番探究,整理如下:各种各样的管件(图来自网络,侵删) 首先来看一下API给了多少种管件的生成方法: 这上边都有英文解释,也许英文好的人就看懂了,小编就不一样了,不靠翻译就活不下去的那种,所以英文看懂的就离开吧,因为下边讲的和你认知的也差不多。 2.名词解释 在上边6种的生成方式中,除了NewTakeoffFitting是特殊的.

2020-12-07 11:03:42 1609

原创 Revit开发小技巧——撤销操作

最近开发Revit命令需要限制某些操作,思路是监控用户操作,如果达到限制条件,将操作回退。思路有两种:1.调用WindowsAPI,发送快捷命令Ctrl+Z。2.通过Revit底层提供DLL找到回退方法。对于第一种方法,相对来说感觉不是那么完美,在应用中感觉有点繁琐。所以寻找Revit是否有对应的API。但是在官方的API文档里找不到对应的方法,只好找Revit隐藏的D...

2020-12-02 11:48:43 798

原创 Visual Studio2019配置备忘

1.单独Using分组工具-选项-文本编辑器-C#-高级2.CodeLens启用工具——选项——文本编辑器——所有语言——CodeLens

2020-12-01 15:49:46 434

原创 Revit开发——创建高程点

最近开发功能需要用到【高程点】功能,之前没怎么用过,借此机会探索了下。Revit跟高程点相关的命令如下图:对应的两个API方法如下:这次主要用的是高程点,所以及采用下面方法: public SpotDimension NewSpotElevation( View view, Reference reference, XYZ origin, XYZ bend, XYZ end, XYZ refPt, bool hasLeader) Paramet..

2020-06-23 17:53:58 1991 1

原创 Revit命令名称与命令ID

修改----ID_BUTTON_SELECT----MD----创建->选择;插入->选择;注释->选择;视图->选择;管理->选择;修改->选择;建筑->选择;结构->选择;系统->选择;分析->选择;体量和场地->选择;协作->选择;上下文选项卡->选择----选择链接----ID_TOGGLE_ALLOW_LIN...

2020-03-18 09:40:22 6987

转载 Revit开发——在现有Ribbon菜单添加按钮

foreach (Autodesk.Windows.RibbonTab tab in Autodesk.Windows.ComponentManager.Ribbon.Tabs) { if (tab.Id == "Modify")//将按钮嵌入到修改选项卡上 { ...

2019-06-20 15:18:58 468 2

原创 Revit开发小技巧——快捷工具栏位置

2019-01-18 21:28:59 964

原创 Revit开发小技巧——获取最近打开文档

两种方式可以获取Revit最近打开文档列表1.项目添加 UIFrameworkServices.dll引用代码如下: public List<string> GetFileList() { string m = "0"; int i = 0; List<strin...

2019-01-18 21:28:37 1183 3

原创 Revit二次开发-查找户型外墙

最近开发需要查找一个户型的最外圈墙。如下图所示:经过一番研究,终于发现了一个完美方式,当然也是借助Revit本身功能。思路如下:在整个模型外圈用房间分隔线画一个包围框,然后创建房间,根据房间边界线找到墙。...

2018-12-01 19:49:59 1421 5

原创 Revit开发-零件创建(Part)

最近开发用到零件(Part),所以花了一定时间来研究一下零件的创建。首先是通过RevitAPI查找零件创建的类主要用的两个方法:PartUtils.CreateParts(Document,ICollection(ElementId))  创建零件PartUtils.DivideParts 分割零件 Reference floorReference = ...

2018-11-30 11:51:02 1372 1

The Absolutely Awesome Book on C# and .NET

In summary, this eBook aims to: Help you build rock solid C# and .NET concepts in a Q & A format Make you a better C# developer Give you an overview of the current state of the .NET developer ecosystem Cover the latest features in .NET and C# Help you prepare for a .NET interview, and eventually fo

2020-11-30

C#并发编程经典实例

本书全面讲解C# 并发编程技术,侧重于.NET 平台上较新、较实用的方法。全书分为几大部分: 首先介绍几种并发编程技术,包括异步编程、并行编程、TPL 数据流、响应式编程;然后阐述一 些重要的知识点,包括测试技巧、互操作、取消并发、函数式编程与OOP、同步、调度;最后介 绍了几个实用技巧。全书共包含70 多个有配套源码的实用方法,可用于服务器程序、桌面程序和 移动应用的开发。 本书适合具有.NET 基础,希望学习最新并发编程技术的开发人员阅读。

2019-04-09

Programming.C#4.0第六版.pdf

本书为最新英文版。以下是部分目录: Chapter 1, Introducing C# This chapter talks about the nature of C# and its relationship with the .NET Framework. Chapter 2, Basic Programming Techniques In this chapter, we show the core elements of C# code—the steps required to get up and running, and fundamental features such as variables, flow control, loops, and methods. Chapter 3, Abstracting Ideas with Classes and Structs C# supports object-oriented programming, and this chapter describes the language features dedicated to these techniques. Chapter 4, Extensibility and Polymorphism This chapter continues the discussion from the preceding chapter, illustrating how C# supports inheritance, interfaces, and related concepts. Chapter 5, Composability and Extensibility with Delegates C# isn’t limited to object-oriented programming—it also supports some very powerful functional programming idioms. This chapter shows how these can sometimes be more flexible and also simpler than OO techniques. Chapter 6, Dealing with Errors All programs encounter failures, whether due to programming errors, unexpected input, network failures, or a host of other eventualities. This chapter shows the options for detecting and responding robustly to errors. Chapter 7, Arrays and Lists This chapter shows the tools C# offers for representing simple collections of information. Chapter 8, LINQ It’s not enough merely to be able to represent collections, so this chapter shows how you can use the integrated query features in C# to process your collections of data. Chapter 9, Collection Classes This chapter shows some of the more specialized classes for working with collections in particular ways. Chapter 10, Strings Text is a particularly important data type for most applications, so this chapter shows how text is represented, and how you can format data into textual form. Chapter 11, Files and Streams This chapter shows how to store information on disk and read it back in, and how to perform other filesystem operations. It also shows how some of the abstractions used when working with files can be applied in other scena

2011-11-09

JavaScript权威指南第五版(中文)

《JavaScript权威指南(第5版)》全面介绍了JavaScript语言的核心,以及Web浏览器中实现的遗留和标准的DOM。它运用了一些复杂的例子,说明如何处理验证表单数据、使用cookie、创建可移植的DHTML动画等常见任务。《JavaScript权威指南(第5版)》还包括详细的参考手册,涵盖了JavaScript的核心API、遗留的客户端API和W3C标准DOM API,记述了这些API中的每一个JavaScript对象、方法、性质、构造函数、常量和事件处理程序。

2011-10-23

Ado.Net技术内幕

熟悉ado.net技术 看过后应该很快上手

2011-09-26

NET与设计模式

设计模式 可以看一下.2 GOF 的设计模式与模式.........…..........…....... .3 理解设计模式的名称…..................................... 1.3.1 工厂与工厂方法….........………………… 1.3.2 生成器与生成器模式................……… 1.3.3 桥接与桥接模式….......…….......…....... 1.3.4 状态与状态模式.........……….......…......

2011-09-26

图片自动切换的js代码

js特效 图片自动切换 希望对需要的有点帮助

2011-05-24

图片自动切换JS特效

简单的图片向左 向右转动代码 纵向滚动 希望对大家有帮助

2011-05-09

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除