我已经看到使用 JAVA 进行解析,但我需要使用 javascript 或 perl 解析相同的 IFC 扩展文件,这些文件由面向对象的框架和实体表示的块组成。一个基本的想法会很有帮助。
示例 IFC 文件:
ISO-10303-21;
HEADER;
FILE_DESCRIPTION(('ViewDefinition [CoordinationView]'),'2;1');
FILE_NAME(
/* name */ 'C:\\sample.ifc',
/* time_stamp */ '2012-05-18T13:15:15',
/* authorization */ 'None');
FILE_SCHEMA (('IFC2X3'));
ENDSEC;
DATA;
#1= IFCAPPLICATION(#2,'0.5.29.0','ssiRhinoIFC - Geometry Gym Plug-in for Rhino3d','ssiRhinoIFC');
#2= IFCORGANIZATION($,'Geometry Gym Pty Ltd',$,$,$);
#3= IFCPERSONANDORGANIZATION(#4,#5,$);
#4= IFCPERSON($,'Jon',$,$,$,$,$,$);
#5= IFCORGANIZATION($,'UNKNOWN',$,$,$);
#6= IFCOWNERHISTORY(#3,#1,$,.ADDED.,1337346830,$,$,1337346830);
#7= IFCCARTESIANPOINT((0.0,0.0,0.0));
#8= IFCDIRECTION((1.0,0.0,0.0));
ENDSEC;
END-ISO-10303-21;