Zhuangkh

A .Net Developer

All Posts


Delete Enterprise Applications In Azure Active Directory

Problem When we want to delete an Azure AD,one of the steps is to delete all enterprise applications in that directory. AAD Remove Check But some applicatons like Azure DevOps can not delete directly (Option not available). DevOps Delete Options Solution With PowerShell Create a new user in Azure AD with a role of Global administrator. Create new user Start PowerShell and install Azure AD module. …

Azure AzureAD

Generate a True Metafile in .NET

A few days ago when I was building the MS-OLEDS file for AutoCAD, I needed to create a Metafile as part of it. However, I encountered some small problems when using the built-in API. The Problem with Built-in API In System.Drawing.Imaging has a Metafile Class that allows us do a sequence of graphics operations on it.Here is my code and the test file in the HEX editor. public static void …

.Net Metafile

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