@bentley/substation-drawing-schema 1.0.5-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 ADDED
@@ -0,0 +1,9 @@
1
+ # @bentley/substation-drawing-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":"SubstationDrawing","version":"01.00.05","alias":"subdwg","label":"Substation","description":"This schema contains classes used for Substation Design.","references":[{"name":"BisCore","version":"01.00.26"},{"name":"CoreCustomAttributes","version":"01.00.05"},{"name":"BisCustomAttributes","version":"01.00.00"}],"customAttributes":[{"className":"CoreCustomAttributes.ProductionStatus","SupportedUse":"NotForProduction"},{"className":"BisCustomAttributes.SchemaLayerInfo","Value":"Application"}],"items":{"ElectricalGraphicalType2d":{"schemaItemType":"EntityClass","label":"Electrical Graphical Type","description":"Represents the Graphical Type for Electrical Symbols.","baseClass":"BisCore.GraphicalType2d"},"ElectricalSingleSymbolDefinition":{"schemaItemType":"EntityClass","label":"2D Single Symbol","description":"Represents the Graphical and Connection data associated with one 2D Electrical Symbol Definition. A ElectricalSingleSymbolDefinition is represented by a ElectricalSymbolGraphic2d and owns one or more ConnectionPointAspect2d Aspects.","modifier":"Sealed","baseClass":"BisCore.DefinitionElement","properties":[{"name":"DrawingType","type":"NavigationProperty","description":"Reference to the Drawing Type. The Elements in the Type's Recipe's template Model are placed when the users selects to place the Symbol in a Drawing Model","relationshipName":"SubstationDrawing.DrawingTypeReference","direction":"Forward"}]},"DrawingTypeReference":{"schemaItemType":"RelationshipClass","modifier":"None","strength":"Referencing","strengthDirection":"Backward","source":{"multiplicity":"(0..*)","roleLabel":"refers to","polymorphic":true,"constraintClasses":["SubstationDrawing.ElectricalSingleSymbolDefinition"]},"target":{"multiplicity":"(1..1)","roleLabel":"is referred by","polymorphic":true,"constraintClasses":["SubstationDrawing.ElectricalGraphicalType2d"]}},"ElectricalSymbolRecipe":{"schemaItemType":"EntityClass","label":"Symbol Recipe","description":"Represents the Graphics, Anchor points and Property Label data associated with an Equipment's Physical (3D) Definition.","modifier":"Sealed","baseClass":"BisCore.TemplateRecipe2d"},"ElectricalSymbolGraphic2d":{"schemaItemType":"EntityClass","label":"2D Symbol Graphic","description":"Stores the Graphical data associated with one 2D Electrical Symbol. Its (0,0) the insertion point of the Symbol. A ElectricalSymbolGraphic2d Element is used two ways: (1) As the 'graphical aspect' of a 2D Symbol's definition. In this case the ElectricalSymbolGraphic2d is associated with its ElectricalSingleSymbolDefinition thru' is SingleSymbolRecipe. (2) As an instance of 2D Symbol when placed in a Substation Project's Drawing Model. In this case the SymbolGraphics2d is associated with its EquipmentFunctional by the func:DrawingGraphicRepresentsFunctionalElement relationship.","baseClass":"BisCore.DrawingGraphic","properties":[{"name":"ScaleX","type":"PrimitiveProperty","description":"The X-Scale of the Symbol when placed in a Drawing Model","typeName":"double"},{"name":"ScaleY","type":"PrimitiveProperty","description":"The Y-Scale of the Symbol when placed in a Drawing Model","typeName":"double"}]},"ElectricalLineSegment":{"schemaItemType":"EntityClass","label":"Electrical Line Segment","description":"An ElectricalLineSegment Element is a 2D element that connects to either a Symbol or another Segment. One or more connected ElectricalLineSegments may represent a (Functional) ElectricalWire.","baseClass":"BisCore.DrawingGraphic"}}}
@@ -0,0 +1,47 @@
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 xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2" schemaName="SubstationDrawing" version="01.00.05" alias="subdwg" displayLabel="Substation" description="This schema contains classes used for Substation Design.">
7
+ <ECSchemaReference name="BisCore" version="01.00.25" alias="bis"/>
8
+ <ECSchemaReference name="CoreCustomAttributes" version="01.00.04" alias="CoreCA" />
9
+ <ECSchemaReference name="BisCustomAttributes" version="01.00.00" alias="bisCA" />
10
+ <ECCustomAttributes>
11
+ <ProductionStatus xmlns="CoreCustomAttributes.01.00.04">
12
+ <SupportedUse>NotForProduction</SupportedUse>
13
+ </ProductionStatus>
14
+ <SchemaLayerInfo xmlns="BisCustomAttributes.01.00.00">
15
+ <Value>Application</Value>
16
+ </SchemaLayerInfo>
17
+ </ECCustomAttributes>
18
+ <!-- Symbol Graphic Classes -->
19
+ <ECEntityClass typeName="ElectricalGraphicalType2d" modifier="None" displayLabel="Electrical Graphical Type" description="Represents the Graphical Type for Electrical Symbols.">
20
+ <BaseClass>bis:GraphicalType2d</BaseClass>
21
+ </ECEntityClass>
22
+ <ECEntityClass typeName="ElectricalSingleSymbolDefinition" modifier="Sealed" displayLabel="2D Single Symbol" description="Represents the Graphical and Connection data associated with one 2D Electrical Symbol Definition. A ElectricalSingleSymbolDefinition is represented by a ElectricalSymbolGraphic2d and owns one or more ConnectionPointAspect2d Aspects.">
23
+ <BaseClass>bis:DefinitionElement</BaseClass>
24
+ <ECNavigationProperty propertyName="DrawingType" relationshipName="DrawingTypeReference" direction="Forward" description="Reference to the Drawing Type. The Elements in the Type's Recipe's template Model are placed when the users selects to place the Symbol in a Drawing Model"/>
25
+ </ECEntityClass>
26
+ <ECEntityClass typeName="ElectricalSymbolRecipe" modifier="Sealed" displayLabel="Symbol Recipe" description="Represents the Graphics, Anchor points and Property Label data associated with an Equipment's Physical (3D) Definition.">
27
+ <BaseClass>bis:TemplateRecipe2d</BaseClass>
28
+ </ECEntityClass>
29
+ <ECEntityClass typeName="ElectricalSymbolGraphic2d" modifier="None" displayLabel="2D Symbol Graphic" description="Stores the Graphical data associated with one 2D Electrical Symbol. Its (0,0) the insertion point of the Symbol. A ElectricalSymbolGraphic2d Element is used two ways: (1) As the 'graphical aspect' of a 2D Symbol's definition. In this case the ElectricalSymbolGraphic2d is associated with its ElectricalSingleSymbolDefinition thru' is SingleSymbolRecipe. (2) As an instance of 2D Symbol when placed in a Substation Project's Drawing Model. In this case the SymbolGraphics2d is associated with its EquipmentFunctional by the func:DrawingGraphicRepresentsFunctionalElement relationship.">
30
+ <BaseClass>bis:DrawingGraphic</BaseClass>
31
+ <ECProperty propertyName="ScaleX" typeName="double" description="The X-Scale of the Symbol when placed in a Drawing Model"/>
32
+ <ECProperty propertyName="ScaleY" typeName="double" description="The Y-Scale of the Symbol when placed in a Drawing Model"/>
33
+ </ECEntityClass>
34
+ <!-- Element Classes used when an equipment is 'instanced' in an iModel -->
35
+ <ECEntityClass typeName="ElectricalLineSegment" modifier="None" displayLabel="Electrical Line Segment" description="An ElectricalLineSegment Element is a 2D element that connects to either a Symbol or another Segment. One or more connected ElectricalLineSegments may represent a (Functional) ElectricalWire.">
36
+ <BaseClass>bis:DrawingGraphic</BaseClass>
37
+ </ECEntityClass>
38
+ <!-- Relationships -->
39
+ <ECRelationshipClass typeName="DrawingTypeReference" strength="referencing" strengthDirection="Backward" modifier="None">
40
+ <Source multiplicity="(0..*)" roleLabel="refers to" polymorphic="true">
41
+ <Class class="ElectricalSingleSymbolDefinition"/>
42
+ </Source>
43
+ <Target multiplicity="(1..1)" roleLabel="is referred by" polymorphic="true">
44
+ <Class class="ElectricalGraphicalType2d"/>
45
+ </Target>
46
+ </ECRelationshipClass>
47
+ </ECSchema>
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@bentley/substation-drawing-schema",
3
+ "license": "MIT",
4
+ "version": "1.0.5-dev.1",
5
+ "homepage": "https://www.itwinjs.org/",
6
+ "keywords": [
7
+ "Bentley",
8
+ "BIS",
9
+ "iModel"
10
+ ],
11
+ "description": "SubstationDrawing BIS Domains",
12
+ "author": {
13
+ "name": "Bentley Systems, Inc.",
14
+ "url": "http://www.bentley.com"
15
+ },
16
+ "exports" : {
17
+ "./SubstationDrawing.ecschema.xml": "./SubstationDrawing.ecschema.xml",
18
+ "./SubstationDrawing.ecschema.json": "./SubstationDrawing.ecschema.json"
19
+ }
20
+ }