Zhuangkh

A .Net Developer

All Posts in 2020.2


Generate Transient Element In Revit

今天瞎折腾的时候,突然在Revit Document里看到一组相当有趣并有着详细注释的API: Document..::..MakeTransientElements The method establishes a context within which transient elements will be created and then invokes the given maker object to create the elements. For more information refer to the IsTransient method. Element..::..IsTransient Transient elements are usually created for short term use. This type of element can be …

Revit Dynamo

.Net MD5算法与系统FIPS兼容性

使用dotNet框架自带的Md5加密MD5CryptoServiceProvider时,在部分电脑上会出现InvalidOperationException. System.InvalidOperationException: 此实现不是 Windows 平台 FIPS 验证的加密算法的一部分。 在 System.Security.Cryptography.MD5CryptoServiceProvider..ctor() 出现的原因是系统启用了FIPS兼容算法,而FIPS标准并不支持MD5,所以当框架中的MD5算法调用系统的加密模块时就会爆异常. FIPS 140-2 defines security standards that the United States and Canadian governments use to validate security levels …

.Net MD5