@itwin/rebar-modeler-schema 0.0.0-stage → 1.0.1-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.md ADDED
@@ -0,0 +1,9 @@
1
+ # MIT License
2
+
3
+ Copyright © 2017-2026 Bentley Systems, Incorporated. All rights reserved.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,9 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
1
+ # @itwin/rebar-modeler-schema
2
+
3
+ Copyright © Bentley Systems, Incorporated. All rights reserved. See [LICENSE.md](./LICENSE.md) for license terms and full copyright notice.
4
+
5
+ [iTwin.js](http://itwinjs.org) is an open source platform for creating, querying, modifying, and displaying Infrastructure Digital Twins.
6
+
7
+ ## BIS Schemas
8
+
9
+ The acronym “BIS” stands for “Base Infrastructure Schemas”. BIS is an “open” and extensible family of schemas that is modularized into Domains. Please go to [iTwinjs.org](https://www.itwinjs.org/bis/) for more information.
@@ -0,0 +1 @@
1
+ {"$schema":"https://dev.bentley.com/json_schemas/ec/32/ecschema","name":"RebarModeler","version":"01.00.01","alias":"cifrbr","description":"iModel Connector schema containing aspect classes with properties from Rebar tool.","references":[{"name":"BisCore","version":"01.00.28"},{"name":"BisCustomAttributes","version":"01.00.00"},{"name":"CifCommon","version":"01.00.17"},{"name":"CifUnits","version":"01.00.08"},{"name":"CoreCustomAttributes","version":"01.00.05"}],"customAttributes":[{"className":"CoreCustomAttributes.ProductionStatus","SupportedUse":"NotForProduction"},{"className":"BisCustomAttributes.SchemaLayerInfo","Value":"Application"}],"items":{"RebarSetProperties":{"schemaItemType":"PropertyCategory","label":"Rebar Set","description":"Rebar Set Properties","priority":4294967266},"RebarShapeProperties":{"schemaItemType":"PropertyCategory","label":"Rebar Shape","description":"Rebar Shape Properties","priority":4294967265},"RebarEndDeviceProperties":{"schemaItemType":"PropertyCategory","label":"Rebar End Device","description":"Rebar End Device Properties","priority":4294967264},"RebarDimDataProperties":{"schemaItemType":"PropertyCategory","label":"Rebar Dim. Data","description":"Rebar Dim. Properties","priority":4294967263},"RebarDimData":{"schemaItemType":"StructClass","description":"Dimension data for rebar segments","properties":[{"name":"DimName","type":"PrimitiveProperty","category":"RebarModeler.RebarDimDataProperties","typeName":"string"},{"name":"DimType","type":"PrimitiveProperty","category":"RebarModeler.RebarDimDataProperties","typeName":"int"},{"name":"FromPtIndex","type":"PrimitiveProperty","category":"RebarModeler.RebarDimDataProperties","typeName":"int"},{"name":"ToPtIndex","type":"PrimitiveProperty","category":"RebarModeler.RebarDimDataProperties","typeName":"int"},{"name":"DimLength","type":"PrimitiveProperty","category":"RebarModeler.RebarDimDataProperties","kindOfQuantity":"CifUnits.LENGTH","typeName":"double"}]},"RebarAspectBase":{"schemaItemType":"EntityClass","modifier":"Abstract","baseClass":"CifCommon.CivilPresentation"},"RebarEndDevice":{"schemaItemType":"EntityClass","baseClass":"RebarModeler.RebarAspectBase","properties":[{"name":"EndDeviceName","type":"PrimitiveProperty","category":"RebarModeler.RebarEndDeviceProperties","typeName":"string"},{"name":"ManufacturerName","type":"PrimitiveProperty","category":"RebarModeler.RebarEndDeviceProperties","typeName":"string"},{"name":"EndDeviceType","type":"PrimitiveProperty","category":"RebarModeler.RebarEndDeviceProperties","typeName":"string"},{"name":"EndDeviceDescription","type":"PrimitiveProperty","category":"RebarModeler.RebarEndDeviceProperties","typeName":"string"},{"name":"ApplicationType","type":"PrimitiveProperty","category":"RebarModeler.RebarEndDeviceProperties","typeName":"string"},{"name":"PrepManufacturerName","type":"PrimitiveProperty","category":"RebarModeler.RebarEndDeviceProperties","typeName":"string"},{"name":"PrepDescription","type":"PrimitiveProperty","category":"RebarModeler.RebarEndDeviceProperties","typeName":"string"},{"name":"PrepCode","type":"PrimitiveProperty","category":"RebarModeler.RebarEndDeviceProperties","typeName":"string"},{"name":"PrepHoldBack","type":"PrimitiveProperty","category":"RebarModeler.RebarEndDeviceProperties","typeName":"double"},{"name":"IsReverse","type":"PrimitiveProperty","category":"RebarModeler.RebarEndDeviceProperties","typeName":"int"},{"name":"ScrewType","type":"PrimitiveProperty","category":"RebarModeler.RebarEndDeviceProperties","typeName":"int"}]},"RebarSet":{"schemaItemType":"EntityClass","baseClass":"RebarModeler.RebarAspectBase","properties":[{"name":"Number","type":"PrimitiveProperty","category":"RebarModeler.RebarSetProperties","typeName":"int"},{"name":"NominalSpacing","type":"PrimitiveProperty","category":"RebarModeler.RebarSetProperties","kindOfQuantity":"CifUnits.LENGTH","typeName":"double"},{"name":"Layer","type":"PrimitiveProperty","category":"RebarModeler.RebarSetProperties","typeName":"string"}]},"RebarShape":{"schemaItemType":"EntityClass","baseClass":"RebarModeler.RebarAspectBase","properties":[{"name":"BarDiameter","type":"PrimitiveProperty","category":"RebarModeler.RebarShapeProperties","kindOfQuantity":"CifUnits.LENGTH","typeName":"double"},{"name":"BarMark","type":"PrimitiveProperty","category":"RebarModeler.RebarShapeProperties","typeName":"string"},{"name":"SizeKey","type":"PrimitiveProperty","category":"RebarModeler.RebarShapeProperties","typeName":"string"},{"name":"Length","type":"PrimitiveProperty","category":"RebarModeler.RebarShapeProperties","kindOfQuantity":"CifUnits.LENGTH","typeName":"double"},{"name":"NominalLength","type":"PrimitiveProperty","category":"RebarModeler.RebarShapeProperties","kindOfQuantity":"CifUnits.LENGTH","typeName":"double"},{"name":"Posnum","type":"PrimitiveProperty","category":"RebarModeler.RebarShapeProperties","typeName":"string"},{"name":"Grade","type":"PrimitiveProperty","category":"RebarModeler.RebarShapeProperties","typeName":"string"},{"name":"Catalog","type":"PrimitiveProperty","category":"RebarModeler.RebarShapeProperties","typeName":"string"},{"name":"Weight","type":"PrimitiveProperty","category":"RebarModeler.RebarShapeProperties","typeName":"double"},{"name":"IsStirrup","type":"PrimitiveProperty","category":"RebarModeler.RebarShapeProperties","typeName":"boolean"},{"name":"ShapeCode","type":"PrimitiveProperty","category":"RebarModeler.RebarShapeProperties","typeName":"string"},{"name":"Coating","type":"PrimitiveProperty","category":"RebarModeler.RebarShapeProperties","typeName":"string"},{"name":"Surface","type":"PrimitiveProperty","category":"RebarModeler.RebarShapeProperties","typeName":"string"},{"name":"NumDimensions","type":"PrimitiveProperty","category":"RebarModeler.RebarShapeProperties","typeName":"int"},{"name":"BarIsBend","type":"PrimitiveProperty","category":"RebarModeler.RebarShapeProperties","typeName":"boolean"},{"name":"VarySetId","type":"PrimitiveProperty","category":"RebarModeler.RebarShapeProperties","typeName":"int"},{"name":"RebarDimDataArray","type":"StructArrayProperty","category":"RebarModeler.RebarShapeProperties","typeName":"RebarModeler.RebarDimData","minOccurs":0,"maxOccurs":2147483647},{"name":"NumDevices","type":"PrimitiveProperty","category":"RebarModeler.RebarShapeProperties","typeName":"int"}]},"ElementOwnsRebarAspect":{"schemaItemType":"RelationshipClass","modifier":"None","baseClass":"BisCore.ElementOwnsUniqueAspect","strength":"Embedding","strengthDirection":"Forward","source":{"multiplicity":"(1..1)","roleLabel":"owns","polymorphic":true,"constraintClasses":["BisCore.GeometricElement3d"]},"target":{"multiplicity":"(0..1)","roleLabel":"is owned by","polymorphic":true,"constraintClasses":["RebarModeler.RebarAspectBase"]}}}}
@@ -0,0 +1,97 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- ==================================================================================
3
+ | * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
+ | * See LICENSE.md in the project root for license terms and full copyright notice.
5
+ ======================================================================================= -->
6
+ <ECSchema schemaName="RebarModeler" alias="cifrbr" version="01.00.01" description="iModel Connector schema containing aspect classes with properties from Rebar tool." xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
7
+ <ECSchemaReference name="BisCore" version="01.00.16" alias="bis"/>
8
+ <ECSchemaReference name="BisCustomAttributes" version="01.00.00" alias="bisCA"/>
9
+ <ECSchemaReference name="CifCommon" version="01.00.10" alias="cifcmn"/>
10
+ <ECSchemaReference name="CifUnits" version="01.00.07" alias="cifu"/>
11
+ <ECSchemaReference name="CoreCustomAttributes" version="01.00.04" alias="CoreCA"/>
12
+
13
+ <ECCustomAttributes>
14
+ <ProductionStatus xmlns="CoreCustomAttributes.01.00.04">
15
+ <SupportedUse>NotForProduction</SupportedUse>
16
+ </ProductionStatus>
17
+ <SchemaLayerInfo xmlns="BisCustomAttributes.01.00.00">
18
+ <Value>Application</Value>
19
+ </SchemaLayerInfo>
20
+ </ECCustomAttributes>
21
+
22
+ <!-- Property Categories -->
23
+ <PropertyCategory typeName="RebarSetProperties" description="Rebar Set Properties" displayLabel="Rebar Set" priority="4294967266"/>
24
+ <PropertyCategory typeName="RebarShapeProperties" description="Rebar Shape Properties" displayLabel="Rebar Shape" priority="4294967265"/>
25
+ <PropertyCategory typeName="RebarEndDeviceProperties" description="Rebar End Device Properties" displayLabel="Rebar End Device" priority="4294967264"/>
26
+ <PropertyCategory typeName="RebarDimDataProperties" description="Rebar Dim. Properties" displayLabel="Rebar Dim. Data" priority="4294967263"/>
27
+
28
+ <!-- Struct Class for Dimension Data -->
29
+ <ECStructClass typeName="RebarDimData" description="Dimension data for rebar segments">
30
+ <ECProperty propertyName="DimName" typeName="string" category="RebarDimDataProperties"/>
31
+ <ECProperty propertyName="DimType" typeName="int" category="RebarDimDataProperties"/>
32
+ <ECProperty propertyName="FromPtIndex" typeName="int" category="RebarDimDataProperties"/>
33
+ <ECProperty propertyName="ToPtIndex" typeName="int" category="RebarDimDataProperties"/>
34
+ <ECProperty propertyName="DimLength" typeName="double" category="RebarDimDataProperties" kindOfQuantity="cifu:LENGTH"/>
35
+ </ECStructClass>
36
+
37
+ <!-- Abstract Base Aspect for Rebar Components -->
38
+ <ECEntityClass typeName="RebarAspectBase" modifier="Abstract">
39
+ <BaseClass>cifcmn:CivilPresentation</BaseClass>
40
+ </ECEntityClass>
41
+
42
+ <!-- Concrete Rebar Aspect Classes -->
43
+ <ECEntityClass typeName="RebarEndDevice">
44
+ <BaseClass>RebarAspectBase</BaseClass>
45
+ <ECProperty propertyName="EndDeviceName" typeName="string" category="RebarEndDeviceProperties"/>
46
+ <ECProperty propertyName="ManufacturerName" typeName="string" category="RebarEndDeviceProperties"/>
47
+ <ECProperty propertyName="EndDeviceType" typeName="string" category="RebarEndDeviceProperties"/>
48
+ <ECProperty propertyName="EndDeviceDescription" typeName="string" category="RebarEndDeviceProperties"/>
49
+ <ECProperty propertyName="ApplicationType" typeName="string" category="RebarEndDeviceProperties"/>
50
+ <ECProperty propertyName="PrepManufacturerName" typeName="string" category="RebarEndDeviceProperties"/>
51
+ <ECProperty propertyName="PrepDescription" typeName="string" category="RebarEndDeviceProperties"/>
52
+ <ECProperty propertyName="PrepCode" typeName="string" category="RebarEndDeviceProperties"/>
53
+ <ECProperty propertyName="PrepHoldBack" typeName="double" category="RebarEndDeviceProperties"/>
54
+ <ECProperty propertyName="IsReverse" typeName="int" category="RebarEndDeviceProperties"/>
55
+ <ECProperty propertyName="ScrewType" typeName="int" category="RebarEndDeviceProperties"/>
56
+ </ECEntityClass>
57
+
58
+ <ECEntityClass typeName="RebarSet">
59
+ <BaseClass>RebarAspectBase</BaseClass>
60
+ <ECProperty propertyName="Number" typeName="int" category="RebarSetProperties"/>
61
+ <ECProperty propertyName="NominalSpacing" typeName="double" category="RebarSetProperties" kindOfQuantity="cifu:LENGTH"/>
62
+ <ECProperty propertyName="Layer" typeName="string" category="RebarSetProperties"/>
63
+ </ECEntityClass>
64
+
65
+ <ECEntityClass typeName="RebarShape">
66
+ <BaseClass>RebarAspectBase</BaseClass>
67
+ <ECProperty propertyName="BarDiameter" typeName="double" category="RebarShapeProperties" kindOfQuantity="cifu:LENGTH"/>
68
+ <ECProperty propertyName="BarMark" typeName="string" category="RebarShapeProperties"/>
69
+ <ECProperty propertyName="SizeKey" typeName="string" category="RebarShapeProperties"/>
70
+ <ECProperty propertyName="Length" typeName="double" category="RebarShapeProperties" kindOfQuantity="cifu:LENGTH"/>
71
+ <ECProperty propertyName="NominalLength" typeName="double" category="RebarShapeProperties" kindOfQuantity="cifu:LENGTH"/>
72
+ <ECProperty propertyName="Posnum" typeName="string" category="RebarShapeProperties"/>
73
+ <ECProperty propertyName="Grade" typeName="string" category="RebarShapeProperties"/>
74
+ <ECProperty propertyName="Catalog" typeName="string" category="RebarShapeProperties"/>
75
+ <ECProperty propertyName="Weight" typeName="double" category="RebarShapeProperties"/>
76
+ <ECProperty propertyName="IsStirrup" typeName="boolean" category="RebarShapeProperties"/>
77
+ <ECProperty propertyName="ShapeCode" typeName="string" category="RebarShapeProperties"/>
78
+ <ECProperty propertyName="Coating" typeName="string" category="RebarShapeProperties"/>
79
+ <ECProperty propertyName="Surface" typeName="string" category="RebarShapeProperties"/>
80
+ <ECProperty propertyName="NumDimensions" typeName="int" category="RebarShapeProperties"/>
81
+ <ECProperty propertyName="BarIsBend" typeName="boolean" category="RebarShapeProperties"/>
82
+ <ECProperty propertyName="VarySetId" typeName="int" category="RebarShapeProperties"/>
83
+ <ECStructArrayProperty propertyName="RebarDimDataArray" typeName="RebarDimData" category="RebarShapeProperties" minOccurs="0" maxOccurs="unbounded"/>
84
+ <ECProperty propertyName="NumDevices" typeName="int" category="RebarShapeProperties"/>
85
+ </ECEntityClass>
86
+
87
+ <!-- Polymorphic Ownership Relationship -->
88
+ <ECRelationshipClass typeName="ElementOwnsRebarAspect" modifier="None" strength="embedding">
89
+ <BaseClass>bis:ElementOwnsUniqueAspect</BaseClass>
90
+ <Source multiplicity="(1..1)" roleLabel="owns" polymorphic="true">
91
+ <Class class="bis:GeometricElement3d"/>
92
+ </Source>
93
+ <Target multiplicity="(0..1)" roleLabel="is owned by" polymorphic="true">
94
+ <Class class="RebarAspectBase"/>
95
+ </Target>
96
+ </ECRelationshipClass>
97
+ </ECSchema>
@@ -0,0 +1,7 @@
1
+ ---
2
+ remarksTarget: RebarModeler.ecschema.md
3
+ ---
4
+
5
+ # RebarModeler
6
+ iModel Connector schema used by the Civil iModel Connector while publishing datasets with data created by Rebar Tools in Bentley Civil Design applications.
7
+ The aspect classes contained within this schema aim to provide a similar user-experience with respect to properties in the source Civil Design application
package/package.json CHANGED
@@ -1,6 +1,24 @@
1
- {
2
- "name": "@itwin/rebar-modeler-schema",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
1
+ {
2
+ "name": "@itwin/rebar-modeler-schema",
3
+ "license": "MIT",
4
+ "version": "1.0.1-dev.1",
5
+ "homepage": "https://www.itwinjs.org/",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/iTwin/bis-schemas"
9
+ },
10
+ "keywords": [
11
+ "Bentley",
12
+ "BIS",
13
+ "iModel"
14
+ ],
15
+ "description": "RebarModeler BIS Domains",
16
+ "author": {
17
+ "name": "Bentley Systems, Inc.",
18
+ "url": "http://www.bentley.com"
19
+ },
20
+ "exports" : {
21
+ "./RebarModeler.ecschema.xml": "./RebarModeler.ecschema.xml",
22
+ "./RebarModeler.ecschema.json": "./RebarModeler.ecschema.json"
23
+ }
24
+ }