Configuring Resource Positioning

A configuration file is a preconfigured file for managing configuration contexts and variants, which you can use as a ready-made template.

The following example lets you configure the parameters for capable resource positioning.

This page discusses:

See Also
Capable Resource Position Assistant Toolbar
In Other Guides
Resource Positioning

Attribute Names

Name Values
identifier The unique identifier of the positioning resource.
Note: Mandatory key.
referenceidentifier
  • identifier: the preferred reference option.
  • Reuses options from other positioning options and overrides some options from the reference option.
  • This definition only works when identifier is found in the JSON array .
attributes The resource attributes used to find the positioning of resources in the session.
Note: Mandatory key.

This is a combination of the reference or instance attributes of the resource and value, the syntax must be as follows: “[Resource reference or instance].[Attribute name]”: “[Attribute value]”.

referenceAxisType_Rsc Type of reference axis used for resource positioning.

  1. Center of the bounding box.
  2. Origin of the object.
  3. User-defined reference axis.

    You must define the public port on the positioning resource referenceAxisType_Rsc or the product/capable resource referenceAxisType_Obj related to the operation.

If there is no valid .json configuration, the second reference axis type is used for the resource positioning.

referenceAxisType_Obj
referenceAxisPortName_Rsc The name of the public port defined on the resource or product/resource capable.
referenceAxisPortName_Obj
referencePlane_RscToObj The resource positions itself in relation to the product or the capable resource according to this plane: XY, YZ, ZX.

If the attribute key and value of referenceAxisType_Rsc are valid but the attribute key and value of referencePlane_RscToObj are invalid, the reference plane XY is used.

snappingOffsetValue Offset value used for instant Snap computation.

When the distance between a moving resource and a specific object is within the Snap offset value, the resource automatically aligns with the object.

Note: This feature does not work when the configuration does not exist or is invalid (invalid unit or negative value).

positionToNearestPoint The resource is automatically positioned at the nearest point based on the origin of the reference axis of the resource (true, false).
Note: This feature only works when this configuration exists or is valid. The resource is then positioned on the current position.

Example

[
	{
		"identifier": "MainResourceDefinition",
		"attributes": {
			" VPMReference.V_Name": "BuildingProp"
		},
		"referenceAxisType_Rsc": "3",
		"referenceAxisType_Obj": "3",
		"referenceAxisPortName_Rsc": "RefAxisPort",
		"referenceAxisPortName_Obj": "RefAxisPort",
		"referencePlane_RscToObj": "xy",
		"referencePlane_RscToRsc": "yz",
		"snappingOffsetValue": "300mm",
		"positionToNearestPoint": "true"
	},
	{
		"identifier": "Diag_BuildingProp",
		"referenceIdentifier": "MainResourceDefinition",
		"attributes": {
			" VPMReference.V_Name": "Diagonal_BuildingProp"
		},
		"snappingOffsetValue": "400mm"
	},
	{
		"identifier": "Eu_BuildingProp",
		"referenceIdentifier": "MainResourceDefinition",
		"attributes": {
			" VPMReference.V_Name": "Euro_BuildingProp"
		},
		"snappingOffsetValue": "400mm"
	},
	{
		"identifier": "Col_Formwork",
		"referenceIdentifier": "MainResourceDefinition",
		"attributes": {
			" VPMReference.V_Name": "Column_Formwork",
			" VPMReference.V_discipline": "Plate"
		},
		"referencePlane_RscToObj": "yz",
		"referencePlane_RscToRsc": "zx"
	}
]