Skip to content

Commit

Permalink
IVS-177/ANN000 - Annotations (#310)
Browse files Browse the repository at this point in the history
* IVS-177/ANN000 - Annotations

* Update features/ANN000_Annotations.feature

Co-authored-by: Evandro Alfieri <[email protected]>

---------

Co-authored-by: Evandro Alfieri <[email protected]>
  • Loading branch information
Ghesselink and evandroAlfieri authored Oct 23, 2024
1 parent c1e2bc5 commit 46f89c5
Show file tree
Hide file tree
Showing 3 changed files with 253 additions and 0 deletions.
19 changes: 19 additions & 0 deletions features/ANN000_Annotations.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@implementer-agreement
@ANN
@version1
@E00020

Feature: ANN000 - Annotations
The rule verifies the presence of IFC entities used to add annotations to elements and spaces, such as labels, notes, and dimensions. In IFC, annotations are also used to represent survey elements (i.e., points, lines, areas)
https://ifc43-docs.standards.buildingsmart.org/IFC/RELEASE/IFC4x3/HTML/concepts/Product_Shape/Product_Geometric_Representation/Annotation_Geometry/content.html

Scenario: Check for activation

Given an IfcAnnotation
Given its attribute Representation
Given its attribute Representations
Given RepresentationIdentifier is 'Annotation'

Then The IFC model contains information on the selected functional part


Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
ISO-10303-21;
HEADER;
FILE_DESCRIPTION(('ViewDefinition [Alignment-basedReferenceView]'),'2;1');
FILE_NAME('','2023-08-21T16:55:48',('Alfonso D''Urso','[email protected]'),('ACCA software S.p.A.'),'ACCA_IFC.dll Version 500','ACCA usBIM.infra',$);
FILE_SCHEMA(('IFC4X3_ADD2'));
ENDSEC;
DATA;
#1=IFCOWNERHISTORY(#2,#6,.READWRITE.,.NOCHANGE.,$,$,$,1692636948);
#2=IFCPERSONANDORGANIZATION(#3,#4,$);
#3=IFCPERSON($,'GnHzd70NMJ','gzDANOZut',$,$,$,$,$);
#4=IFCORGANIZATION($,'Mu0lLnlwD','xxDTHR',$,$);
#5=IFCORGANIZATION($,'iYBDKG','oO4sV7V',$,$);
#6=IFCAPPLICATION(#5,'300','FTbK6kYdrZ','nRFDEzDRs');
#7=IFCPROJECT('1p2djBc5z0mRF4WU_r7OC5',#1,'gZimVh','4Ivooh5',$,$,$,(#13),#8);
#8=IFCUNITASSIGNMENT((#9,#10,#11,#12));
#9=IFCSIUNIT(*,.LENGTHUNIT.,$,.METRE.);
#10=IFCSIUNIT(*,.AREAUNIT.,$,.SQUARE_METRE.);
#11=IFCSIUNIT(*,.VOLUMEUNIT.,$,.CUBIC_METRE.);
#12=IFCSIUNIT(*,.PLANEANGLEUNIT.,$,.RADIAN.);
#13=IFCGEOMETRICREPRESENTATIONCONTEXT('3D','Model',3,1.E-4,#14,#16);
#14=IFCAXIS2PLACEMENT3D(#15,$,$);
#15=IFCCARTESIANPOINT((0.,0.,0.));
#16=IFCDIRECTION((0.,1.));
#17=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Body','Model',*,*,*,*,#13,$,.MODEL_VIEW.,$);
#18=IFCREPRESENTATIONMAP(#21,#22);
#19=IFCDIRECTION((0.,0.,1.));
#20=IFCDIRECTION((1.,0.,0.));
#21=IFCAXIS2PLACEMENT3D(#15,#19,#20);
#22=IFCSHAPEREPRESENTATION(#17,'Body','Tessellation',(#23));
#23=IFCPOLYGONALFACESET(#24,$,(#25,#26,#27,#28,#29),$);
#24=IFCCARTESIANPOINTLIST3D(((0.,0.,0.),(-2.5E-1,-2.5E-1,1.5),(2.5E-1,-2.5E-1,1.5),(-2.5E-1,2.5E-1,1.5),(2.5E-1,2.5E-1,1.5)),$);
#25=IFCINDEXEDPOLYGONALFACE((1,2,3));
#26=IFCINDEXEDPOLYGONALFACE((1,4,2));
#27=IFCINDEXEDPOLYGONALFACE((1,5,4));
#28=IFCINDEXEDPOLYGONALFACE((1,3,5));
#29=IFCINDEXEDPOLYGONALFACE((2,4,5,3));
#30=IFCSITE('3gl5SOql9AbAohg6_5Ftof',#1,'DAqCmKoD','QuaYNLFcLM',$,#31,$,$,.ELEMENT.,$,$,$,$,$);
#31=IFCLOCALPLACEMENT($,#34);
#32=IFCDIRECTION((0.,0.,1.));
#33=IFCDIRECTION((1.,0.,0.));
#34=IFCAXIS2PLACEMENT3D(#15,#32,#33);
#35=IFCANNOTATION('2RhbhoXQ53yAzPOejOTUcp',#1,'06PSmQ','lrtE6P','Annotation point',#36,#40,.USERDEFINED.);
#36=IFCLOCALPLACEMENT(#31,#39);
#37=IFCDIRECTION((0.,0.,1.));
#38=IFCDIRECTION((1.,0.,0.));
#39=IFCAXIS2PLACEMENT3D(#15,#37,#38);
#40=IFCPRODUCTDEFINITIONSHAPE('2HsECR','r0wrQU',(#41));
#41=IFCSHAPEREPRESENTATION(#17,'Axis','Point',(#49));
#42=IFCMATERIAL('hbQTfFjH','V4ZNb5J',$);
#43=IFCMATERIALDEFINITIONREPRESENTATION('SBZtNMV','ngUNgF',(#44),#42);
#44=IFCSTYLEDREPRESENTATION(#13,$,$,(#45));
#45=IFCSTYLEDITEM($,(#46),'6Isqoa');
#46=IFCSURFACESTYLE('nPMw1OXPex',.BOTH.,(#47));
#47=IFCSURFACESTYLERENDERING(#48,0.,$,$,$,$,$,$,.NOTDEFINED.);
#48=IFCCOLOURRGB('TWY4Xa7',0.,0.,1.);
#49=IFCCARTESIANPOINT((700.000970772933,1570.,0.));
#50=IFCSTYLEDITEM(#49,(#51),'G1RzNbK');
#51=IFCSURFACESTYLE('aCJbHtVhW',.BOTH.,(#52));
#52=IFCSURFACESTYLERENDERING(#53,0.,$,$,$,$,$,$,.NOTDEFINED.);
#53=IFCCOLOURRGB('mS93ge',0.,0.,1.);
#54=IFCANNOTATION('2RhbhoXQ53yBzPOejOTUcp',#1,'44t0QV0','ulGtsm9Sx','Annotation point',#55,#59,.USERDEFINED.);
#55=IFCLOCALPLACEMENT(#31,#58);
#56=IFCDIRECTION((0.,0.,1.));
#57=IFCDIRECTION((1.,0.,0.));
#58=IFCAXIS2PLACEMENT3D(#15,#56,#57);
#59=IFCPRODUCTDEFINITIONSHAPE('EhwSnCIrhX','piJedXoO',(#60));
#60=IFCSHAPEREPRESENTATION(#17,'Axis','Point',(#61));
#61=IFCCARTESIANPOINT((2005.00097121531,1765.,0.));
#62=IFCSTYLEDITEM(#61,(#63),'QJshyGl');
#63=IFCSURFACESTYLE('eGUUk0rrkn',.BOTH.,(#64));
#64=IFCSURFACESTYLERENDERING(#65,0.,$,$,$,$,$,$,.NOTDEFINED.);
#65=IFCCOLOURRGB('J94n55jjYx',0.,0.,1.);
#66=IFCANNOTATION('2RhbhoXQ53yCzPOejOTUcp',#1,'X2NLUJAgC3','GkxRtb0x','Annotation point',#67,#71,.USERDEFINED.);
#67=IFCLOCALPLACEMENT(#31,#70);
#68=IFCDIRECTION((0.,0.,1.));
#69=IFCDIRECTION((1.,0.,0.));
#70=IFCAXIS2PLACEMENT3D(#15,#68,#69);
#71=IFCPRODUCTDEFINITIONSHAPE('cdHLctSJI','yhDDOqMio',(#72));
#72=IFCSHAPEREPRESENTATION(#17,'Axis','Point',(#73));
#73=IFCCARTESIANPOINT((195.00097114034,2100.,0.));
#74=IFCSTYLEDITEM(#73,(#75),'UpXZe3');
#75=IFCSURFACESTYLE('MfGAMHF',.BOTH.,(#76));
#76=IFCSURFACESTYLERENDERING(#77,0.,$,$,$,$,$,$,.NOTDEFINED.);
#77=IFCCOLOURRGB('lv0YCFzn',0.,0.,1.);
#78=IFCBUILDINGELEMENTPROXY('3RhbhoXQ53yRzPOejOTUcp',#1,'s5eYwT','8zzIDACo',$,#79,#83,'11547115',$);
#79=IFCLOCALPLACEMENT(#31,#82);
#80=IFCDIRECTION((0.,0.,1.));
#81=IFCDIRECTION((1.,0.,0.));
#82=IFCAXIS2PLACEMENT3D(#15,#80,#81);
#83=IFCPRODUCTDEFINITIONSHAPE('0B7R73','cAYpaXyl',(#86));
#84=IFCMAPPEDITEM(#18,#85);
#85=IFCCARTESIANTRANSFORMATIONOPERATOR3D($,$,#49,$,$);
#86=IFCSHAPEREPRESENTATION(#17,'Body','MappedRepresentation',(#84));
#87=IFCBUILDINGELEMENTPROXY('3RhbhoXQ53yRzPOejOTUgT',#1,'zubudU','j7Izia9',$,#88,#92,'11547333',$);
#88=IFCLOCALPLACEMENT(#31,#91);
#89=IFCDIRECTION((0.,0.,1.));
#90=IFCDIRECTION((1.,0.,0.));
#91=IFCAXIS2PLACEMENT3D(#15,#89,#90);
#92=IFCPRODUCTDEFINITIONSHAPE('liroptdQWy','87dAT5aqNJ',(#95));
#93=IFCMAPPEDITEM(#18,#94);
#94=IFCCARTESIANTRANSFORMATIONOPERATOR3D($,$,#61,$,$);
#95=IFCSHAPEREPRESENTATION(#17,'Body','MappedRepresentation',(#93));
#96=IFCBUILDINGELEMENTPROXY('3XMP46M8P65ugGKLEpO4FP',#1,'sQkyO8W','7HTj539DNA',$,#97,#101,'12053356',$);
#97=IFCLOCALPLACEMENT(#31,#100);
#98=IFCDIRECTION((0.,0.,1.));
#99=IFCDIRECTION((1.,0.,0.));
#100=IFCAXIS2PLACEMENT3D(#15,#98,#99);
#101=IFCPRODUCTDEFINITIONSHAPE('kGaYRMeQGx','RWPLNRrls',(#104));
#102=IFCMAPPEDITEM(#18,#103);
#103=IFCCARTESIANTRANSFORMATIONOPERATOR3D($,$,#73,$,$);
#104=IFCSHAPEREPRESENTATION(#17,'Body','MappedRepresentation',(#102));
#105=IFCRELCONTAINEDINSPATIALSTRUCTURE('26ygX4tlzCKelrMiRZF9mp',#1,'a8yFPIl','ZWKRBQLkzQ',(#35,#54,#66,#78,#87,#96),#30);
#106=IFCRELAGGREGATES('0wns2BMHT8ghrH4ythPU7d',#1,'ei8myAyB','SB4QitbU',#7,(#30));
#107=IFCMAPCONVERSION(#13,#108,2689000.,1253000.,450.,1.,0.,$);
#108=IFCPROJECTEDCRS('7YLXdp','4uGUJGi','EPSG:4150','EPSG:5728','Hotine Oblique Mercator Azimuth Center',$,$);
ENDSEC;
END-ISO-10303-21;
117 changes: 117 additions & 0 deletions test/files/ann000/pass-ann000-annotations_geometry_present.ifc
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
ISO-10303-21;
HEADER;
FILE_DESCRIPTION(('ViewDefinition [Alignment-basedReferenceView]'),'2;1');
FILE_NAME('','2023-08-21T16:55:48',('Alfonso D''Urso','[email protected]'),('ACCA software S.p.A.'),'ACCA_IFC.dll Version 500','ACCA usBIM.infra',$);
FILE_SCHEMA(('IFC4X3_ADD2'));
ENDSEC;
DATA;
#1=IFCOWNERHISTORY(#2,#6,.READWRITE.,.NOCHANGE.,$,$,$,1692636948);
#2=IFCPERSONANDORGANIZATION(#3,#4,$);
#3=IFCPERSON($,'GnHzd70NMJ','gzDANOZut',$,$,$,$,$);
#4=IFCORGANIZATION($,'Mu0lLnlwD','xxDTHR',$,$);
#5=IFCORGANIZATION($,'iYBDKG','oO4sV7V',$,$);
#6=IFCAPPLICATION(#5,'300','FTbK6kYdrZ','nRFDEzDRs');
#7=IFCPROJECT('1p2djBc5z0mRF4WU_r7OC5',#1,'gZimVh','4Ivooh5',$,$,$,(#13),#8);
#8=IFCUNITASSIGNMENT((#9,#10,#11,#12));
#9=IFCSIUNIT(*,.LENGTHUNIT.,$,.METRE.);
#10=IFCSIUNIT(*,.AREAUNIT.,$,.SQUARE_METRE.);
#11=IFCSIUNIT(*,.VOLUMEUNIT.,$,.CUBIC_METRE.);
#12=IFCSIUNIT(*,.PLANEANGLEUNIT.,$,.RADIAN.);
#13=IFCGEOMETRICREPRESENTATIONCONTEXT('3D','Model',3,1.E-4,#14,#16);
#14=IFCAXIS2PLACEMENT3D(#15,$,$);
#15=IFCCARTESIANPOINT((0.,0.,0.));
#16=IFCDIRECTION((0.,1.));
#17=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Body','Model',*,*,*,*,#13,$,.MODEL_VIEW.,$);
#18=IFCREPRESENTATIONMAP(#21,#22);
#19=IFCDIRECTION((0.,0.,1.));
#20=IFCDIRECTION((1.,0.,0.));
#21=IFCAXIS2PLACEMENT3D(#15,#19,#20);
#22=IFCSHAPEREPRESENTATION(#17,'Body','Tessellation',(#23));
#23=IFCPOLYGONALFACESET(#24,$,(#25,#26,#27,#28,#29),$);
#24=IFCCARTESIANPOINTLIST3D(((0.,0.,0.),(-2.5E-1,-2.5E-1,1.5),(2.5E-1,-2.5E-1,1.5),(-2.5E-1,2.5E-1,1.5),(2.5E-1,2.5E-1,1.5)),$);
#25=IFCINDEXEDPOLYGONALFACE((1,2,3));
#26=IFCINDEXEDPOLYGONALFACE((1,4,2));
#27=IFCINDEXEDPOLYGONALFACE((1,5,4));
#28=IFCINDEXEDPOLYGONALFACE((1,3,5));
#29=IFCINDEXEDPOLYGONALFACE((2,4,5,3));
#30=IFCSITE('3gl5SOql9AbAohg6_5Ftof',#1,'DAqCmKoD','QuaYNLFcLM',$,#31,$,$,.ELEMENT.,$,$,$,$,$);
#31=IFCLOCALPLACEMENT($,#34);
#32=IFCDIRECTION((0.,0.,1.));
#33=IFCDIRECTION((1.,0.,0.));
#34=IFCAXIS2PLACEMENT3D(#15,#32,#33);
#35=IFCANNOTATION('2RhbhoXQ53yAzPOejOTUcp',#1,'06PSmQ','lrtE6P','Annotation point',#36,#40,.USERDEFINED.);
#36=IFCLOCALPLACEMENT(#31,#39);
#37=IFCDIRECTION((0.,0.,1.));
#38=IFCDIRECTION((1.,0.,0.));
#39=IFCAXIS2PLACEMENT3D(#15,#37,#38);
#40=IFCPRODUCTDEFINITIONSHAPE('2HsECR','r0wrQU',(#41));
#41=IFCSHAPEREPRESENTATION(#17,'Annotation','Point',(#49));
#42=IFCMATERIAL('hbQTfFjH','V4ZNb5J',$);
#43=IFCMATERIALDEFINITIONREPRESENTATION('SBZtNMV','ngUNgF',(#44),#42);
#44=IFCSTYLEDREPRESENTATION(#13,$,$,(#45));
#45=IFCSTYLEDITEM($,(#46),'6Isqoa');
#46=IFCSURFACESTYLE('nPMw1OXPex',.BOTH.,(#47));
#47=IFCSURFACESTYLERENDERING(#48,0.,$,$,$,$,$,$,.NOTDEFINED.);
#48=IFCCOLOURRGB('TWY4Xa7',0.,0.,1.);
#49=IFCCARTESIANPOINT((700.000970772933,1570.,0.));
#50=IFCSTYLEDITEM(#49,(#51),'G1RzNbK');
#51=IFCSURFACESTYLE('aCJbHtVhW',.BOTH.,(#52));
#52=IFCSURFACESTYLERENDERING(#53,0.,$,$,$,$,$,$,.NOTDEFINED.);
#53=IFCCOLOURRGB('mS93ge',0.,0.,1.);
#54=IFCANNOTATION('2RhbhoXQ53yBzPOejOTUcp',#1,'44t0QV0','ulGtsm9Sx','Annotation point',#55,#59,.USERDEFINED.);
#55=IFCLOCALPLACEMENT(#31,#58);
#56=IFCDIRECTION((0.,0.,1.));
#57=IFCDIRECTION((1.,0.,0.));
#58=IFCAXIS2PLACEMENT3D(#15,#56,#57);
#59=IFCPRODUCTDEFINITIONSHAPE('EhwSnCIrhX','piJedXoO',(#60));
#60=IFCSHAPEREPRESENTATION(#17,'Annotation','Point',(#61));
#61=IFCCARTESIANPOINT((2005.00097121531,1765.,0.));
#62=IFCSTYLEDITEM(#61,(#63),'QJshyGl');
#63=IFCSURFACESTYLE('eGUUk0rrkn',.BOTH.,(#64));
#64=IFCSURFACESTYLERENDERING(#65,0.,$,$,$,$,$,$,.NOTDEFINED.);
#65=IFCCOLOURRGB('J94n55jjYx',0.,0.,1.);
#66=IFCANNOTATION('2RhbhoXQ53yCzPOejOTUcp',#1,'X2NLUJAgC3','GkxRtb0x','Annotation point',#67,#71,.USERDEFINED.);
#67=IFCLOCALPLACEMENT(#31,#70);
#68=IFCDIRECTION((0.,0.,1.));
#69=IFCDIRECTION((1.,0.,0.));
#70=IFCAXIS2PLACEMENT3D(#15,#68,#69);
#71=IFCPRODUCTDEFINITIONSHAPE('cdHLctSJI','yhDDOqMio',(#72));
#72=IFCSHAPEREPRESENTATION(#17,'Annotation','Point',(#73));
#73=IFCCARTESIANPOINT((195.00097114034,2100.,0.));
#74=IFCSTYLEDITEM(#73,(#75),'UpXZe3');
#75=IFCSURFACESTYLE('MfGAMHF',.BOTH.,(#76));
#76=IFCSURFACESTYLERENDERING(#77,0.,$,$,$,$,$,$,.NOTDEFINED.);
#77=IFCCOLOURRGB('lv0YCFzn',0.,0.,1.);
#78=IFCBUILDINGELEMENTPROXY('3RhbhoXQ53yRzPOejOTUcp',#1,'s5eYwT','8zzIDACo',$,#79,#83,'11547115',$);
#79=IFCLOCALPLACEMENT(#31,#82);
#80=IFCDIRECTION((0.,0.,1.));
#81=IFCDIRECTION((1.,0.,0.));
#82=IFCAXIS2PLACEMENT3D(#15,#80,#81);
#83=IFCPRODUCTDEFINITIONSHAPE('0B7R73','cAYpaXyl',(#86));
#84=IFCMAPPEDITEM(#18,#85);
#85=IFCCARTESIANTRANSFORMATIONOPERATOR3D($,$,#49,$,$);
#86=IFCSHAPEREPRESENTATION(#17,'Body','MappedRepresentation',(#84));
#87=IFCBUILDINGELEMENTPROXY('3RhbhoXQ53yRzPOejOTUgT',#1,'zubudU','j7Izia9',$,#88,#92,'11547333',$);
#88=IFCLOCALPLACEMENT(#31,#91);
#89=IFCDIRECTION((0.,0.,1.));
#90=IFCDIRECTION((1.,0.,0.));
#91=IFCAXIS2PLACEMENT3D(#15,#89,#90);
#92=IFCPRODUCTDEFINITIONSHAPE('liroptdQWy','87dAT5aqNJ',(#95));
#93=IFCMAPPEDITEM(#18,#94);
#94=IFCCARTESIANTRANSFORMATIONOPERATOR3D($,$,#61,$,$);
#95=IFCSHAPEREPRESENTATION(#17,'Body','MappedRepresentation',(#93));
#96=IFCBUILDINGELEMENTPROXY('3XMP46M8P65ugGKLEpO4FP',#1,'sQkyO8W','7HTj539DNA',$,#97,#101,'12053356',$);
#97=IFCLOCALPLACEMENT(#31,#100);
#98=IFCDIRECTION((0.,0.,1.));
#99=IFCDIRECTION((1.,0.,0.));
#100=IFCAXIS2PLACEMENT3D(#15,#98,#99);
#101=IFCPRODUCTDEFINITIONSHAPE('kGaYRMeQGx','RWPLNRrls',(#104));
#102=IFCMAPPEDITEM(#18,#103);
#103=IFCCARTESIANTRANSFORMATIONOPERATOR3D($,$,#73,$,$);
#104=IFCSHAPEREPRESENTATION(#17,'Body','MappedRepresentation',(#102));
#105=IFCRELCONTAINEDINSPATIALSTRUCTURE('26ygX4tlzCKelrMiRZF9mp',#1,'a8yFPIl','ZWKRBQLkzQ',(#35,#54,#66,#78,#87,#96),#30);
#106=IFCRELAGGREGATES('0wns2BMHT8ghrH4ythPU7d',#1,'ei8myAyB','SB4QitbU',#7,(#30));
#107=IFCMAPCONVERSION(#13,#108,2689000.,1253000.,450.,1.,0.,$);
#108=IFCPROJECTEDCRS('7YLXdp','4uGUJGi','EPSG:4150','EPSG:5728','Hotine Oblique Mercator Azimuth Center',$,$);
ENDSEC;
END-ISO-10303-21;

0 comments on commit 46f89c5

Please sign in to comment.