RevitIdGenerator.cs 641 B

123456789101112131415161718192021222324
  1. /*-------------------------------------------------------------------------
  2. * 功能描述:RevitIdGenerator
  3. * 作者:xulisong
  4. * 创建时间: 2019/6/13 17:06:08
  5. * 版本号:v1.0
  6. * -------------------------------------------------------------------------*/
  7. using Autodesk.Revit.DB;
  8. using System;
  9. using System.Collections.Generic;
  10. using System.Linq;
  11. using System.Text;
  12. using System.Threading.Tasks;
  13. namespace RevitToJBim.Common
  14. {
  15. public class RevitIdGenerator
  16. {
  17. public static string GetConnectorId(Connector connector)
  18. {
  19. return $"{connector.Owner.Id}_C_{connector.Id}";
  20. }
  21. }
  22. }