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 debug folder. Via depends tool can see OCCTProxy_D3D.dll missing dependencies, missing items in picture are all module dlls generated by OCCT so copy these dlls from ..\build\win64\vc14\bind or copy all to WPF project folder then can run.After copying to folder can create new file, can run sample project.
OOCT WPF_D3D项目报错无法加载依赖项
运行示例项目报错缺少dll,发现运用了这个大老李,通过添加PATH路径也无法解决,看到debug文件夹下面没有其他的依赖项。 通过depneds工具可以看到 OCCTProxy_D3D.dll 缺少依赖项,图中的缺项都是OCCT生成的模块dll所以讲这些dll从..\build\win64\vc14\bind 中复制或是全部复制到WPF项目的文件夹下即可运行。复制到文件夹之后可以新建文件,可以运行示例项目。
Solution to Multi-Dependency Update Issues in Revit Add-in Manager
I am using this open source project related to Add-in Manager: RevitAddInManager Project Logic The project adopts a method of loading the RevitAddinManage dll, and dynamically loads the user’s test dll within the file to achieve rapid loading and testing. Through this method, multiple programs can be attached to Revit and tested. Issue I have a test file called RevitTest. My main working files are A, A.UI, A.API… If I load a method from A into the test file and test it by attaching the Add...
Revit Add-in Manager 多重依赖无法更新的问题解决办法
我使用的是Add-in Manager 是这个开源项目 RevitAddInManager 项目逻辑 项目采取的办法是通过加载RevitAddinManage这个dll,并在文件中动态加载用户的测试dll从而达到快速加载,快速测试的目的 通过这种办法可以将多个程序附加到revit中并进行测试 问题点 我有一个测试文件叫做RevitTest,我的主要的工作文件为 A , A.UI , A.API ,,, 如果我将A的一个方法加载到测试文件中通过附着Add-in 进行测试,那么会出现 A更新之后无法依赖正确项的问题,必须重启才可以完成测试。下图可以看到多次测试会动态加载多个dll,这个是我修正之后的情况,修正之前XGZ_Tool只能依赖最早的一般,问题就出现在这里  Assembly.Load()在具体了解解决办法之前,先了解一下Assembly.Load() , 通过这个函数可以动态加载我们需要的dll也...
DataGrip 连接 Centos MySql失败
首先检查Mysql是否运行:systemctl status mysqld , 如果显示没有启动则需要启动mysql 检查防火墙是否打开,是否打开3306的端口sudo firewall-cmd --list-all如果下面3306没有打开则打开3306端口 12345678910111213public target: default icmp-block-inversion: no interfaces: sources: services: dhcpv6-client ssh ports: 3306/tcp protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: sudo firewall-cmd --zone=public --add-port=3306/tcp --permanent 如果添加成功则显示success 本地测试是否能够连接成功 telnet ip 3306 显示连接实现但是ping ip可以成功 后来想...
DataGrip Failed to Connect to Centos MySql
First check if Mysql is running:systemctl status mysqld, if it shows not started, you need to start mysql. Check if the firewall is open, and if port 3306 is open.sudo firewall-cmd --list-allIf 3306 is not open below, then open port 3306. 12345678910111213public target: default icmp-block-inversion: no interfaces: sources: services: dhcpv6-client ssh ports: 3306/tcp protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: sudo firewall-cmd --zone=...
Using Dependency Injection for Development in Revit
PrefaceDependency Injection (DI) technology is already quite mature. This article mainly explains the applicable versions in Revit and introduces relevant open-source projects. Version IssuesVersionCurrent dependency injection packages cannot support Revit versions below 2020. This is because the dependencies in the package are inconsistent with Revit’s own dependencies. Therefore, if you are developing with Revit + DI, you need to use version 2020 or higher. If there are other ways, please i...
Revit 使用依赖反转进行开发
前言依赖注入的技术已经很成熟,本文主要是说明一下Revit中的适用版本与介绍相关的开源项目。 版本问题版本目前的依赖注入包无法支持Revit 2020 以下的版本,原因是因为包中的依赖项与Revit本身的依赖项不一致导致的,所以说如果使用Revit + DI 进行开发需要再2020以上 。 如果有其他方式可以通过评论介绍一下,一起交流。 原因因为我常用版本在2019 , 在我使用DI时引用了Microsoft.Extensions.Hosting这个包开发,但是每次开发都是报错,开始时我认为是我的开发引用与这个包内部依赖项冲突,所以单独做了项目进行引用,但是依旧报错,但是更换版本在Revit 2021 可以正常使用,所以怀疑Revit本身加载的依赖项与这个包发生冲突。  于是搜索资料,发现相关的资料很少,在网络上使用Revit + DI 的资料也相对较少,这里找到一个资料中间讲了这个事情,与我的预估基本一致,j...
objectarx + libcurl下载文件遇到的问题
下载失败导致cad崩溃,报错’Error handler re-entered.Exiting now ‘,原因是因为我将libcurl相关的功能继承到一个类中,在类中进行相关的webapi交互,但是由于最开始进行了请求所以没有将curl进行初始化导致的传递数据错误.只需要在函数开始时进行初始化即可. 123456789101112131415curl = curl_easy_init();/*curl_global_init(CURL_GLOBAL_DEFAULT);*/if (curl){ MessageBoxA(NULL, combinePath.c_str(), "0", 0); FILE* fp = fopen(strFileName.c_str(), "wb"); // 打开文件,准备写入 curl_easy_setopt(curl, CURLOPT_URL, combinePath.c_str()); curl_easy_setopt(curl, CURLOPT_WRITEDATA, fp); curl_e...
ObjectARX and Libcurl File Download Issues
Download failure causing CAD crash, error ‘Error handler re-entered. Exiting now’. The reason is that I inherited libcurl-related functions into a class and performed relevant WebAPI interactions within the class. However, because I made a request at the very beginning, I failed to initialize curl, leading to data transfer errors. It just needs to be initialized at the beginning of the function. 123456789101112131415curl = curl_easy_init();/*curl_global_init(CURL_GLOBAL_DEFAULT);*/if (curl)...
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 wrote this article to record the txt2img API parameter types I use in my work. Since I focus more on architectural exterior rendering, I don’t need many details related to characters, so fewer settings are required. For more details, you can refer to this article: Comprehensive Stable Diffusion WebUI API Call Example, Including ControlNet and Segment A...
WebUI 参数设置
本地部署之后通过 localhost:7860/docs可以看到但是如果无法访问,可以直接看github或是其他的文件,通过写这篇文章记录一下自己工作中使用到的txt2img这个API参数类型。由于我更多偏向建筑结构外立面渲染所以很多人物或是细节不需要,会少很多的设置。更详细的可以参照这个文章 全网最全stable diffusion webui API调用示例,包含controlneth和segment anything的API(附json示例) 在线查看base64的网站 :https://www.lddgo.net/convert/base64-to-image在线将本地图片转换成base64的网站: https://www.lddgo.net/convert/imagebasesixsd api github 介绍页 :https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/APIcontrolNet github api 介绍页 : https://github.com/Mikubill/sd-webu...
Libcurl Error 35 Solution
Libcurl code 35 definition:SSL CONNECT ERROR I encountered this issue in the following two situations: SSL certificate verification. You can add corresponding headers to cancel or add verification. 123456789curl_easy_setopt(curl, CURLOPT_URL, combinePath.c_str());curl_easy_setopt(curl, CURLOPT_WRITEDATA, fp);curl_easy_setopt(curl, CURLOPT_TIMEOUT, 10L);curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 1);curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 1);curl_easy_setopt(curl, CURLOPT_NOSIGNAL,...
libcurl 报错 35
libcurl code 35 定义:SSL CONNECT ERROR 我这里问题情况会出现以下两种 SSL证书认证,可以添加相应的头取消或是添加验证 123456789curl_easy_setopt(curl, CURLOPT_URL, combinePath.c_str());curl_easy_setopt(curl, CURLOPT_WRITEDATA, fp);curl_easy_setopt(curl, CURLOPT_TIMEOUT, 10L);curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 1);curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 1);curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1L);curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, curlWriteFunction); 粗心大意,在本地调试使用的https服务端接口忘记调整成’http’协议
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 to use data in ObjectARX.Open VS2012 x64 Native Tools Command Prompt Supplemental address: I will place the relevant reference configuration images here. The application inside CAD is consistent with the routine.      所...
Creating a Toolbar with Drawer Menu in CAD ObjectARX
Implement creating a toolbar in CAD and adding menu commands, as shown below:  Reference article: > [cad --- menu, toolbar, screen menu, enhanced toolbar](https://blog.csdn.net/zeqi1991/article/details/102810373) The main implementation path is to create a dockable window, creating toolbuttons within it, adding commands to the button click events, and displaying the submenu at the button position. For smooth...
CAD ObjectArx 二次开发 创建工具栏实现点击button出现抽屉式菜单
实现在CAD中创建工具栏并添加菜单命令,如下图  参照文章: > [cad---菜单,工具栏,屏幕菜单,增强工具栏](https://blog.csdn.net/zeqi1991/article/details/102810373) 主要实现路径是通过创建一个可停靠窗口,并在其中创建toolbutton并给button点击事件添加命令,将子菜单menu显示在button位置,如果需要更加顺滑的交互,需要重写一下menu的样式。像文中所说,可以通过一个xml文件来控制控件,这样可以省略修改交互的步骤,我这里只是做出了单纯横向布置的实现和button边框背景取消,还需要增加自适应修改的内容,让侧边顶部都可以实现。代码逻辑也没有什么可以说的,直接将代码放到下面:Dialog: 1234567891011121314151617181920212223242526272829303132333435363738394041424344...
Objectarx 2021使用vs2019生成报错 /RTCc rejects conformant code
error C2338: /RTCc rejects conformant code错误解决 使用VS2019/VS2022生成项目报错严重性 代码 说明 项目 文件 行 禁止显示状态 错误 C1189 #error: /RTCc rejects conformant code, so it is not supported by the C++ Standard Library. Either remove this compiler option, or define _ALLOW_RTCc_IN_STL to acknowledge that you have received this warning. ArxProject2 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\yvals_core.h 1231 修改项目->c/c++->最小类型检查,改为否 ![在这里插入图片描述]...
ObjectARX 2021 VS2019 Build Error /RTCc rejects conformant code
error C2338: /RTCc rejects conformant code error solution Using VS2019/VS2022 to build the project reports an errorSeverity Code Description Project File Line Suppression State Error C1189 #error: /RTCc rejects conformant code, so it is not supported by the C++ Standard Library. Either remove this compiler option, or define _ALLOW_RTCc_IN_STL to acknowledge that you have received this warning. ArxProject2 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC...









