Zhuangkh

A .Net Developer

All Posts


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

Convert Between IFC ID and Revit ID

The IFC specification was devised a methodology to compress the standard GUIDs to conserve space, you can find detailed instructions at buildingSMART IFC GUID.But there is no direct way to get the standard GUID or IFC-GUID in Revit. Sample ID GUID (Length:36) :c71cffa8-2bb5-4842-bd34-f25c022e8f00 Revit UniqueID (Length:45) : c71cffa8-2bb5-4842-bd34-f25c022997b1-000718b1 Revit ElementID (Length: …

IFC Revit