[转] IDEA配置Algs4
https://www.cnblogs.com/junhong1995/p/7769006.html
[Repost] IDEA Configuration for Algs4
https://www.cnblogs.com/junhong1995/p/7769006.html
Revit导出DWGExportSetting
今天发现Revit中并没有提供导出导出设置的按键,查阅API发现这块属于DWGExportSetting类型,如果导出就只能自己写接口进行导出。大部分导出这个位置的应该关注的是图层修改器,这里因为他的加载标准,图层修改器是无法读取,如果需要传递图层需要传递项目标准或自己写接口进行传递,这个也算是一个很鸡肋的开发了。这里面Revit标准采用的编码并不是UTF-8而是ANSI需要注意一下,不然导入的话全部都是乱码。整个步骤并不是很麻烦,下面是全部的代码: 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100using System;using System.Collections.Generic;using System.Diagnostics;using ...
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. If exporting, can only write interface to export by myself. Most exports of this position should concern layer modifier. Here because of its loading standard, layer modifier cannot be read. If need to transfer layers, need to transfer project standards or write interface to transfer by yourself. This can also be considered a very tasteless develo...
Revit中实现WCF客户端部署
在之前的WCF文章中,成功创建了本地部署与服务器部署,但是当我想要在Revit端实现读取数据库信息于是创建了一个项目测试效果。参考案例:Revit二次开发高级应用(1)——利用wcf做简单的族库管理Drive Revit through a WCF Service 代码服务端12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515...
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 at Revit end, created a project to test effect.Reference cases:Revit Secondary Development Advanced Application (1) —— Using wcf for simple family library managementDrive Revit through a WCF Service CodeServer123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475...
WCF IIS Configuration and Reference and Preliminary Use of Mysql Database
Learning URL: https://docs.microsoft.com/zh-cn/dotnet/framework/wcf/how-to-create-a-wcf-clientLocal resource configuration and IIS resource configuration I learned according to Microsoft official website, interested can follow to type, I only calculate problems I encountered here IIS When configuring service in IIS, creating virtual directory according to tutorial, found if I create service in default site will prompt InvalidOperationException: Cannot find type “Microsoft.ServiceModel.Samples...
WCF IIS配置并引用 并初步使用Mysql数据库
学习网址:https://docs.microsoft.com/zh-cn/dotnet/framework/wcf/how-to-create-a-wcf-client本地资源配置与IIS资源配置我是根据微软官网学习的,有兴趣的可以跟着敲一下,我这里只说一下我遇到的问题 IIS 再IIS中配置服务时,根据教程上创建虚拟目录,发现如果我如果再默认站点创建服务将会提示InvalidOperationException: 找不到类型“Microsoft.ServiceModel.Samples.CalculatorService,发现我再默认站点已经托管了一个服务导致的问题。应该是今天感冒有点迟钝新建站点:1.1. 将我们的路径端口及名称输入即可,和创建Web站点一个步骤。 创建文件APP_Code、service.svc、Web.config,其中Web.config文件按照官方给的案例后面将会出现无法打开安全通道,因为与远程终结点的安全协商已失败。这可能是由于用于创建通道的 EndpointAddress 中不存在 EndpointIdentity 或错误指定了 Endpoint...
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.
ShellType in ComputerStructure in Revit
Today met a group friend asking about setting error of 12cs.SetNumberOfShellLayers(ShellLayerType.Interior,2); cs.SetNumberOfShellLayers(ShellLayerType.Exterior,1); ProblemThere must be at least one core layer, i.e. one layer which is not a shell layer. Found haven’t involved in this area, so researched a bit The translation of error report is: At least one core layer must existThis piece pure developer might cause problem because of too little usage of Revit.ShellLayerTyp...
Revit中ComputerStructure中的ShellType
今天碰到一个群友问关于 12cs.SetNumberOfShellLayers(ShellLayerType.Interior,2); cs.SetNumberOfShellLayers(ShellLayerType.Exterior,1); 设置出错的问题There must be at least one core layer, i.e. one layer which is not a shell layer. 发现这块没有涉及过,便研究了一下 报错的翻译为:需要存在至少一个核心层这块单纯的开发人员可能因为使用Revit过少导致的问题。ShellLayerType.Interior:指核心外层ShellLayerType.Exterior:指核心内层CoreLayer:指核心层详下图:其中核心层必须存在一层,我们通过Revit软件逻辑也可以发现当核心层只有一层是,向上向下按钮为不可选状态所以当我们想人工干预外层内层时,需要对总层数进行判定,回到最开始的代码,修改为: 12345n = i + j ;if(cs.getLayers()&...
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.Later I found that it was actually a problem with the code inside the loop. Analyzing it, it was actually because my NPOI and code review were not done well.Leading to loop data problems, so record it to prevent myself from making the same mistake again! In the left picture, the loop frantically creates IRow causing the previously created row data to...
NPOI循环创建Cell数据丢失问题
多个数据循环创建,最终导出Excel会出现数据大面积丢失,只有零星几个数据出现。后来发现其实是循环内部的代码出现问题,分析一下其实是因为自己NPOI和代码复查没有做好导致循环数据出现问题,所以记录下来,防止自己再次范相同的错误! 左图中循环会疯狂创建IRow导致之前创建的行数据丢失,只会显示行较其他组多的内容及最后一次运行的内容。后面类似数据处理应该集中创建一个数据行进行填充。
大话设计模式
1024 观后感读完设计模式之后发现之前的许多项目代码可以进行优化,精简。在其他项目中也可以对我这种外行菜鸟有更多的启发。但是后面21~28设计模式只是粗略读了一下,以后应用到的时候在进行专项补充吧。前面的几个设计模式准备在以后几个项目中进行尝试或者年底将之前的项目使用设计模式进行优化,练习一下加深印象。 面向对象设计三个基本特征 封装 继承 多态 消除类型之间的耦合关系 可替换性 可扩充性 接口性 灵活性 简化性 第一章简单工厂模式实现题目:通过控制台程序让用户输入指定值和计算方法进行求值我的第一想法会是建四个类分别代表‘+’,‘-’,‘*’,‘/’通过调用四个方法进行分别的计算,不够这种方式在main里面会显得特别臃肿,通过继承类,重写方法,并将方法放在单独的计算类中会让整个代码看上去更有条理性。 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071...
Big Talk Design Patterns
1024 Thoughts after readingAfter reading Design Patterns, I realized that many previous project codes could be optimized and streamlined. It can also provide more inspiration for a layman like me in other projects. However, I only skimmed through design patterns 21~28 later. I will supplement them specifically when applying them in the future.I plan to try the first few design patterns in future projects or use design patterns to optimize previous projects at the end of the year, practicing t...
Revit 自启动插件管理小工具制作
在安装过多插件时会导致Revit启动时报错:由于数量超过18个无法加载后续产品的错误,大部分许可文件会放置在C:\ProgramData\Autodesk\Revit\Addins\****下,通过修改后缀名即可将拒绝文件的启动。对于像某些产品会一次性防止十几个许可文件,设计工程师修改起来比较复杂所以写了一个工具进行集体修改。全部项目已经上传到Githubgithub地址
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. Most license files will be placed under C:\ProgramData\Autodesk\Revit\Addins\****. Modifying suffix name can disable file startup. For some products will place a dozen license files at once, it is complicated for design engineers to modify, so wrote a tool for collective modification.All projects have been uploaded to Githubgithub address
[git] refusing to merge unrelated histories
When uploading a new project to Github, an error occurred fatal: HttpRequestException encountered.. Referring to this link to install GCMV still reported this error. I realized it should be because I created a readme on github but didn’t pull it.Entering command git pull -u master reported fatal: refusing to merge unrelated histories. The solution refers to this link. After that, successfully pulled cloud files to local, then entered command git push -u master to upload successfully.
【git】 refusing to merge unrelated histories
新项目上传至Github时出现错误我fatal: HttpRequestException encountered.,参照此链接安装GCMV依旧报此问题的错误,意识到应该是在github创建readme没有进行拉取的问题输入命令git pull -u master报错fatal: refusing to merge unrelated histories,解决方法参照此链接,之后成功将云端文件拉取到本地,之后输入命令git push -u master即可上传成功。
![[转] IDEA配置Algs4](https://cdn.bimath.com/blog/bg/images/bakground.jpg)






