RevitToJBimParser.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*-------------------------------------------------------------------------
  2. * 功能描述:RevitToJBimParser
  3. * 作者:xulisong
  4. * 创建时间: 2019/6/17 17:24:29
  5. * 版本号:v1.0
  6. * -------------------------------------------------------------------------*/
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Linq;
  10. using System.Text;
  11. using System.Threading.Tasks;
  12. using JBIM;
  13. using RevitExport;
  14. namespace RevitToJBim
  15. {
  16. public class RevitToJBimParser: ParseInstance<JBimParseContext, BimId>
  17. {
  18. public RevitToJBimParser(JBimParseContext context, List<IParseElement<JBimParseContext, BimId>> parsers):base(context,parsers)
  19. {
  20. }
  21. public override List<BimId> ParseElement(ElementWrapper elementWrapper, JBimParseContext context)
  22. {
  23. //BimId result = context.GetBimId(elementWrapper.RefElement.Id.ToString());
  24. //if (result != null)
  25. //{
  26. // return new List<BimId>() {result};
  27. //}
  28. return ParseElement(elementWrapper,context);
  29. }
  30. }
  31. }