List Positions (ListPositions) - Intergraph Smart Materials - Version 2017 R2 (2.2) - Help - Hexagon

Intergraph Smart Materials Web API Help 2017 R2 (2.2)

Language
English
Product
Intergraph Smart Materials
Subproduct
Web API
Search by Category
Help
Version Smart Materials Web API
2017 R2 (2.2)

This API retrieves the list positions of a project from Smart Materials. You can either retrieve a single list position using list position ID or all the list positions of a project.

Required Privilege: API_READONLY

Headers

Header Name

Description

Required

Values

Authorization

Access token

Required

Bearer <access_token>

Content-Type

Request type format

Required

application/JSON

Body

URL Format: GET https://{host}/Smat/V1/Projects(‘:project’)/Disciplines(‘:discipline’)/Nls(‘:language’)/ListPositions({key})

Specify values for the project, discipline, language, and key parameter in the URL. The project, discipline, and language together, define the project environment and the key parameter defines the list positions Id (LpId).

To retrieve all the list positions of a project, use the following URL:

GET https://{host}/Smat/V1/Projects(‘:project’)/Disciplines(‘:discipline’)/Nls(‘:language’)/ListPositions

Sample Code

GET https://in-smatapi.ingrnet.com/current/smat/v1/Projects('DEMO')/Disciplines('PIPING')/Nls('English')/listPositions(6596)?$expand=PositionAttributes

Success Response

Status: 200 OK

Content:

{

"@odata.context": "https://in-smatapi.ingrnet.com/current/SMAT/V1/$metadata#Projects('DEMO')/Disciplines('PIPING')/Nls('English')/ListPositions/$entity",

"LpId": 6596,

"LnId": 5852,

"StatId": 5060,

"ProjId": "DEMO",

"LstId": 5020,

"DpId": 5042,

"ListPosition": "1",

"Quantity": 1,

"RequisitionInd": "Y",

"LoadInd": "Y",

"ParentLpId": null,

"CommodityId": 86492,

"PartId": 11524,

"UnitId": 5292,

"Ident": 11189020,

"ShortCode": null,

"ItyId": 5024,

"ListSubPosition": null,

"Input1": null,

"Input2": null,

"Input3": null,

"Input4": null,

"Input5": "0",

"ResvQty": 0,

"TagNumber": "CB201-001C",

"GroupId": 5202,

"IssueQty": 0,

"Weight": null,

"WeightUnitId": null,

"PlateId": null,

"LockInd": "N",

"PositionAttributes": [

{

"AttrId": 5426,

"AttrCode": "REQ_NO",

"AttrValue": "4030"

},

{

"AttrId": 5430,

"AttrCode": "PID_NO",

"AttrValue": "pid1"

},

{

"AttrId": 7154,

"AttrCode": "CONST_AREA",

"AttrValue": "ca2"

}

]

}

Element

Description

Type

LpId

Unique ID of the retrieved list position

Integer

LnId

Unique ID of the list node. Retrieved list position belongs to this node.

Integer

StatId

Unique ID of the associated issue status

Integer

ProjId

Unique ID of the Project. Retrieved list positions belong to this Project.

String

LstId

Unique ID of the list status

Integer

DpId

Unique ID of the Discipline. Retrieved list positions belong to this Discipline.

Integer

ListPosition

Unique position with this structure-element

String

Quantity

Ident - quantity of the list position

Decimal

RequisitionInd

Available values are Y and N.

  • If value Y is passed, quantity of the list position is included in MTO.

String

LoadInd

Available values are Y and N.

  • If value Y is passed, the Open MTO Interface (OMI) can update the corresponding record.

String

ParentLpId

Unique ID of the parent list position

Integer

CommodityId

Unique ID of the commodity code

Integer

PartId

Unique ID of the commodity part

Integer

UnitId

Unique ID of the unit

Integer

Ident

Ident number

Integer

ShortCode

Specifies the short code

String

ItyId

Unique ID of the item type

Integer

ListSubPosition

Sub positions of the list position

String

Input (1-5)

Value for size 1 to 5

String

ResvQty

Reserved quantity set by the Forecast Run

Decimal

TagNumber

Tag number

String

GroupId

Unique ID of the commodity group

Integer

IssueQty

Issued quantity

Decimal

Weight

Specifies weight for position of current node

Decimal

WeightUnitId

Specifies unit of weight for position of current node

Integer

PlateId

Unique ID of the plate

Integer

LockInd

Available values are Y and N.

  • If value Y is passed, you cannot add or delete any list node.

String

PositionAttributes

Represents the details of the attributes of a list position

Collection

  • Position Attributes (PositionAttributes)

    Element

    Description

    Type

    AttrId

    Unique ID of the list position attribute

    Integer

    AttrCode

    Unique code or name of the list position attribute

    String

    AttrValue

    Value of the list position attribute

    String