Development
开发实践的总入口,包含所有技术方向的归档。
The main entry for development notes, covering every technical topic.
170 posts
Revit AI开发实践:四种编程代理与Skills、Bridge的对比测试
在同一Revit 2026模型中,四种编程代理完成两项插件开发任务。接入revit-bridge后,38次有效运行全部达标;未接入时,完成率不足一半。
Revit AI Development in Practice: Four Coding Agents Tested with Skills and a Bridge
Four coding agents built two Revit add-ins against the same Revit 2026 model. With revit-bridge connected, all 38 valid runs met the bar; without it, fewer than half did.
Revit 2026与Revit 2027中的Autodesk Model Analytics名称差异
说明Autodesk Model Analytics在Revit 2026与Revit 2027中的注册名称差异,以及通过Journal、.addin清单和运行日志检查插件状态的方法。
Autodesk Model Analytics Name Differences in Revit 2026 and Revit 2027
Explains why Autodesk Model Analytics has a different registered name in Revit 2027 and how to check its status through the Journal, add-in manifest, and runtime log.
Navisworks Exporters 2026与Revit 2026:安装与运行问题记录
记录Navisworks Exporters 2026与Revit 2026配合使用时的运行时版本冲突,以及导出按钮可见但Exporter主体安装不完整的排查与处理方法。
Navisworks Exporters 2026 and Revit 2026: Installation and Runtime Issues
Troubleshooting runtime version conflicts between Navisworks Exporters 2026 and Revit 2026, and incomplete Exporter installations where the export button is visible but fails when clicked.
Vibe Coding带来的效率与失控感
Vibe Coding显著加快了研究进度,但随着项目复杂度提升,我对系统的掌控感也在逐渐下降。
Vibe Coding Made Me Faster, but Less in Control
Vibe coding has accelerated my research, but as my projects grow more complex, my sense of control over them is gradually weakening.
Revit-RAG:在 AI 和用户之间搭一座桥
引言 写在 Revit 2027 发布之后 Autodesk Revit 2027 AI Assistant 已于近日更新。新的 AI 能力已经可以更准确地拆解用户需求,引导用户选择所需数据,同时也开放了与 Claude、Cursor 等工具连通的权限。 也正因为如此,我更希望这个项目能够给一些...
Revit-RAG: Building a Bridge Between AI and Users
Introduction Written After Revit 2027 Release Autodesk Revit 2027 AI Assistant has been recently updated. The new AI capabilities can now break down...
Google Chrome 内置多模态模型(Gemini Nano)本地部署指南
本文将指导您如何在本地环境中下载、配置并调用 Google Chrome 内置的轻量级多模态模型 Gemini Nano,实现离线推理和图片识别功能。 1. 环境配置与实验性功能启用 1.1 检查模型组件状态 首先,访问 chrome://components 页面,查找关键词 "model"...
Google Chrome Built-in Multimodal Model (Gemini Nano) Local Setup Guide
This guide walks you through how to download, configure, and call Google Chrome’s built‑in lightweight multimodal model Gemini Nano in a local envir...
Gemini in Chrome 浏览器AI助手
Gemini in Chrome 是由 Google 推出、直接内置于 Chrome 浏览器中的个人 AI 助手。它能够结合当前标签页内容和浏览历史,为你提供即时摘要、内容对比、写作辅助以及任务执 行能力,让浏览体验更加智能、高效。参考官方介绍可见: 。 与Antigravity一样Google...
Gemini in Chrome: Your Personal AI Assistant Inside the Browser
Gemini in Chrome is a personal AI assistant from Google that lives directly inside the Chrome browser. It understands the content of your current ta...
Chrome 开发者工具 (DevTools) AI 助手指南
本文详细介绍了如何在 Chrome 开发者工具(DevTools,快捷键 F12)中启用并使用 Gemini AI 辅助功能,涵盖控制台报错分析、CSS 样式优化、网络监控及代码解释等核心特性。 参考链接 : [!IMPORTANT] 此功能目前仅在美国区域可用,需要使用高质量的 VPN 连接。...
Chrome DevTools AI Assistant Guide
This article explains how to enable and use the Gemini AI assistant inside Chrome DevTools (shortcut F12 ). It covers core features such as console...
Git SSH 连接异常:WSL2 DNS 劫持导致的 github.com 解析错误
问题现象 在 Windows 环境下使用 Git 通过 SSH 推送代码到 GitHub 时,突然遇到连接重置错误: 更奇怪的是,前一天还能正常推送,今天却突然失败。 问题排查 初步诊断 首先测试 SSH 连接: 检查远程仓库配置: 远程地址配置正确,问题不在这里。 DNS 解析异常 尝试 pi...
Git SSH Connection Exception: github.com Resolution Error Caused by WSL2 DNS Hijacking
Symptoms When using Git to push code to GitHub via SSH in a Windows environment, a connection reset error suddenly occurred: Even more strangely, pu...
使用符号链接组织 AI 技能
使用符号链接组织 AI 编码助手技能的综合指南,以实现更好的项目结构和兼容性。 目录 为什么要使用符号链接? 问题 许多 AI 编码助手(Claude Code, Cursor, GitHub Copilot)会在不同位置查找特定于项目的指令: 有的使用 .ai rules/ 有的使用 .age...
AI Skills Organization with Symbolic Links
A comprehensive guide to organizing AI coding assistant skills using symbolic links for better project structure and compatibility. Table of Content...
Antigravity 使沙盒模式和多Agent协同开发
介绍 Antigravity中提供了协同的多Agent工作模式,并且提供沙盒模式用于演示开发 快捷键 Ctrl + E 打开Agent Management Playground Antigravity中提供了一个沙盒模式可以用作一些比较激进的测试或是多种方案联合测试,类似于我下面演示的内容,我...
Antigravity Playground and Multi-Agent Collaborative Development
Introduction Antigravity offers a collaborative Multi Agent working mode and a Sandbox (Playground) mode for demonstration and development purposes....
Google Antigravity 高级技巧:利用 Skills
Antigravity 在新版本中也支持了Skills的应用,同样针对与项目设置不同的skill进行处理任务,比设置Rules和Workflow要更加的方便。 官方文档 ( ) 中提到的 Skills 是一个非常强大的特性。它允许我们将原本需要重复输入的 Prompt 固化为 Agent 的“程...
Google Antigravity Advanced Technique: Leveraging Skills
Antigravity now supports Skills in its new version, handling project specific tasks through different skill configurations. This approach is more co...
使用影刀快速迁移博客
前言 搜索打开很多博客迁移的工具,但是大部分需要写代码或是通过一些脚本读取html进行转存,这样的话会导致我的博客出现一些数据混乱,一直没有找到一个比较合适方法进行快速迁移。 八月份接触了影刀和n8n各种RPA工具,这次创建了新的博客想着一口气把之前CSDN的170篇文章来一次整体搬家,虽然AI...
Quickly Migrate Blog Using YingDao
Preface I searched for many blog migration tools, but most of them require writing code or using scripts to read HTML for dumping, which often leads...
LLaMA-Factory Gradio 环境配置
参考视频: 按照博主的视频安装之后遇到一些问题,可能是博主使用的lunix , 而我使用的是windows又或是博主租用的服务器会有一些基础配置,所以按照步骤安装会报一些错误。 1. pip install e ".[torch,metrics]"报错 1. 查看.condarc配置文件,将de...
LLaMA-Factory Gradio Environment Configuration
Reference Video: After following the blogger's video installation, I encountered some issues. It might be because the blogger was using Linux, while...
VS Code SSH Remote Connection Issues
由于VS新版本1.102. 无法访问Centos的服务器,所以采用了降级处理,但是降级之后重新安装remote点击openFolder一直显示 There is no data provider registered that can provide view data. 并且整个控制台卡死放大...
SSH Remote Connection Issues in VS Code
Since the new VS Code version 1.102. cannot access CentOS servers, I adopted a downgrade approach. However, after downgrading and reinstalling Remot...
Linux 命令
命令 内容 mv(cp) /root/path/ /etc/ 移动/复制 i 修改 ? 查找 wq 退出 firewall cmd zone=public list all 查找所有的防火墙开放端口 ll 所有的文件信息 cd .. 返回上一级 firewall cmd zone=public...
Linux 命令
Command Content mv(cp) /root/path/ /etc/ Move/ Copy i Modify ? Find wq Exit firewall cmd zone=public list all Find all firewall open ports ll All fi...
Lora模型训练记录
摘要 主要是为了记录自己再模型微调的过程中遇到的一些问题,和一些参数配置 ,显卡为云端租赁使用 多卡模型训练主要是使用koyha ss的框架修改,并使用deepspeed3进行多卡训练 单卡则是使用的aki的工具包进行lora script的训练 bash config 常见问题 镜像站地址 e...
Lora Model Training Records
Abstract This post primarily records issues encountered during model fine tuning and some parameter configurations. The graphics cards used were ren...
Proxifier连接Cursor与Antigravity
1. 下载proxfier , 可以从官网下载 : https://www.proxifier.com/ 激活31天试用版,可以从网上找一个激活码使用 2. 下载Antigravity , 下载 :https://antigravity.google/?hl=zh cn 3. 增加 Proxy...
Connect Cursor and Antigravity with Proxifier
1. Download Proxifier. You can download it from the official website: https://www.proxifier.com/ Activate the 31 day trial, or find an activation co...
Azure Fail To Connected
初始状态 客户端: 本地 Windows (OpenSSH 客户端) 服务器: 云平台 Linux 虚拟机 (Azure) 症状: 本地 SSH 客户端连接失败。 已知条件: 云平台自带的 Bastion(网页终端) 可以 正常登录。 排查模块一:服务器日志分析 问题: sshd 服务日志 (...
Azure SSH Connection Failure Troubleshooting
Initial State Client: Local Windows (OpenSSH client) Server: Cloud Platform Linux VM (Azure) Symptoms: Local SSH client connection failed. Known: Cl...
VS Code SSH-Remote 远程连接之后只能控制台访问无法看到使用openFloder
由于VS新版本1.102. 无法访问Centos的服务器,所以采用了降级处理,但是降级之后重新安装remote点击openFolder一直显示 There is no data provider registered that can provide view data. 并且整个控制台卡死放大...
VS Code SSH-Remote Cannot See openFolder Only Console Access After Remote Connection
Due to new version 1.102. of VS cannot access Centos server, so adopted downgrade processing. But after downgrade reinstalled remote clicking openFo...
Revit & MCP
Github 摘要 当前,各类AI相关资讯充斥着网络。由于近期开发工作涉及AI技术,因此撰写本文介绍MCP与Revit的联动方式,实现公众号中的"一句话建模"功能。 这只是其中一种实现方案,还存在其他技术路径。不过,这种方法能够快速落地,有助于大家迅速探索相关应用方向。 Function Cal...
Revit & MCP
Github Introduction Currently, the internet is flooded with various AI related information. As recent development work involves AI technology, this...
Navisworks中DataProperty值为unknow的处理
再开始接触Naviworks的开发时候会出现Dataproperty的值unknow的情况,这种场景不是报错而是在代码中需要判定值的属性,API会提供一个单独的转换方法,从这些方法中即可获取到正确的属性值。 像是上图一个墙体的属性在代码中直接ToString(),会获取到unknow,是因为没有...
Handling Unknown Data Properties in Navisworks
When starting Navisworks development, you might encounter situations where DataProperty values appear as "unknown". This scenario isn't an error but...
Revit API 创建自适应参照点与放样融合
大多数博客给出的方案都是如何在有自适应族的情况下进行修改定位点或是将数据传入自适应族,如何直接在族文件中创建自适应模型并将点转换为自适应点,连接自适应点成为自适应路径这种方式没有文章介绍. 下面的代码中给出了如何在自适应族文件中创建参照点并转换为自适应点连接成为路径,最终创建放样融合的办 法....
Creating Adaptive Components with Code in Revit
Most blogs only cover how to modify positioning points or pass data into an existing adaptive family. There are no articles introducing how to direc...
Revit 自适应族翻转:用轮廓 Reference 锁定路径
创建一个平面与模型线最终创建自适应族的案例。 这是一个我在Autodeks论坛回复的问题,这里整理一下发表在CSDN。 如果直接使用轮廓族,读取轮廓族的线段再继续创建,会出现路径发生偏转之后形状镜像显示的问题,这种情况出现的原因是因为refernce的附着面变化导致自适应族在路径偏移重新生成形状...
Creating Adaptive Sweep Extrusions in Revit
A case study on creating an adaptive family essentially using a plane and model lines. This is a summary of an answer I posted on the Autodesk forum...
Autodesk AutoCAD .Net 创建PatternSet和工具栏
.Net创建的停靠栏再2016/2022中测试无法放在菜单栏的下部只能在 最上层的位置固定 ,手动调换的时候也无法完成这个操作。 PatternSet PatternSet 是AutoCAD的一个接口,通过接口可以设置工具栏的样式和将自己的窗口植入到工具栏中,其中需要的WPF窗口类型为‘User...
Autodesk AutoCAD .Net Creating PatternSet and Toolbar
The docking bar created by .Net cannot be placed at the bottom of the menu bar in 2016/2022 tests, it can only be fixed at the topmost position . Ma...
在Revit中实现多类别标记
实现Revit中多类别标记的方法 1. 标记方法的关键词: IndependentTag 2. 在创建标记中有两个方法,输入的参数基本一致,但是还是有所区别,下面描述和图片可以更好的区分 第一个函数:通过 实际的项目坐标点 不需要制定标记类型创建多类别标记 Create Method (Docu...
Implementing Multi-Category Tags in Revit
Method to implement Multi Category Tags in Revit 1. Keyword for Tag method: IndependentTag 2. There are two methods for creating tags. The input par...
CAD中Brep的投影到面的API使用
引用Nuget Nuget: AutoCAD.NET.Interop AutoCAD 2016.Net.Base 参考链接 Brep 边界表示(Boundary Representation)也称为BRep表示,它是几何造型中最成熟、无二义的表示法。实体的边界通常是由面的并集来表示,而每个面又由...
Project Line to Surface using Brep in CAD
Nuget References Nuget: AutoCAD.NET.Interop AutoCAD 2016.Net.Base Reference Links Brep Boundary Representation (BRep) is the most mature and unambig...
在Revit中临时隐藏和取消隐藏图元
临时隐藏,网络上面的代码有很多,我这里直接把代码放上来 但是大部分的博客只是讲了如何隐藏构件, 但是现实构件的节点文章只是将构件显示的界面表达出来,但是在实际项目中,用户想的大部分还是直接取消临时隐藏模式,继续进行工作。 这一篇文章讲的是如何启动Revit显示隐藏构件的窗口 取消隐藏: 1. 确...
Temporary Hide and Unhide Elements in Revit API
There is a lot of code for temporary hiding on the internet. I'll post the code directly here. Most blogs only explain how to hide elements, or just...
在Revit中创建选择过滤器
过滤器分为选择过滤器与规则过滤器 规则过滤器可以看我之前写的这一篇文章: 选择过滤器顾名思义就是可以将选择的构件ID集合传入并加入到视图过滤器中,有一些场景需要对某些构件进行过滤选择,但是没有共同的逻辑规则进行筛选的情况下可以选择使用选择过滤器. 下面是我的代码,增加了截面填充突然与实体填充样式...
Creating Selection Filters in Revit
Filters are divided into Selection Filters and Rule based Filters. For Rule based Filters, you can refer to my previous article: Selection Filters,...
WordPress 常见问题
报错: 最开始系统报错: 以为是内存池不够导致的,但是云服务后台查看还有50%以上的内存空间没有使用,但是依旧按照文章的办法将 my.conf 的参数修改为64M并增加了SWAP的内存大小。 但是错误依旧存在,内容为: 此时,突然想起来之前VSC无法登录ssh期间我升级了glib到2.28版本,...
Common WordPress Issues
Error: Initial system error: Thought it was caused by insufficient memory pool, but checking the cloud service backend showed more than 50% memory s...
在Revit中实现凸包算法
引用 《计算几何》 导言:凸包的例子 前言 1. 算法的基本逻辑与理念来自于《计算几何》这本书,后面其他几章的演示也都会在Revit中实现调试,希望能够每个算法都找一个合适的实现方向在Revit中实现 2. 所有的代码都是c 编写并在Revit中调试,因为部分接口与判定使用了Revit API,...
Convex Hull Algorithm Implementation in Revit
Reference "Computational Geometry" Introduction: An Example of Convex Hull Preface 1. The basic logic and concept of the algorithm come from the boo...
Fix Far Manager 3 显示配置
原文在上面的链接,给出了具体的方式,验证可行,但是对于像我这种的新手来说可能不太好找到选项修改的位置,在下面给出更加具体的方式。 1. 点击标题位置 1. 选择 Interface Setting 1. 修改原文中给出的两个值,点击 OK , ALT+F9 保存配置,并重启
Fix Far Manager 3 Display Interface Garbled Issues
The original article at the link above provides a specific method which I verified works. However, for a novice like me, it might be hard to find wh...
OOCT WPF_D3D项目报错无法加载依赖项
运行示例项目报错缺少dll,发现运用了这个大老李,通过添加 PATH 路径也无法解决,看到debug文件夹下面没有其他的依赖项。 通过depneds工具可以看到 OCCTProxy D3D.dll 缺少依赖项,图中的缺项都是OCCT生成的模块dll所以讲这些dll从 ..\build\win64...
OOCT WPF_D3D Project Error Cannot Load Dependency
Running sample project reported error missing dll, found used this big shot, adding PATH path also cannot solve, saw no other dependencies under deb...
Revit Add-in Manager 多重依赖无法更新的问题解决办法
我使用的是Add in Manager 是这个开源项目 项目逻辑 1. 项目采取的办法是通过加载 RevitAddinManage 这个dll,并在文件中动态加载用户的测试dll从而达到快速加载,快速测试的目的 2. 通过这种办法可以将多个程序附加到revit中并进行测试 问题点 1. 我有一个...
Solution to Multi-Dependency Update Issues in Revit Add-in Manager
I am using this open source project related to Add in Manager: Project Logic 1. The project adopts a method of loading the RevitAddinManage dll, and...
DataGrip 连接 Centos MySql失败
1. 首先检查Mysql是否运行: systemctl status mysqld , 如果显示没有启动则需要启动mysql 1. 检查防火墙是否打开,是否打开3306的端口 sudo firewall cmd list all 如果下面3306没有打开则打开3306端口 sudo firewa...
DataGrip Failed to Connect to Centos MySql
1. First check if Mysql is running: systemctl status mysqld , if it shows not started, you need to start mysql. 1. Check if the firewall is open, an...
Revit 使用依赖反转进行开发
依赖注入的技术已经很成熟,本文主要是说明一下Revit中的适用版本与介绍相关的开源项目。 版本问题 版本 目前的依赖注入包无法支持Revit 2020 以下的版本,原因是因为包中的依赖项与Revit本身的依赖项不一致导致的,所以说如果使用Revit + DI 进行开发需要再2020以上 。 如果...
Using Dependency Injection for Development in Revit
Dependency Injection (DI) technology is already quite mature. This article mainly explains the applicable versions in Revit and introduces relevant...
objectarx + libcurl下载文件遇到的问题
1. 下载失败导致cad崩溃,报错'Error handler re entered.Exiting now ',原因是因为我将libcurl相关的功能继承到一个类中,在类中进行相关的webapi交互,但是由于最开始进行了请求所以没有将curl进行初始化导致的传递数据错误.只需要在函数开始时进行...
ObjectARX and Libcurl File Download Issues
1. Download failure causing CAD crash, error 'Error handler re entered. Exiting now'. The reason is that I inherited libcurl related functions into...
WebUI 参数设置
本地部署之后通过 localhost:7860/docs 可以看到但是如果无法访问,可以直接看github或是其他的文件,通过写这篇文章记录一下自己工作中使用到的 txt2img 这个API参数类型。 由于我更多偏向建筑结构外立面渲染所以很多人物或是细节不需要,会少很多的设置。 更详细的可以参照...
WebUI API Parameter Configuration Guide
After local deployment, you can access localhost:7860/docs . However, if it's inaccessible, you can check GitHub or other documents directly. I wrot...
libcurl 报错 35
libcurl code 35 定义: SSL CONNECT ERROR 我这里问题情况会出现以下两种 1. SSL证书认证,可以添加相应的头取消或是添加验证 1. 粗心大意,在本地调试使用的 https 服务端接口忘记调整成'http'协议
Libcurl Error 35 Solution
Libcurl code 35 definition: SSL CONNECT ERROR I encountered this issue in the following two situations: 1. SSL certificate verification. You can add...
Objectarx 使用libcurl请求WebApi
因为开发cad需要请求服务器的数据,再次之前我在服务器搭设了webapi用户传递数据,所以安装了libcurl在objectarx中使用数据。 Open VS2012 x64 Native Tools Command Prompt 补充地址: 我在此将相关的引用配置图片,cad里面的应用和常规的...
Using libcurl to Request WebApi in ObjectARX
Because CAD development requires requesting data from the server, request data through WebAPI set up on the server before, so libcurl was installed...
CAD ObjectArx 二次开发 创建工具栏实现点击button出现抽屉式菜单
实现在CAD中创建工具栏并添加菜单命令,如下图 参照文章: 主要实现路径是通过创建一个可停靠窗口,并在其中创建toolbutton并给button点击事件添加命令,将子菜单menu显示在button位置,如果需要更加顺滑的交互,需要重写一下menu的样式。 像文中所说,可以通过一个xml文件来控...
Creating a Toolbar with Drawer Menu in CAD ObjectARX
Implement creating a toolbar in CAD and adding menu commands, as shown below: Reference article: The main implementation path is to create a dockabl...
Objectarx 2021使用vs2019生成报错 /RTCc rejects conformant code
使用VS2019/VS2022生成项目报错 严重性 代码 说明 项目 文件 行 禁止显示状态 错误 C1189 error: /RTCc rejects conformant code, so it is not supported by the C++ Standard Library. Ei...
ObjectARX 2021 VS2019 Build Error /RTCc rejects conformant code
Using VS2019/VS2022 to build the project reports an error Severity Code Description Project File Line Suppression State Error C1189 error: /RTCc rej...
ObjectArx2016 报错 对象不支持 additem属性或方法
配置VS2019 + ObjectArx2016 此处报错 对象不支持 additem属性或方法 ,报错显示文件中的 classID 错误,修改ID值可以正确生成,但是查阅了几个文件都无法满足,应该是根据实际的更新而更新的ID。 关于解决办法及ClassID的解释参照:
ObjectArx2016 Error Object Does Not Support additem Property or Method
Configuration VS2019 + ObjectArx2016 Here reported error Object does not support additem property or method . The error shows classID error in the f...
配置VS2019 + ObjectArx2016
此处报错 对象不支持 additem属性或方法 ,报错显示文件中的 classID 错误,修改ID值可以正确生成,但是查阅了几个文件都无法满足,应该是根据实际的更新而更新的ID。 关于解决办法及ClassID的解释参照:
Configuring VS2019 + ObjectARX 2016
Here it reports an error Object does not support additem property or method . The error indicates looking for classID in the file. Modifying the ID...
Objectarx MFC 添加ListControl并控制显隐
最主要的是实现一个Button点击将下方的List显示出来,制作成抽屉式菜单工具。 这篇文章是想实现点击工具栏并控制List的显隐。 参照: MFC中查找构件使用ID进行控制,这个和WPF,WinForm的name一样,通过获取这个构件进行操作。控制显隐的接口是: ShowWindow(TRUE...
Adding ListControl and Controlling Visibility in ObjectARX MFC
The main objective is to implement a Button click to show the List below, creating a drawer style menu tool. This article aims to implement clicking...
RevitNet 调用 Revit API 中射线法求模型同一个构件出现两个不同值的问题记录
射线法求交是很多三维模型求碰撞和测量间距最常用的节点,但是再使用射线法将 target 设置为 element 的时候会发现会出现两个相同的值。 下面用楼板距离,下图中会出现两个不同的值,在我修改板厚之后发现正好是板厚的距离,可以猜测射线法会对两个face进行判定相交,但是与我们需要的每个ele...
Revit API Ray Method Returns Two Values for Same Element Analysis
Ray intersection is one of the most commonly used nodes for collision calculation and distance measurement in many 3D models. However, when using th...
Revit二次开发 Grid无法获取reference的报错
在Revit2018以后,修改了Grid的Reference获取办法,需要使用下面的代码进行获取 而在之前是需要获取Grid的Curve.Reference才能进行标注创建 改动应该是为了更加安全便捷的获取Grid的Refence而做出的修改。关于这个事情的官方回答详情可以看下面这篇文章
Error Getting Grid Reference in Revit API
After Revit 2018, the method for obtaining Grid Reference has been modified. You need to use the following code to retrieve it: Previously, you need...
Arc 打断拆分成多个线段
公司插件的梁齐斜板功能更新,设计师提出需求可以拆分弧梁,并能对齐到板顶。 本文只讨论拆分弧梁,椭圆再后续更新。 1. 首先看以下弧形的创建api API中提供了三种方法 第一种时指定起点与终点,最后选择顶点形成的弧形 第二种是指定面,半径,起点角度与终点角度 第三种则是弧形中心点,半径,起点角度...
Breaking an Arc into Multiple Segments
The company plugin's beam to slab function has been updated. The designer requested a feature to split arc beams and align them to the top of the sl...
Revit二次开发 PromptForFamilyInstancePlacement 方法报错的解决办法
参照 1. 这里是一些使用钩子进行取消的方案,但是在我的函数中运行失败,在这里记录一下后续在研究失败原因 2. 查阅SDK的内容,但是也是运行失败,放在这里看看后续有没有启发 解决方案 https://thebuildingcoder.typepad.com/blog/2017/05/promp...
Resolving PromptForFamilyInstancePlacement Error in Revit API
Reference 1. Here are some solutions using hooks to cancel, but they failed in my function. Record here for researching failure reasons later. 2. Co...
Revit 二次开发 创建零件
有的项目需要使用零件进行地砖的划分,比如这样: 使用零件可以很好的统计数量,设置铺设缝等数据,所以下面提供一个可以创建零件的方法 1. 首先需要创建零件不见 2. 在零件中添加分割,此处线段不需要检查碰撞或者封闭之类,直接计算出值和边界线传入即可 3. 找到缝隙的para并设定值 使用以上三步即...
Creating Parts in Revit Secondary Development
Some projects need to use parts to divide floor tiles, like this: Using parts can basically calculate quantities and set data such as paving joints,...
WPF 通过一个dictionary管理多个Command注册
需要开发一个族库插件,中间交互的命令很多,需要很多绑定,使用MVVM 直接绑定Command觉得整个ViewModel会过于杂乱,这里通过创建一个ICommandManage的接口管理Command。通过WPF中ValueConvert接口将传入字符串转换成ICommand命令。 c ViewM...
Managing Multiple WPF Commands via Dictionary
Developing a family library plugin involves many interactive commands and requires many bindings. Using MVVM to directly bind Commands makes the ent...
Revit 二次开发修改填充区域线样式
做了一个自动测算净高的插件,需要通过注释块标记高度,但是出来的时候会有边界线,如下图,通过filledregionType的lineweight定义宽度失败,通过LineStyleId进行设置,但是直接获取LineStyle样式只会获取管理 线样式里面的线,没有我们需要的<不可见线 这个分类。...
Modifying Filled Region Line Styles in Revit API
I made a plugin to automatically calculate the clear height, which requires marking the height with annotation blocks, but boundary lines appeared w...
UE5配置VR项目环境
整个步骤借鉴的文章 https://blog.csdn.net/weixin 44350205/article/details/119233809 但是还是依旧报错,我把我自己的步骤整理记录一下 1. 配置 可以查看ue官方对于不同版本的配置要求 https://docs.unrealengin...
UE5 Configure VR Project Environment
The whole step borrowed article https://blog.csdn.net/weixin 44350205/article/details/119233809 But still reported error. I organize and record my o...
Revit 二次开发 创建紧凑型pushbutton
为了好理解叫做紧凑型Button起始应该是栈式Button,关键词 StackedItems ,效果如下图 https://knowledge.autodesk.com/support/revit/learn explore/caas/CloudHelp/cloudhelp/2014/ENU/R...
Creating Stacked PushButtons in Revit API
To make it easier to understand, it is called Compact Button, but it should actually be called Stacked Button. The keyword is StackedItems . The eff...
Revit二次开发使用MaterialDesignThemes.Wpf
在开发Revit插件的时候很多会使用WPF创建窗口,我这里引用了 MaterialDesignThemes 这个组件,在这个文章里面记录一下相应的步骤和问题 使用 安装 1. 直接从nuget中搜索 MaterialDesignThemes 安装 2. 添加reosurces 问题 如果用的是多...
Using MaterialDesignThemes.Wpf in Revit Secondary Development
Often when developing Revit plugins, WPF is used to create windows. Here I referenced the MaterialDesignThemes component, and I will record the corr...
Web Api 服务端发布问题记录
服务器信息: 系统: Windows Server 2008 R2 错误: 1. Connection id “0HMGNTPDIIA4M“.Request id “0HMGNTPDIIA4M:00000002“:An unhandled exception was thrown 手动点击pub...
Web Api Server Deployment Issue Record
Server Information: System: Windows Server 2008 R2 Error: 1. Connection id “0HMGNTPDIIA4M“.Request id “0HMGNTPDIIA4M:00000002“:An unhandled exceptio...
创建链接模型标注
创建Floor等有实体形状的标注 今天在回答Revit API Forum的问题的时候发现一个问题,如何获取链接模型的reference从而实现标注 ,我便使用 CreateLinkReference(doc) 这个方法直接获取,结果创建dimension失败 报错有无效的reference,后...
Creating Dimensions for Linked Models in Revit
Creating Dimensions for Elements with Solid Geometry like Floors Today, while answering a question on the Revit API Forum about how to get the refer...
Revit二次开发 创建空心模型并与指定构件剪切
具体API可以查阅官方文档,这里提供剪切的关键词 Void 总述 应用场景 在实际项目中,想要做一个族剪切构件,需要创建一个空心拉伸,然后执行剪切命令剪切掉我们希望剪切的模型构件 在算量的时候应用比较广执行连接/剪切命令,或者实际工程中的连接顺序 或是在精度要求高或者业主拖着不给结算的项目中也会...
Creating Void Solids for Cutting in Revit Secondary Development
For specific API, please refer to the official documentation. Here is the keyword for cutting Void . Overview Application Scenarios In actual projec...
Revit 二次开发 未能加载文件或程序集“Microsoft.Xaml.Behaviors”或它的某一个依赖项
写了几个WPF界面,在addinmangager时没有发现问题,当编到一个addin文件中打包时,报错 未能加载文件或程序集“Microsoft.Xaml.Behaviors, PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项 修改多次未果,后来想起来Revit...
Revit Secondary Development Error Loading Microsoft.Xaml.Behaviors
I wrote several WPF interfaces and found no problems when using AddinManager. However, when compiled into an addin file and packaged, it reported an...
.net core application报错The required library hostfxr.dll could not be found.
.Net Core和Framework生成的程序,.Net Core需要再运行环境中应用,直接扔给其他人会报错 参照连接 1. 运行 build dotnet build 1. 创建基于x64系统的包 dotnet publish r win x64 c Release /p:PublishSi...
.net core application error The required library hostfxr.dll could not be found
Programs generated by .Net Core and Framework. .Net Core needs to be applied in the running environment. Sending it directly to others will cause an...
Inno Setup 创建Revit安装包
之前通过NSIS打包文件后来发现 ,使用了一下发现相较于NSIS个人感觉Inno稍微好一点,整个操作界面会比NSIS要简洁许多,有汉化版可以添加我这里用的是英文原版 向导设置 1. 安装后创建新的文件向导 File New 2. 点击Next进入设置界面 因为打包的安装包大部分是放在指定的文件夹...
Creating Revit Installer with Inno Setup
Previously, I packaged files through NSIS, and later I found . After using it, I found that Inno is slightly better than NSIS personally, and the en...
Inno-Setup 读取带空格路径导致无法启动外部程序
安装包完成安装时可以启动外部程序将Revit的Addin文件复制到相应的版本文件位置中,但是我使用 如果用户安装选择的 C:\Program Files (x86) 默认路径将会导致传入的字符串自动分割为数组导致程序运行错误 去stackflow提问,找到解决方案,下面把解决方案和相应连接放到下...
Inno Setup External Program Launch Error with Spaces in Path
When the installation package completes the installation, it can start an external program to copy the Revit Addin file to the corresponding version...
WPF 截图工具
上周需要再产品上编写一个截图工具,发现博客上的文章都是只有截取屏幕这一步,或是需要关注公众号之类的营销,便自己撸了一个,今天在github上发现了一个开源的框架,如果准备开始写的可以参照那个框架。 https://github.com/WPFDevelopersOrg/WPFDevelopers...
WPF Snipping Tool Implementation
Last week I needed to write a snipping tool on the product. I found that the articles on the blog only had the step of capturing the screen, or requ...
QT release MYSQL an instance of QCoreApplication is required for loading driver plugins
记录 Qt 程序在 Debug 正常、Release 报 QMYSQL 驱动错误时的排查:补充插件路径、打包程序并复制 MySQL 客户端库。
QT release MYSQL an instance of QCoreApplication is required for loading driver plugins
Qt MySQL release-build notes: locate the plugins directory, add its library path, package the application and include the MySQL client libraries. Article body is in Chinese.
Revit 多版本类库项目创建WPF窗体
首先向大家安利一下我们的Reivt二次开发开源项目 在开源的框架中,提供了一个多版本生成的框架,不再使用原有的.netframework框架改为.net core框架,可以直接拿过来修改一下,如果有需要自定义修改的可以参照 里面提供了基本的讲解和配置 .net core 项目 如何在类库项目中添...
Creating WPF Window in Revit Multi-Version Library Project
First of all, I would like to recommend our Revit secondary development open source project In the open source framework, a multi version generation...
Revit 二次开发 HOF 方式调用transaction
再看《C 函数式编程》一书的时候看到HOF的概念,感觉在日常开发的过程中可以使用此方式整理一个拓展方法,实现程序的快速调用。 1. Transaction函数继承自 IDisposable 2. 我们平时开发需要使用using内部对Revit进行操作。实现自动拆卸 3. 我们需要创建一个泛型函数...
Using HOF Pattern for Transactions in Revit API
When reading the book "Functional Programming in C ", I saw the concept of HOF. I felt that this method could be used to organize an extension metho...
C++ 检测程序是否在运行
参考材料: 函数原因主要是为了服务自动更新的函数,在检测到程序退出后执行后续函数。 使用第二个引用的时候报错,发现是for循环堆栈溢出,应该是字段判定函数的问题,导致每个程序的名称都判定正确,建议采取第一个网址中的内容。 code:
C++ Check if Process is Running
References: The function is mainly for the auto update service, executing subsequent functions after detecting that the program has exited. When usi...
MFC 引用tinyxml,x64
想做一个使用ftp自动更新的模块,需要读取xml文档并于服务器的数据核对然后下载,本以为按照网上的教程可以解决但是中间还是遇到了许多问题,这里就记录一下步骤。 配置 1. Visual Studio 2022 2. tinyxml,下载链接: 步骤 1. 直接使用nuget下载tinyxml包最...
MFC Reference tinyxml, x64
I wanted to make a module that uses ftp for automatic updates. I needed to read xml documents and check against server data and then download. I tho...
Revit自动更新 - C++ FtpGetFiles()
FtpGetFiles()函数详细解释详见官方文档 https://docs.microsoft.com/en us/windows/win32/api/wininet/nf wininet ftpgetfilea 网上搜这个函数发现这个函数介绍的有点少,所以将自己运行成功的代码放上来希望能够帮...
Revit Auto Update - C++ FtpGetFiles()
For detailed explanation of FtpGetFiles() function see official documentation https://docs.microsoft.com/en us/windows/win32/api/wininet/nf wininet...
git 推送发现远程仓库地址错误
问题:项目上传时总是首先上传一个错误的仓库地址然后才是当前仓库地址 问题原因: 由于不懂git导致设置了git的globalconfig在全局设置中添加了默认路径,导致每次上传都会上传一次全局路径导致出现错误。 解决办法 使用命令 git remote v 可以看到一直有一个origin存在,使...
git push found remote repository address error
Issue: Project upload always uploads to a wrong repository address first and then to the current repository address Reason: Due to not understanding...
Revit二次开发 创建适配多版本项目(2)
https://www.cnblogs.com/ponus/p/11046624.html !comments 可以按照上方链接地址访问原作者博客和github 此处按照自己的情况记录了一下项目迁移时遇到的问题 多版本项目搭建 1. 创建新项目后,打开配置管理器创建多个版本的编译管理器 2. 卸...
Creating Multi-Version Revit Projects (Part 2)
https://www.cnblogs.com/ponus/p/11046624.html !comments You can visit the original author's blog and github by following the link above. Here, the p...
Revit二次开发 新创建构件无法使用JoinGeometry等问题
问题场景: 实现梁间墙封堵的功能,在我创建墙后希望将上部梁与墙连接处理,呈现更好的视觉效果,但是在我创建墙体后直接使用joinGeometry将会报错无法连接。 解决办法: 刷新一下文档 代码: 如果要让 AI 在真实模型中读取构件并验证修改,可以先按 完成环境配置,再在模型副本中检查连接顺序。...
Solved - Newly Created Elements Cannot Join Geometry in Revit API
Problem Scenario: Implement the function of blocking walls between beams. After I create a wall, I hope to connect the upper beam with the wall to p...
File 文件线程占用的问题
在检索文件是否存在,如果不存在就创建这个命令的时候,后续的操作会报错线程占用 原因: File.Create() 命令会输出Stream,需要将流关闭,否则在运行期间会报错线程占用的问题
File Thread Occupation Issue
When checking if a file exists, if it does not exist and the command to create it is executed, subsequent operations will report a thread occupation...
折线多边形的原位放大
@[toc] 需要生成的效果 吊坑或集水坑的基本原理是按照板边界外侧生成一圈墙体进行封堵 折线多边形的原位缩放两种办法 一种是周培德的计算几何 算法设计与分析(第三版)中的办法另外一种是引用自 的办法,最后第二种可以解决项目问题,但是两种算法都写了一遍就都分析一下,这种情况以后还会遇到方便回查。...
In-Place Offset Scaling of Polyline Polygons
@[toc] Effect to be generated The basic principle of hanging pits or sumps is to generate a circle of walls along the outside of the slab boundary f...
Revit二次开发 自动生成剖面楼梯标注
引用 前置 样式 内容 上面链接文件中提供了一种屏幕坐标转换为项目坐标的办法,原理时通过屏幕中的点与边界的比例换算到项目中计算得出,但是博主的方法只适用于XY平面的情况下,如果应用到剖面中就无法满足了,剖面会出现正交剖面及平行XY轴切割或是斜向剖面,所以下面的使用了博主的思想修改了一下方法 1....
Automatically Generate Section Stair Dimensions in Revit Secondary Development
Reference Prerequisite Style Content The linked file above provides a method for converting screen coordinates to project coordinates. The principle...
关于Revit中楼梯竖向标注的问题记录及生成方式的解决方案
最终成果 成果还需要补充,目前只完成了楼梯部分还需要 1. 外侧墙体做联动标注 2. 考虑到正向中分专业建模的情况还需要对链接模型进行处理 3. 用户自定义选取竖向标注位置 4. 做尺寸标注字体避开梯段 5. 标高与尺寸标注样式的选择问题 对齐竖向标注位置 楼梯架构 楼梯的开发首先需要分清这几个...
Solutions for Vertical Stair Dimensions in Revit API
Final Results The results still need to be supplemented. Currently only the stairs part is completed and still needs: 1. Linked dimensioning for out...
Revit 二次开发 ManageMC3.0 引用冲突
生成项目是发现这个警告但是不影响程序正常运行,搜索这个dll的作用发现是在Revit中才会出现的链接库,查看自己引用的dll文件发现 adwindows.dll 文件引用的2019导致版本冲突,问题不大但还是记录下来,防止再次粗心出错。
Revit Secondary Development ManageMC3.0 Reference Conflict
When generating project found this warning but does not affect normal operation of program. Searched function of this dll found it is a link library...
Teigha开发读取CAD文字信息出现偏移
今天读取cad文字发现文字出现偏移,反复测试发现不是代码的问题,午休时想起来cad图纸中的文字因为设计师使用插件会出现一定的问题,所以打开cad发现文字坐标点与实际位置差距正好是生成偏差,下面的图片就是cad文字的坐标信息。 看了一下cad的text函数,发现也没有能够直接取到位置的函数,但是可...
Text Offset Issue When Reading CAD Text Info in Teigha Development
Today, when reading CAD text, I found that the text was offset. Repeated testing found that it was not a code problem. During the lunch break, I rem...
QT Word wdmain.chm [24632]
昨天使用QT在word中插入图片,发现报错,查了一圈都说是路径问题,于是在qDebug中打印文件路径发现没有错误路径,之后进入debug发现是使用 QString.Split() 方法分割数据库字符串会出现空字符,没想到因为自己的一时偷懒浪费了将近一天的时间,因为我用的 QT Creator 控...
QT Word wdmain.chm [24632]
Yesterday, when using QT to insert a picture in word, I found an error. I checked around and said it was a path problem. So I printed the file path...
QT Copy Table 复制文档内已有表格
1. word操作的接口,我前期是对照博主的代码对应api学习的 2. 成果复制图中的表格到文档末尾 今天想实现一个需求,复制word模板内的表格,搜索各大引擎大部分是修改表格内部属性或是取值赋值之类的操作,没有整体复制一个表格的需求。 在开始之前应该先了解QT 中 QAxObjext 方法中...
QT Copy Table Duplicate Existing Table in Document
1. Interface for word operation, I studied corresponding api against blogger's code in early stage 2. Result Copy the table in the picture to the en...
C# 根据模板将数据写入word
参照的下载链接创建的项目接口: ,但是资源是一个txt文件,需要重新手打代码,不过也算是练习了。 在开始之前,我们需要先从nuget安装 Microsoft.Office.Interop.Word ,下面是代码需要的直接复制就可以,用起来和NPOI还是稍微有些不同。
C# Writing Data to Word via Template
Project interface created based on reference download link: , but the resource is a txt file, need to type the code manually, considered as practice...
QT+ CLion + Revit 问题汇总
ui因为一直想实现QT+CLion+Revit的开发路径,所以从头开始学习QT与C++,在这里记录一下QT遇到的问题及后续的问题。如果开发周期不足估计会用一两周爆肝出来,随时会断更。 目前的思路是C++创建dll,在dll里面编写QT界面,之后用C++ Revit 的API接口实现整个步骤。 中...
QT+ CLion + Revit Issues Summary
Because I always wanted to implement the QT+CLion+Revit development path, I started learning QT and C++ from scratch. Here I record the problems enc...
error LNK2001 无法解析的外部符号 “public virtual void __thiscall
今天创建了一个工厂模式,中间定义了两个继承函数,但是在主函数中我没有写内容,直接在继承函数中写的算法,结果报错 error LNK2001: 无法解析的外部符号 "public: virtual void thiscall ,各种搜索引擎也没有解决错误,最后觉得应该是父函数中函数未定义造成的错误...
error LNK2001 unresolved external symbol "public virtual void __thiscall
I created a factory pattern today, and defined two inherited functions in the middle, but I didn't write content in the main function, directly writ...
CLion Debugger process finished with exit code -1073741819
读取sqlite3数据时报错,排除代码问题后感觉实在toolbain上,于是修改Debug Setting从QT MINGW到MINGW还是报错,后来在jetbrains的网站解决方案中发现回复是MinGW的bug更换vs debugger后解决。 原文地址:
CLion Debugger process finished with exit code -1073741819
An error occurred while reading sqlite3 data. After ruling out code issues, I felt the problem was with the toolchain, so I changed the Debug Settin...
NPOI 连续插入多张图片的办法,及部分样式的代码
因为项目要求需要在同一个单元格导入两张图片,依据了下面两个链接的办法 上面代码的主体是一样的,只不过插入多张图片需要在同一个 patriarch 中,上面博文提到过不能使用for循环,所以我第一次直接将固定的两个图片路径创建,发现创建失败,于是把他放到for循环里面发现可以创建,或许是一个bug...
Method to Insert Multiple Images Consecutively in NPOI, and Partial Style Code
Because the project requirement needs to import two images in the same cell, relying on the methods of the following two links The main body of the...
Winform DataGridView 绑定资源后设置行高与布满图片的设置
1. 我通过datasource绑定了datagridview的资源,通过遍历dataTable后台增加行,因为有图片所以需要修改列宽与行高,但是修改属性界面中的几个属性都无法干预这个动作,排查后发现,直接在增加Row的类里面修改即可。下面是code: 1. 图片布满ColumnItem在属性里...
Winform DataGridView Binding Resource Then Setting Row Height and Fill Image Setting
1. I bound resources of datagridview through datasource, adding rows in background by traversing dataTable, because there are images so need to modi...
CLion 2021.3 + QT 5.14.2 配置
参考链接: 1. 安装 在配置之前首先安装CLion和QT,相应下载链接网上都有,直接官网下载即可 1. 配置 2.1 打开CLion创建项目 2.2 创建好之后点击 File Setting Build,Exexution,Deployment ToolChains 配置文件,我们需要把里面的...
CLion 2021.3 + QT 5.14.2 Configuration
Reference Links: 1. Installation Install CLion and QT before configuration. Download links can be found online, or download directly from their offi...
Teigha 4.0 Net 开发记录
因为做Revit的二次开发多一点,拿到Teigha的时候还有点懵,看完样例还是觉得一知半解的,原因还是对于AutoCad的底层逻辑不是很明白,包括视图与布局之间的层级关系,块与视图的关系等等,看代码会有些累。 下面通过一个案例说一下昨天一天整理的知识点。 teigha本身是ODA下面的Cad分项...
Teigha 4.0 Net Development Record
Because doing more Revit secondary development, was a bit confused when getting Teigha. After reading examples still felt half understood. Reason is...
c++ 单独使用remove_if造成数据重复的问题
在使用 remove if 时发现此函数无法对容器内满足 pred 表达式的数据删除, remove if 将会使用列表内其他数据填充,而本身的大小不变,具体解释可以参考 ,这种情况下需要搭配 erase 方法彻底删除. 原因 remove if 方法是找出符合条件的元素,并使用 erase 删...
Issue with C++ remove_if causing data duplication
When using remove if , I found that this function cannot delete data in the container that satisfies the pred expression. remove if will use other d...
C++ 没有找到接受const _Ty类型的左操作数的运算符
在使用STL中的count(const )算法时报错 没有找到接受const Ty类型的左操作数的运算符 , 原因是 使用自己创建的双向链表类没有重载左运算符 == ,添加上重载运算即可。
C++ operator not found which takes a left operand of type 'const _Ty'
When using the count(const) algorithm in STL, an error operator not found which takes a left operand of type 'const Ty' occurred. The reason is that...
ListView IsMouseOver 创建鼠标悬停即可选中的效果
通过 WPF ListView.ItemContainerStyle 的 IsMouseOver 触发器,将悬停项的 IsSelected 设为 True,并设置前景色的 XAML 示例。
ListView IsMouseOver Create Mouse Hover Selectable Effect
A WPF ListView XAML example using an IsMouseOver trigger in ItemContainerStyle to set IsSelected to True and change the foreground color.
WPF WrapPanel IsMouseOver 控制Visibility控件不停闪烁
搜索问题,发现答案都是如果使控件闪烁的答案,最后去 找答案,如果希望鼠标进入就显示控件,可以使用 Opacity 属性控制显隐。 code:
WPF WrapPanel IsMouseOver Controlling Visibility Causes Flicker
Searching for the problem, found answers were mostly about how to make controls flicker. Finally went to to find the answer. If you want the control...
Revit PromptForFamilyInstancePlacementOptions 族放置API
这段时间在做族库,在做到最后需要与Revit连同时,希望可以用户选择下载然后直接在Revit中布置构件,查找API ,发现可以使用 PromptForFamilyInstancePlacementOptions 方法实现族放置。 代码 比较简单,只不过需要记住,由于 PromptForFamil...
Revit PromptForFamilyInstancePlacementOptions Family Placement API
Doing family library during this period, when needed to connect with Revit at the end, hoping users can choose to download and then directly arrange...
WCF 超出最大配额(65536)
今天通过WCF连接数据库拉取500条数据报出这个错误,百度问题发现大部分解决办法都是修改 App.config 的'ServiceModel 参数,如下 再修改完这个的时候发现还是报错,于是检查我的启动项 觉得应该是初始化WCF之后,会将配置文件中的内容忽视,所以依旧报错,如果需要解决错误只需要...
WCF Exceeded Max Quota (65536)
Today pulling 500 records from database via WCF connection reported this error. Baidu problem found most solutions are modifying ServiceModel parame...
WCF 找不到具有绑定 NetTcpBinding 的终结点的与方案 net.tcp 匹配的基址。注册的基址方案是 [http]。
原本WCF只使用了\< BasicHttpBinding \ ,现在新增net.tcp协议,添加后服务器报错 找不到具有绑定 NetTcpBinding 的终结点的与方案 net.tcp 匹配的基址。注册的基址方案是 [http]。 ,检查Web.config与网站配置之后依旧报错。 最后参照...
WCF Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http].
Originally WCF only used \< BasicHttpBinding \ , now added net.tcp protocol. After adding server reported error Could not find a base address that m...
Revit二次开发 斜面上旋转基于面构件错误的问题
今天修改了一下之前的功能,测试时发现无法在斜面上旋转基于面的构件,检查了一下午,从面的获取到tranform的转换都核查的一遍发现没有错误,最后发现应该是旋转时AXIS参数的问题,检查AXIS的向量与斜面的FACE.NORMAL一致,垂直于指定面,但是每次旋转都出错,之后将旋转轴设置为(0,0,...
Revit Secondary Development Error Rotating Face-based Component on Sloped Face
Today modified previous function a bit, found unable to rotate face based component on sloped face during testing. Checked for an afternoon, checked...
使用C++进行Revit二次开发
由于VC++是在CLR中被编译所以无法达到加密的效果,如果想要保护自己的代码还是建议使用C++做核心算法,C 做交互。 由于做族库中,考虑到连接数据库代码可能会被反编译,上个版本中我采用的是WCF的方式与服务器数据交互,文章可在我前几篇找到,但是最近在学习QT相尝试使用QT+C++或是VC++开...
Use C++ for Revit Secondary Development
Since VC++ is compiled in CLR, it cannot achieve encryption effect. If you want to protect your code, it is recommended to use C++ for core algorith...
Revit Winform显示在Revit上层
引用文章: 当我们使用模态窗体时,当焦点不在窗体上时,窗体会隐藏在所有层级后方,如果遇到不熟悉的用户会不停点击按钮,从而生成多个窗体。并且对于单一窗体的交互也不友好。 在网站中搜索,经常会告诉大家设置 TopMost 但是这一操作会把窗体设置为最顶层,当我们使用其他应用程序,如:浏览器。窗体依旧...
Revit Winform Display on Top of Revit
Reference Article: When we use modal form, when focus is not on form, form will hide behind all layers. If encountering unfamiliar user, will click...
Winform 调整SplitContainer中Panel的大小
点击Panel后点击ESC取消然后将鼠标移动到边界上即可调整大小
Winform Resize Panel in SplitContainer
Click Panel then click ESC to cancel then move mouse to boundary to resize
MySQL 锁粒度与ACID
表锁(Table Lock) :它会锁定整张表。一个用户在对表进行写操作(插入、删除、更新等)钱,他需要先获得写锁,这会阻塞其他用户对该表的所有读写操作。没有写锁的时候,其他用户可以获得读锁,多用户之间的读锁相互不阻塞。 行级锁(row lock) :行级锁能够最大程度的支持并发处理(同时也带来...
MySQL Lock Granularity and ACID
Table Lock : It locks the entire table. Before a user performs a write operation (insert, delete, update, etc.) on the table, they need to acquire a...
WCF使用控制台驱动Revit
目前再做族库项目,已经将WPF界面做好但是由于开始的时候是WPF项目,中间的交互操作需要在Revit中实现,想着通过WPF驱动Revit从而实现两个窗口之间的互通。 一个办法是通用的,使用外部事件实现,这一条路径比较容易 另一个办法是在看 的博客的时候发现有一个 ,通过WCF作为连接驱动两个独立...
WCF Use Console to Drive Revit
Currently doing family library project, already made WPF interface but because it was WPF project at start, intermediate interaction operations need...
csharp-special-folder
Title : 获得电脑特殊文件夹的办法 官方连接: 我们通常会在文件中加载一些缓存文件,方便下次运行的时候调取。如果使用硬盘地址如: H:\preview ,用户可能会出现没有H盘符的情况,但是所有的电脑都会有一些固定的缓存路径. 如果想要访问Temp文件夹,在电脑中我们可以输入 %temp%...
How to Get Special Folders on Computer
Title : How to Get Special Folders on Computer Official Link: We usually load some cache files in the file to facilitate retrieval next time. If usi...
QT 学习之路
添加动作 添加资源文件 上面示例中我们的toolbar没有图片显示,基本与背景融为一体。原因是因为我们没有配置资源文件,程序也就没办法找到那个图片进行引用。 这一步就像c 中在项目属性中添加图片类似,建立图片与程序之间的连接。 步骤: 1. 文件 新建 AT QT Resources File...
QT Learning Path
Add Action Add Resource File In the example above, our toolbar has no picture display, basically integrated with the background. The reason is that...
Mysql 根据父节点查询所有子节点函数
数据量5k+,参照博客中给出的函数,运行一次需要15s,耗时太长,所以最终没有选择在Mysql中进行数据的遍历,而是采用在用户选取父节点时,在类中遍历,总体耗时会小很多,也不会给用户带来尺钝感。 平时使用Mysql 的函数不多,所以还是记录下来以后学习使用 1. 在Mysql 中函数创建后会提示...
Mysql Function to Query All Child Nodes Based on Parent Node
The data volume is 5k+. Referring to the function given in the blog, it takes 15s to run once, which is too long. So finally I didn't choose to trav...
WCF 已超过传入消息(65536)的最大消息大小配额。若要增加配额,请使用相应绑定元素上的 MaxReceivedMessageSize 属性。
今天使用WCF从数据库拉取数据时,爆出这个错误,查看 Web.config 看到里面 maxReciveMessageSize 已经设置为最大,最后通过在WCF调试器中修改配置文件中的参数,将数修改为最大,重新配置后即可运行成功。 参考博客: 如果时客户端的接收出现问题,只需要去客户端的配置文件...
WCF Exceeded Maximum Message Size Quota for Incoming Message (65536). To increase quota, please use MaxReceivedMessageSize property on corresponding binding element.
Today when using WCF to pull data from database, reported this error, checked Web.config saw maxReciveMessageSize inside already set to max. Finally...
Revit 左右值编码存储分级树形结构设计
近期在进行族库管理的开发,原来的想法通过左右插值进行族库的层级管理后来模拟了一下发现对于后期新增大量的项目族库会有不少的负担,所以把这个想方法记录下来,给有需要的人吧。 如果不涉及大批量的修改,可以使用这种办法,但是整个房建行业恐怕只有规范硬编码之类的能够适合。 左右值比较的关系主要和下图一样...
Revit Left Right Value Coding Storage Hierarchical Tree Structure Design
Recently developing family library management. Original idea was to perform hierarchical management of family library through left right interpolati...
c++ 虚继承
之前看过一段时间c++,但是一直没有找到合适的项目进行熟悉,所以在跟着github的一个开源项目学习c++,地址为: 虚继承的最终派生 虚基类的最终派生将会对构造函数函数进行解析,包括(无参,无参和缺省函数),如果我们将A加入一个无参构造,将C省略将不会报错。
C++ Virtual Inheritance
I used to study C++ for a while, but never found a suitable project to get familiar with it. So I am learning C++ following an open source project o...
Revit MEP中Connector连接器的问题
在Revit二次开发中,相较于土建模块多出了管道系统模块,每个机电管件与管道之间连接由Connector控制,从而将整个管道系统串联起来 如果在LookUp中点开管道可以看到分为ConnectorManagement 与 All Refs两个类,之中都存储了Connector,刚接触的人可能会觉...
Connector Issues in Revit MEP
In Revit secondary development, compared to civil engineering module, there is piping system module. Connection between each MEP pipe fitting and pi...
c# 字符串与16进制互导
参考链接: 结果: code:
C# String and Hex Conversion
Reference Links: Result: code:
C++ 获取文件夹下所有文件并修改为16进制名
参考连接:
C++ Get all files in a folder and rename to Hex
Reference Links:
WPF 绑定图片及后不显示的问题
Tree绑定图片参照的 我在TreeView中绑定图片后发现只有图片位置但是一片空白,通过修改路径和后缀名均无法显示,就像下图中的情况 但是我有一张图片可以显示,对比两个图片的属性发现需要将新导入的图片属性修改为始终复制就可以显示了
WPF Binding Image Then Not Displaying Issue
Tree binding image reference After I bound image in TreeView found only image position but blank, modifying path and suffix name both cannot display...
WPF项目 程序不包含适用于入口点的静态“Main“方法
今天打开项目调试WPF项目,发现报错 程序不包含适用于入口点的静态"Main"方法 通过之前提交的Git历史记录发现与原来的项目.scporj的文件在 App.xaml 的定义上有区别,讲节点 <Page 修改为 <ApplicationDefinition 之后可以重新运行成功
WPF Project Program Does Not Contain Static "Main" Method Suitable for Entry Point
Today opened project to debug WPF project, found reporting error Program does not contain a static "Main" method suitable for an entry point Through...
Revit 二次开发 遍历相同楼层所有可以连接墙体
目的:是为了将所有没有连接到一起的墙体进行连接,满足出图要求,刚开始采用深度遍历的方式发现会报错:堆栈溢出,原因是循环层数太多导致,之后优化了一下遍历方式使用广度遍历,问题解决。下面贴出两种获取墙体并连接的方式 Element.GetgeneratingElementIds 这个方法可以获得连接...
Revit Secondary Development Traverse All Connectable Walls on Same Floor
Purpose: To connect all unconnected walls together to meet drawing requirements. At first adopted depth traversal method found error: stack overflow...
[转] IDEA配置Algs4
IDEA 配置 Algs4 的转载资料索引,保留原博客地址,供查阅算法课程库的环境配置说明。
[Repost] IDEA Configuration for Algs4
A reference to the original IDEA and Algs4 setup article, preserving its source link for readers configuring the algorithms library.
Revit导出DWGExportSetting
今天发现Revit中并没有提供导出 导出设置 的按键,查阅API发现这块属于 DWGExportSetting 类型,如果导出就只能自己写接口进行导出。大部分导出这个位置的应该关注的是图层修改器,这里因为他的加载标准,图层修改器是无法读取,如果需要传递图层需要传递项目标准或自己写接口进行传递,这...
Revit Export DWGExportSetting
I found today that Revit does not provide an export button for Export Settings . Checking API found that this piece belongs to DWGExportSetting type...
Revit中实现WCF客户端部署
在之前的WCF文章中,成功创建了本地部署与服务器部署,但是当我想要在Revit端实现读取数据库信息 于是创建了一个项目测试效果。 参考案例: 代码 服务端 csharp 客户端 1. 添加引用项目 2. csharp 重点是: 如果刚开始学习有些混乱,uri的位置一般就是引用服务的位置 上面网址...
Implementing WCF Client Deployment in Revit
In previous WCF articles, successfully created local deployment and server deployment. But when I wanted to implement reading database information a...
WCF IIS配置并引用 并初步使用Mysql数据库
学习网址: 本地资源配置与IIS资源配置我是根据微软官网学习的,有兴趣的可以跟着敲一下,我这里只说一下我遇到的问题 IIS 1. 再IIS中配置服务时,根据教程上创建虚拟目录,发现如果我如果再默认站点创建服务将会提示 InvalidOperationException: 找不到类型“Micros...
WCF IIS Configuration and Reference and Preliminary Use of Mysql Database
Learning URL: Local resource configuration and IIS resource configuration I learned according to Microsoft official website, interested can follow t...
FontCreator 粘贴字体无法映射的问题
我们从一个字体中复制字体后需要点击edit paste speical才能将编码和外形一起复制过来
FontCreator Paste Font Mapping Issue
When we copy a font from one font file, we need to click edit paste special to copy the encoding and shape together.
Revit中ComputerStructure中的ShellType
今天碰到一个群友问关于 设置出错的问题 There must be at least one core layer, i.e. one layer which is not a shell layer. 发现这块没有涉及过,便研究了一下 报错的翻译为:需要存在至少一个核心层 这块单纯的开发人员可...
ShellType in ComputerStructure in Revit
Today met a group friend asking about setting error of Problem There must be at least one core layer, i.e. one layer which is not a shell layer. Fou...
NPOI循环创建Cell数据丢失问题
多个数据循环创建,最终导出Excel会出现数据大面积丢失,只有零星几个数据出现。 后来发现其实是循环内部的代码出现问题,分析一下其实是因为自己NPOI和代码复查没有做好 导致循环数据出现问题,所以记录下来,防止自己再次范相同的错误! 左图中循环会疯狂创建 IRow 导致之前创建的行数据丢失,只会...
NPOI Cell Data Loss Issue in Loop Creation
When creating multiple data in a loop, eventually huge areas of data will be lost in the exported Excel, with only a few sporadic data appearing. La...
大话设计模式
1024 观后感 读完设计模式之后发现之前的许多项目代码可以进行优化,精简。在其他项目中也可以对我这种外行菜鸟有更多的启发。但是后面21 28设计模式只是粗略读了一下,以后应用到的时候在进行专项补充吧。 前面的几个设计模式准备在以后几个项目中进行尝试或者年底将之前的项目使用设计模式进行优化,练习...
Big Talk Design Patterns
1024 Thoughts after reading After reading Design Patterns, I realized that many previous project codes could be optimized and streamlined. It can al...
Revit 自启动插件管理小工具制作
在安装过多插件时会导致Revit启动时报错:由于数量超过18个无法加载后续产品的错误,大部分许可文件会放置在 C:\ProgramData\Autodesk\Revit\Addins\ 下,通过修改后缀名即可将拒绝文件的启动。对于像某些产品会一次性防止十几个许可文件,设计工程师修改起来比较复杂所...
Revit Auto-start Plugin Management Tool Creation
When installing too many plugins, it will cause Revit start error: error that subsequent products cannot be loaded due to quantity exceeding 18. Mos...
【git】 refusing to merge unrelated histories
新项目上传至Github时出现错误我 fatal: HttpRequestException encountered. ,参照此 安装 GCMV 依旧报此问题的错误,意识到应该是在github创建readme没有进行拉取的问题 输入命令 git pull u master 报错 fatal: r...
[git] refusing to merge unrelated histories
When uploading a new project to Github, an error occurred fatal: HttpRequestException encountered. . Referring to this to install GCMV still reporte...
Revit 二次开发 获取多段轴网的location
点开多段轴网会发现轴网类型为 MultiSegmentGrid ,里面没有Locaiton可以获取,如果想要获取路径可以通过两种方式进行获取 方式一: Revit中可以进行编辑草图模式的均可以通过删除构件收集 构件ID 进行获取相应路径 代码可以参照叶雄进的获取板边界文章进行获取 方式二:直接...
Revit Secondary Development Get Location of Multi-segment Grid
Clicking multi segment grid will find grid type is MultiSegmentGrid , there is no Location to get inside. If want to get path can get through two wa...
WinForm重写右上角“关闭”按钮的方法
链接地址:
WinForm Method to Override "Close" Button in Upper Right Corner
Link Address:
Revit Dcokpane 某个 ItemsControl 与它的项源不一致
今天再可停靠窗口进行点击按钮从而再 DataGrid 中上传数据时,发现多次上传会出现问题<span style="color:Red" 某个 ItemsControl 与它的项源不一致 </span ,后来再查问题时发现是因为由于有多线程异常导致的问题。 原因应该是可停靠面板与Revit本身时...
Revit Dockpane An ItemsControl is Inconsistent with its Item Source
When clicking button in dockable window to upload data in DataGrid today, found that multiple uploads will cause problem <span style="color:Red" An...
根据字符串获得相应枚举值和DescriptionAttribute
根据字符串获得枚举值 根据枚举值获得DescriptionAttribute 参考链接:
Get Enum Value and DescriptionAttribute from String
Get Enum Value from String Get DescriptionAttribute from Enum Value Reference Links:
Winform DatagridCombox绑定数据显示无法对设置了 DataSource 的组合框排序。请使用基础数据模型对数据排序
今天使用winform创建datagridview其中绑定了combox数据 项目报错: 无法对设置了 DataSource 的组合框排序。请使用基础数据模型对数据排序 对照多个博客发现自己的赋值并没有问题,看到最后一句使用 使用基础数据 ,便点开编辑列发现设置 sorted 为true设置为...
Winform DatagridCombox Bind Data Show Cannot Sort ComboBox with DataSource Set. Please use underlying data model to sort data
Today used winform to create datagridview which bound combox data Project reported error: Cannot sort ComboBox with DataSource set. Please use under...
revit二次开发 Idling&ExternalEvent 空闲事件与外部事件
Idling&ExternalEvent 空闲事件与外部事件 空闲事件 空闲事件是指在revit无操作时执行命令 解释 code <span style="color:red" TIPS:在挂载事件后最好后缀卸载事件,不然事件不会停止将一直重复 idling 里面的操作:smile cat:</...
revit Secondary Development Idling&ExternalEvent
Idling&ExternalEvent Idling Event Idling event refers to executing commands when revit has no operation explanation code <span style="color:red" TIP...
Revit二次开发 房间分割线ID重复的问题
今天在检索房间分隔线时,发现如果墙体中端??与其他墙体有连接, 会将房间分隔线断开,可以看到此处位置房间边界变为五段 本身并没有什么太大的影响,但是如果我们点开里面 Line 里面的 ElementID 进行查看时,会发现 Element重复的问题,如果开发者在此处进行重复线段的提起那判断并将I...
Revit Secondary Development Room Separator ID Duplicate Issue
Today when retrieving room separator lines, found if wall middle end?? has connection with other walls, Will break room separator line, can see room...
算法第四版 练习题记录
课后题并没有全部做,只是挑出几个无法确定或不能想到结果的进行记录 因为之前没有使用过IDEA导致浪费很多时间进行IDE的配置用户调试 算法第四版 算法第一章 题目概要:检索用户输入"[()]{}{[()()]}"进行相应符号的配对,如果符号无法匹配输出 false 思路,参考之前书中提到过的算术...
Algorithms 4th Edition Practice Notes
I didn't complete all the exercises, just recorded a few where the results were uncertain or unexpected. Since I hadn't used IDEA before, I wasted a...
C# wpf 智能选择对话框
准备: WpfToolKit.dll,System.Windows.Controls.Input.Toolkit.dll 下载或通过nuget搜索安装,下载链接在第一个博客中 内容: 前端 通过wpftool框架实现自动补全信息或智能选择的功能 在前端添加 xmlns:toolkit="clr...
C# WPF Smart Selection Dialog
Preparation: Download WpfToolKit.dll, System.Windows.Controls.Input.Toolkit.dll or install via NuGet search, download link is in the first blog. Con...
C++ primer&primerPlus笔记
C++ primerplus 第六章分支语句是看到一个案例, 其中我们将 cout<<ch+1 替换为 cout<<++ch 之后会出现两个不同的 ch+1 ++ch 可以看到一个为字符前进以为一个将 char 转换为整型,看书加上自己目前的理解觉得是 cout 输出参数会自动根据内容进行输出调...
C++ Primer & PrimerPlus Notes
Saw a case in C++ primerplus Chapter 6 Branching Statements, When we replace cout<<ch+1 with cout<<++ch , two different results appear: ch+1 ++ch We...
MySQL查询表中的列表名称
select column name from information schema. COLUMNS where table schema='recheck model' and table name = 'problem model'; 调用 information schema 中的col...
MySQL Query Column Names in Table
select column name from information schema. COLUMNS where table schema='recheck model' and table name = 'problem model'; Call the columns view in in...
vs2019连接MySQL You have a usable connection already.
找到大佬在解决vs2017的问题,发现这是mysql本身的bug,需要安装特定版本的 mysql connect net 和 mysql connect net
vs2019 Connect MySQL You have a usable connection already.
Found big shot solving vs2017 problem, found this is bug of mysql itself, need to install specific version of mysql connect net and mysql connect ne...
数据库视图使用
视图(view) 通过对视图的使用,我们可以将多个表的待使用项串联成一个虚拟表,通过对虚拟表的调用,可以节省语句的复杂程度。 CREATE VIEW view 创建视图 DROP VIEW view 删除视图 如果需要更新视图,可以先进行删除然后新建也可以使用 CREATE OR REPLACE...
Database View Usage
View By using views, we can string together items to be used from multiple tables into a virtual table. Calling the virtual table can simplify the c...
App.config文件中数据库连接加密
一定要用管理员身份运行,不然会出现 object already exits 的问题 将文件名称修改为 Web.config ,启动命令行工具 工具 命令行 输入 aspnet regiis pef " 目标字符串 " " 目标地址(e:\) 之后将 Web.config 修改回 App.con...
Database Connection Encryption in App.config File
Be sure to run as administrator, otherwise the object already exits problem will occur. Change the file name to Web.config , start the command line...
C#通过数据库进行软件的自动更新
看了许多博客是利用本地和服务器的xml文档进行更新,便想着能不能用数据库完成这个操作 基本思路与一般的方式一直,本地会有一个xml文件里面记录版本号更新时间软件本地地址信息 xml database 数据库结构 code 本例是通过ftp进行试验,通过读取本地xml文档版本与服务器数据库进行比较...
C# Software Auto-update via Database
I read many blogs using local and server XML documents for updates, so I wondered if this could be done using a database. The basic idea is consiste...
c#如何比较版本号的大小
参照文章: 在c 中有 version 类可以进行版本号的比较
How to Compare Version Numbers in C#
Reference Article: In C , there is a Version class that can be used to compare version numbers.
Mysql指定用户访问特定数据库
今天使用新建用户访问云服务器的mysql发现一只报错并且只能访问infomation schema数据库,按照博客上的办法输入指令 grant all privileges on test db. to testuser@localhost identified by "123456" mysq...
Mysql Assign User to Access Specific Database
Today, using a new user to access the mysql of the cloud server, I found that an error was reported and I could only access the infomation schema da...
mysql在Windows server 2012R2配置缺少vcruntime140_1.dll文件解决办法
由于我安装的是mysql8.0.20安装的c++是2015应该是版本不一致导致每次检索都会出现缺少vcruntime140 1.dll文件,可以通过 下载2015 2019版进行dll的更新
mysql Missing vcruntime140_1.dll File Solution on Windows server 2012R2
Since the mysql I installed is 8.0.20 and the installed c++ is 2015, it should be the version inconsistency that causes the missing vcruntime140 1.d...
使用NSIS制作revit插件安装包
@ 使用NSIS制作revit插件安装包 下载 Addin文件 == 我们需要将addin文件进行单独存放 == 位置放在读取文件的section后就可 修改脚本文件 1. 增加对addin文件的路径自动修改 在NSIS 中 $1 代表字符串,其中上面三行是组装目标路径, Push <Assem...
Use NSIS to Create Revit Plugin Installer
@ Use NSIS to Create Revit Plugin Installer Download Addin File == We need to store the addin file separately == Just place it after the section rea...
revit二次开发可停靠面板上点击按钮与revit主窗口交互
创建可停靠窗口 Github地址 引用 创建WPF窗口 添加完WPF窗口后将 usercontrol 修改为 Page ,F7切入后台同样修改为Page,同时需要引用 Autodesk.Revit.UI.IDockablePaneProvider 页面位置使用Dockpositon枚举值进行控制...
Revit Secondary Development Dockable Panel Click Button Interaction with Revit Main Window
Create Dockable Window Github Address Reference Create WPF Window After adding WPF window, modify usercontrol to Page , F7 cut into background also...
Revit二次开发 将构件信息导入到数据库中
revit中构件数据量较大,在做标准化或者审核软件的时候需要用到数据库,将数据导入数据库使得计算能够脱离软件进行计算也算是一种另类的软件 减负 demo 1. 获取构件 测试项目随便框选几个构件进行输出数据 2. 连接数据库 因为是测试所以将mysql连接设置为本地连接,这一步应该是创建Mysq...
Revit Secondary Development Import Component Info to Database
Data volume of components in revit is large. Database is needed when doing standardization or audit software. Importing data into database enables c...
MySQL insert into 语句中字符串报错
在传入值时,在C 中代码直接传入string值,报错显示未找到符合列 运行出错后发现是自己没有考虑到命令全部以字符串形式传入,此时description传入的字符串未带有双引号<u " " </u ,命令的字符串形式为: 可以看到description没有双引号所以命令出错,需要修改命令desc...
MySQL String Error in insert into Statement
When passing values, looking at C code directly passing string value, error reported showing matching column not found After the running error, I fo...
Java heap space内存不足问题
主要原因为自己的云服务器内存过小下载的内容导致的内存超出问题,以下是解决此问题时参考的解决方案
Java heap space Indiscufficient Memory Issue
The main reason is that the memory of my cloud server is too small, and the downloaded content caused the memory overflow problem. The following are...
spring mvc 解决文件名中文乱码的问题
需要对文件名称进行转码 file.getName().getBytes("utf 8"), "iso 8859 1") 加入iso 8859 1的转码 参考链接:1. 2.
Spring MVC Solve Chinese Filename Garbled Issue
Need to transcode filename file.getName().getBytes("utf 8"), "iso 8859 1") add iso 8859 1 transcoding Reference link: 1. 2.
eclipse vaildating一直不动的解决办法
对项目的.project文件去掉下面两个配置 org.eclipse.wst.jsdt.core.javascriptValidator 和 org.eclipse.wst.jsdt.core.jsNature 重启Eclipse 转载于:https://www.cnblogs.com/cat...
Solution to Eclipse validating stuck
Remove the following two configurations from the project's .project file org.eclipse.wst.jsdt.core.javascriptValidator and org.eclipse.wst.jsdt.core...
Mysql连接远程数据库无法连接
MySQL 远程连接失败的外部排查资料入口。本文保存原参考链接,具体解决步骤见链接中的原文。
MySQL Remote Connection Failed
A saved reference for troubleshooting failed MySQL remote connections. This note links to the original solution rather than reproducing its steps.
Forge环境配置与运行
一 项目准备 1. 视频教程是官方Forge空中讲堂的回放 项目fork的也是当时教程里面的 ,想一开始就自己动手的可以fork官方的 2. fork项目 本次fork的教程是ASP.net项目需要的工具visual studio 2019 1. 选择 克隆代码 2. 粘贴github项目 ...
Forge Environment Configuration and Running
1. Project Preparation 1. The video tutorial is a replay of the official Forge online lecture. The project is also forked from the in the tutorial a...
REVIT构件连接与实例类型连接接点
构件之间的连接接口为: JoinGeometryUntils 实例之间的允许连接;墙体为: WallUntils 结构框架为: StructuralFramingUtils
REVIT Component Connection and Instance Type Connection Node
Connection interface between components is: JoinGeometryUntils Allowed connections between instances; Wall is: WallUntils Structural framing is: Str...
vs2019推送github时报错:githubterminal prompts disabled
通过修改.git/config文件修改[remote origin]下url为https://uesr.name:[email protected]/ user.name 为用户名 user.secret 为用户密码
vs2019 Push Github Error: githubterminal prompts disabled
By modifying .git/config file modify url under [remote origin] to https://uesr.name:[email protected]/ user.name is username user.secret is use...
Revit二次开发在visual studio 2019中使用git进行版本控制
参考链接 == == 安装配置 安装git打开git bash后输入命令 git config 确定是否安装 git config global user.name "youname" 填写github注册ID git config global user.email "emailaddress...
Revit Secondary Development Use Git for Version Control in Visual Studio 2019
Reference Link == == Install Configuration Install git open git bash and input command git config Confirm whether installed git config global user.n...
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 progr...
如何使用服务器创建FTP站点
保存的服务器 FTP 站点搭建教程链接。具体操作请阅读原文;本页是资料索引,不包含完整配置步骤。
How to Create FTP Site Using Server
A saved external reference about creating an FTP site on a server. Open the linked source for the tutorial; this page contains no setup instructions.
2016RevitAPI一次性生成多个构件
今天检索API发现一个比较有意思的类:FamilyInstanceCreationData 通过传入参数可以使用doc.Create.NewFamilyInstances2()一次生成所有构件。 这个类可以用于翻模或调整构件的情况。在方法中自带两种方法.axis&&.RotateAngle可以省...
2016 RevitAPI Batch Generate Multiple Components
Today I found a quite interesting class searching the API: FamilyInstanceCreationData By passing parameters, you can use doc.Create.NewFamilyInstanc...
修改A列表同时B列表同时修改的问题记录
今天在编程时进行列表的转换,同时对转换后列表进行删除操作。 发现对A进行删除操作后,firList的列表也会随之进行删除。 具体原因目前没有查清,估计是因为内存占用的原因,导致两个列表会同时进行操作,具体原因未查清,插个旗子后面补充。 后面通过对列表firList进行clone操作,这样两个列表...
Issue where modifying List A also modifies List B
Today, while programming, I performed list conversion and simultaneously deleted items from the converted list. I found that after deleting from A,...
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.8a8067a4I0s...
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 speci...
SpringMvc 映射无法进入的问题
在进行项目文件上传下载功能的创建时,由于手贱误删maven包后期通过updata 进行找回,进行一系列找回后发现项目突然之间404; 查找映射与index.xml文件均无问题。之后想起检索项目中updata是的WebContext发现里面Web.xml没有进行设置,导致项目无法进行映射。将文件夹...
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 retrie...
获取项目内所有的房间
revit中element与room类不想通,想要取得项目中所有的room类需要 获取。
Get All Rooms in Project
element and room classes in revit are not connected. To get all room classes in project need To get.
矢量法求点到线段的距离
参考博客: https://www.cnblogs.com/lyggqm/p/4651979.html 通过对向量进行计算,将点到线段的计算通过两个值比较计算点的三种概率,再线段内,线段的左右两侧。通过计算可以快速将点到线段的距离求出。具体理论再参考博客给出。 在Revit二次开发中,需要求点到...
Vector Method to Find Distance from Point to Line Segment
Reference Blog: https://www.cnblogs.com/lyggqm/p/4651979.html By calculating vector, calculating point to line segment through comparing two values...
Revit二次开发结构柱Solid.Faces取值出现问题
由于项目需要,需要对结构柱顶面进行取值。在对顶面取值中发现edge长度取值错误,通过lookup发现取出顶面含有六条边:( 作为一个矩形柱是不可能的事情。但是没有思考清楚问什么会出现多取两个值的情况,而且里面边长只有一个符合柱本身需求。 第一次取值使用的是familyinstance情况下直接取...
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...
WPF Treeview绑定Revit数据
本文参照 作者:SmlAnt 出处:http://www.cnblogs.com/smlAnt 注意:转载请保留以上内容,并标作者和出处。 文章有很多有很多有用的知识点 在制作功能需求是需要用到Treeview命令,而且在制作过程中发现TreeView的层次架构符合Revit的层次结构,能够让数...
WPF TreeView Binding Revit Data
This article references Author: SmlAnt Source: http://www.cnblogs.com/smlAnt Note: Please retain the above content and indicate the author and sourc...
WPF revit二次开发使用树形结构显示revit数据
在功能研发时,需要使用属性结构让revit本身的数据结构更加的清晰,再写代码时采用了mvvm模式对,将数据采集整理再后端完成。利用递归的方式将整个层级进行分类。 本文参照了:https://www.cnblogs.com/yeyunfei/p/5408931.html https://www.j...
WPF Revit Secondary Development Using Tree Structure to Display Revit Data
During function development, it is necessary to use attribute structures to make the Revit data structure itself clearer. When writing code, the MVV...
Revit二次开发使用投影到面Project坐标提取错误
今天在写代码的时候使用face.Project这个节点取投影点,实现通过点的修改完成对斜面的附着功能。在之前使用这个节点的时候没有发现问题,今天测试时如果将目标便宜到很低的一个点,是同投影到面节点,最终会造成一个比较大的误差。(如果是自己的节点使用错误,希望能够留言提醒 。 !)。 可以看到两个...
Revit Secondary Development Project Coordinate Extraction Error Using Projection to Face
Today when writing code used face.Project node to get projection point, to realize attachment function to sloped face by modifying point. Did not fi...
Linq语句中IEnumerable <T>判断为空办法
TIME : 2019 06 09 15:38:45 判断集合办法 参考文章:https://blog.csdn.net/u010178308/article/details/77681573 在使用LINQ语句的时候会生成IEnumerable <T source的集合,在查询集合是否为空的时...
Method to Check if IEnumerable <T> is Null in Linq Statement
Reference Article: https://blog.csdn.net/u010178308/article/details/77681573 When using LINQ statements, a collection of IEnumerable <T source will...
ListView添加全选按钮
通过点击全选按钮将整个列表进行全选或取消 XML c listView中Items格式是绑定数据格式,如果格式使用CheckBox将会报错。
ListView Add Select All Button
Select all or cancel entire list by clicking select all button XML c Items format in listView is binding data format, if format use CheckBox will re...
WPF DataGrid多于空白行问题与重复绑定问题
在做插件开发时,希望通过DataGrid进行数据交互。直接绑定Itemsource时会出现两个相同的列 可以通过将AutoGenerateColumns的值设置为False进行消除,如果不想在列表中显示多余的空行,需要将CanUserAddRows 设置为False
WPF DataGrid Excess Blank Rows Issue and Duplicate Binding Issue
When doing plugin development, hope to perform data interaction through DataGrid. Directly binding Itemsource will appear two identical columns Can...
Revit二次开发在项目中给链接模型附加过滤器
视图过滤器分为规则过滤器与选择过滤器: 选择过滤器:需要传入elementId列表对指定的Element进行操作 规则过滤器:通过对指定参数的规则描述,传入categeorys的Id进行操作 具体可参照API update 2019 API删除掉SET 命令与模型颜色指定方法,颜色附加未实验,需...
Revit Secondary Development Attach Filter to Linked Model in Project
View filters are divided into rule filters and selection filters: Selection filter: Need to pass in elementId list to operate on specified Element R...
Revit墙体构造层修改与查询
Revit墙体构造层修改与查询 一直想用博客记录下自己的一些问题和解决方案,今天是在CSDN上的第一篇博客,其余的会陆续从知乎转移过来 参考链接:https://blog.csdn.net/u010585773/article/details/83267911 在Revit中如果对墙体厚度进行数...
Revit Wall Compound Layer Modification and Query
Revit Wall Compound Layer Modification and Query Always wanted to record some of my problems and solutions with blog. Today is first blog on CSDN, r...