Revit Secondary Development Use Git for Version Control in Visual Studio 2019
Download GitReference Link==Reference Link https://blog.csdn.net/huangqqdy/article/details/83032408== Install Configuration Install git open git bash and input command git config Confirm whether installed git config –global user.name “youname” Fill in github registration ID git config –global user.email “emailaddress” Fill in registration email address After binding input git config –list to confirm Visual Studio SettingsReference Link ==Reference Link https://b...
Revit二次开发在visual studio 2019中使用git进行版本控制
下载Git参考链接==参考链接 https://blog.csdn.net/huangqqdy/article/details/83032408== 安装配置 安装git打开git bash后输入命令 git config 确定是否安装 git config –global user.name “youname” 填写github注册ID git config –global user.email “emailaddress” 填写注册邮箱地址 绑定后输入git config –list进行确认 Visual Studio 内设置参考链接 ==参考链接 https://blog.csdn.net/HW140701/article/details/89736246?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task== 配置步骤创建一个...
Revit 二次开发放置基于面的族时生成错误
目前还未找出,碰到这种情况需要做角度的二次校正 在进行基于面的族放置开发时,运行程序,发现停车位的位置全部变化,只有原点位置能够对齐通过排查发现怀疑与板本身的向量有关,==即板放样线条的第一条线==,通过对四个方向不同板进行分析可以发现基于面的族基础预览位置在不断进行改变,并于向量保持平行状态,如下图:同样厚度类型楼板并且不带有坡度,仅首条绘制样条曲线有区别,发现每个停车位初始状态都在发生变化,如果进行开发不考虑此问题,==会在平面斜板或其他情况楼板位置发生变化,==当然这种变化可以通过空格进行控制,但是违反了开发功能减少工作损耗的前提。但是这种猜想只是我的假设,还需跟官方进行求证。 转载请注明来源
Revit Secondary Development Error Generating Face-based Families
Currently not found yet, secondary correction of angle is needed in this situation When developing based on face family placement, running the program found that positions of parking spaces all changed, only origin position can be alignedThrough troubleshooting, suspected related to vector of slab itself, ==i.e. first line of slab profile==. Through analyzing different slabs in four directions, can find that foundation preview position of face-based family is continuously ...
How to Create FTP Site Using Server
[https://blog.csdn.net/qq_34147601/article/details/84394132]
如何使用服务器创建FTP站点
[https://blog.csdn.net/qq_34147601/article/details/84394132]
2016RevitAPI一次性生成多个构件
今天检索API发现一个比较有意思的类:FamilyInstanceCreationData通过传入参数可以使用doc.Create.NewFamilyInstances2()一次生成所有构件。这个类可以用于翻模或调整构件的情况。在方法中自带两种方法.axis&&.RotateAngle可以省却我之前生成构建后ElementTransformUtils.RotateElement()使用的步骤,比以前挨个生成在代码层面要简洁一些,目前还未测试出时间差别。下面是官方里面的示例。 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455ICollection<ElementId> BatchCreateColumns(Autodesk.Revit.DB.Document document, Level level){ List<FamilyInstanceCreationData> fi...
2016 RevitAPI Batch Generate Multiple Components
Today I found a quite interesting class searching the API: FamilyInstanceCreationDataBy passing parameters, you can use doc.Create.NewFamilyInstances2() to generate all components at once.This class can be used for modeling or adjusting components. The method comes with two methods. .axis && .RotateAngle can save the steps of using ElementTransformUtils.RotateElement() after generating components before. It is more concise at call level than generating one by one before. The time diff...
Issue where modifying List A also modifies List B
Reference ArticleToday, while programming, I performed list conversion and simultaneously deleted items from the converted list. 12List<XYZ> A = firList; A.RemoveAt(0); I found that after deleting from A, the firList was also deleted.The specific reason hasn’t been investigated clearly yet. I assume it’s because of memory usage, causing both lists to operate simultaneously. The exact reason is not verified, leaving a note to update later. 123List<XYZ> newFirList = n...
修改A列表同时B列表同时修改的问题记录
引用文章今天在编程时进行列表的转换,同时对转换后列表进行删除操作。 12List<XYZ> A = firList; A.RemoveAt(0); 发现对A进行删除操作后,firList的列表也会随之进行删除。具体原因目前没有查清,估计是因为内存占用的原因,导致两个列表会同时进行操作,具体原因未查清,插个旗子后面补充。 123List<XYZ> newFirList = new List<XYZ>();newFirList.AddRange(firList);newFirList.RemoveAt(0); 后面通过对列表firList进行clone操作,这样两个列表的值可以互不影响。
Solution to "You have no right to access this object because of bucket acl"
Transferring data via OSS, the console reported an error. Through Aliyun issues, it was found that the user permissions were insufficient. The specific solution is to modify the user’s permissions.Operation link: https://help.aliyun.com/document_detail/42777.html?spm=5176.10421674.pdt_dtl.14.8a8067a4I0s2V7#h_58606841522771572256204296
You have no right to access this object because of bucket acl.问题解决办法
通过OSS传递数据,传递是控制台报错, 通过阿里云问题发现是用户权限不够,具体解决办法修改用户的权限。操作链接:https://help.aliyun.com/document_detail/42777.html?spm=5176.10421674.pdt_dtl.14.8a8067a4I0s2V7#h_58606841522771572256204296
SpringMvc Mapping Cannot Enter Issue
When creating project file upload/download function, due to accidental deletion of maven package, later retrieved via updata. After series of retrievals found project suddenly 404;Checked mapping and index.xml files no problem. Then remembered retrieving WebContext in updata in project found Web.xml inside was not set, causing project unable to map. After deleting folder project returned to normal. Record it to prevent forgetting how to fix after accidental hand slip in future!!!
SpringMvc 映射无法进入的问题
在进行项目文件上传下载功能的创建时,由于手贱误删maven包后期通过updata 进行找回,进行一系列找回后发现项目突然之间404;查找映射与index.xml文件均无问题。之后想起检索项目中updata是的WebContext发现里面Web.xml没有进行设置,导致项目无法进行映射。将文件夹删除后项目回复正常。记录一下,防止以后手贱忘记如何修复!!!
Get All Rooms in Project
element and room classes in revit are not connected. To get all room classes in project need 1var rooms = collector.OfCategory(BuiltInCategory.OST_Rooms).OfClass(typeof(SpatialElement)).ToElements(); To get.
获取项目内所有的房间
revit中element与room类不想通,想要取得项目中所有的room类需要 1var rooms = collector.OfCategory(BuiltInCategory.OST_Rooms).OfClass(typeof(SpatialElement)).ToElements(); 获取。
Vector Method to Find Distance from Point to Line Segment
Reference Blog:https://www.cnblogs.com/lyggqm/p/4651979.htmlBy calculating vector, calculating point to line segment through comparing two values to calculate three probabilities of point, inside line segment, left and right sides of line segment. Through calculation can fast find distance from point to line segment. Specific theory refer to blog given.In Revit secondary development, need to find shortest distance from point to line segment. In API there is Curve.Distance can find, can also u...
矢量法求点到线段的距离
参考博客:https://www.cnblogs.com/lyggqm/p/4651979.html通过对向量进行计算,将点到线段的计算通过两个值比较计算点的三种概率,再线段内,线段的左右两侧。通过计算可以快速将点到线段的距离求出。具体理论再参考博客给出。在Revit二次开发中,需要求点到线段最短距离,在API中有Curve.Distance可以求出,也可以使用三角函数将角度求出不过这种方法没有完全测试,总觉得会出现比较麻烦的地方。在求最短距离是,使用矢量法求出颠倒线段的距离,当点在线段外侧是,会将三角形长边c取出,这时候可以求出两者的角度α,再次利用三角函数将垂直边取出,获得最短距离。
Revit Secondary Development Structural Column Solid.Faces Value Issue
Due to project needs, needed to get values for top face of structural column. Found edge length value error when retrieving top face values. Found 6 edges retrieved from top face through lookup :(Impossible for a rectangular column. But didn’t think clearly why extra two values were retrieved, and only one edge length matched column itself. First retrieval used direct geometry from familyinstance, found error, then correct after retrieving symbol first then top face values. Initial thought is...
Revit二次开发结构柱Solid.Faces取值出现问题
由于项目需要,需要对结构柱顶面进行取值。在对顶面取值中发现edge长度取值错误,通过lookup发现取出顶面含有六条边:(作为一个矩形柱是不可能的事情。但是没有思考清楚问什么会出现多取两个值的情况,而且里面边长只有一个符合柱本身需求。 第一次取值使用的是familyinstance情况下直接取geometry,发现错误后通过先对symbol取值再取顶面值会正确。初步想法是由于顶面与其他构件连接造成的geometry取值错误。






