forked from iTwin/itwinjs-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
308 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Accessing ElementAspects | ||
|
||
An [ElementAspect]($backend) is an in-memory representation of a [BIS ElementAspect](../../bis/intro/elementaspect-fundamentals.md). | ||
|
||
There can be `[0..1]` instances of [ElementUniqueAspect]($backend) per ElementAspect class per Element instance. | ||
|
||
``` ts | ||
[[include:Elements.getUniqueAspect]] | ||
``` | ||
|
||
--- | ||
|
||
There can be `[0..N]` instances of [ElementMultiAspect]($backend) per ElementAspect class per Element instance. | ||
|
||
``` ts | ||
[[include:Elements.getMultiAspects]] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Reserving Codes | ||
|
||
A [Code]($common) is an in-memory representation of a [BIS Code](../../bis/intro/glossary.md#code). | ||
|
||
You can assign a Code to an an Element by setting the [Element.code]($backend) property and then inserting or updating the element. | ||
|
||
You must *reserve* a Code before assigning it. See [code reservation](./ConcurrencyControl.md#code-reservation) for details. | ||
You must *reserve* a Code before assigning it. See [code reservation](./ConcurrencyControl.md#code-reservation) for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
# Common Packages | ||
|
||
Common packages contain TypeScript classes and other types that can be used by both [frontends](..\frontend\index.md) and [backends](..\backend\index.md). | ||
These packages adhere to the frontend constraints of running within a web browser (for example, no file system access) but are equally relevant on either the frontend or backend. | ||
|
||
The iModel.js common libraries are contained in the following npm packages: | ||
|
||
* `@bentley/imodeljs-common` | ||
* `@bentley/imodeljs-clients` | ||
* `@bentley/bentleyjs-core` | ||
* `@bentley/geometry-core` | ||
* `@bentley/bentleyjs-core` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# IModelConnection | ||
|
||
The frontend of an app does not open a briefcase directly. Instead, it "connects" to a briefcase that is managed by a [backend](../backend/index.md). | ||
The frontend of an app does not open a briefcase directly. Instead, it remotely "connects" to a briefcase that is managed by a [backend](../backend/index.md). | ||
|
||
[IModelConnection]($frontend) is the main class used by frontends to access iModels. It is a handy wrapper around the [IModelReadRpcInterface]($common). It makes it easy for frontend code to get access to a particular iModel and then read and write elements and models. | ||
[IModelConnection]($frontend) is the main class used by frontends to access iModels. It is a handy wrapper around the [IModelReadRpcInterface]($common). It makes it easy for frontend code to get access to a particular iModel and then read and write element and model properties. | ||
|
||
The frontend must obtain an [AccessToken](../common/AccessToken.md) in order to open an IModelConnection. [IModelConnection.open]($frontend) takes that as an argument. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.