Customize Asset Selection
- Last UpdatedJan 20, 2025
- 1 minute read
Asset Selection
An asset is configured based on the parameters in the apm_data_sampleAsset.xml.
QR Code
The QRCode for this asset can be generated using any QR code generator. The text embedded in the QR code should be in the following format.
{"app": "app_name","v": 1,"c":"genoa","machine":"name_of_machine"}
Code example
This example is for configuring an asset named sampleAsset. This name must match the name that is read from the QR code.
<define name="sampleAsset" type="config" >
<item name="displayName" value="[@lang:sampleAsset]" />
<item name="sector" value="sec_sampleAsset" />
<item name="overallCamera" value="cam_overall" />
<item name="xrayMeshes" value="debug_cube|cube" />
<item name="AREnabled" value="true" />
</define>
Parameters
This table lists the parameters to use for sampleAsset.
|
Parameter |
Description |
|---|---|
|
displayName |
The name with which the asset will be displayed in the application. |
|
sector |
The sector that contain the asset. Each asset is assigned a sector in the graphic_context. This sector field refers to the ‘sector’ in the graphic_context where this asset belongs to. |
|
overallCamera |
Here you have a reference to the camera that’s configured to view the asset. This camera has to be correctly positioned and oriented to have a full view of the asset. |
|
xrayMeshes |
This is a list of meshes inside the asset’s MWX file, that will be displayed in transparent mode. Transparency mode can be turned ON/OFF using the visualization mode panel in discover or procedure mode. |
|
AREnabled |
Whether AR feature is enabled for this asset or not. |