Create, Update, and Delete operations for Constraints - Intergraph Smart Construction - 8 - Reference - Hexagon PPM

Intergraph Smart Construction Retired Feature Reference

Language
English
Product
Intergraph Smart Construction
Search by Category
Reference
Smart Construction Version
8

Create Constraints

You can create constraints along with their properties using the Web APIs.

POST {{url}}/SPCCreateConstraint

Content

{

ConstraintCreateInfo:

{

"Status": "[Status of the constraint]",

"Purpose": "[Purpose of the constraint]",

"Category": "[Category of the constraint]",

"SubCategory": "[Subcategory of the constraint]",

"Contact": "[Contact information]",

"RequiredDate": "[YYYY-MM-DD]",

"Details": "[Details of constraint]",

"Components": "[Component ID]"

}

}

Required information

  • Status of the constraint.

  • Purpose of the constraint.

  • Category of the constraint.

Notes

None

For example,

{

"ConstraintCreateInfo":

{

"Status": "Preliminary",

"Purpose": "Verification",

"Category": "Materials",

"SubCategory": "Permanent",

"Contact": "Admin",

"RequiredDate": "2019 - 10 - 20",

"Details": "This is a materials constraint",

"Components": ["6G4O0I1A"]

}

}

Update Constraints

You can update some properties for the constraints using the Web APIs.

POST {{url}}/SPCUpdateConstraint

Content

{

"ID": "[Constraint ID]"

ConstraintUpdateInfo:

{

"Status": "[Status of the constraint]",

"SubCategory": "[Subcategory of the constraint]",

"Contact": "[Contact information]",

"RequiredDate": "[YYYY-MM-DD]",

    "ProjectedDate": "[YYYY-MM-DD]",

"CompletedDate": "[YYYY-MM-DD]",

"AssetID": "[Asset ID]",

"Details": "[Details of constraint]",

"ComponentsToAdd": "[List of components to be added]",

"ComponentsToRemove": "[List of components to be removed]"

}

}

Required information

  • Constraint ID for which you are updating the properties.

  • ConstraintUpdateInfo class with the required properties and their values.

Notes

None.

For example,

{

"ID": "6HFG000A",

"ConstraintUpdateInfo":

{

"Status": "Preliminary",

"SubCategory": "Temporary",

"Contact": "Admin",

"RequiredDate": "2019-10-06",

"ProjectedDate": "2019-10-12",

"AssetID": "Crane001",

"Details": "Constraint information is updated.",

"ComponentsToAdd": ["6G4O0I1B,6G4O0I1C"],

"ComponentsToRemove": ["6G4O0I1A"]

}

}

Delete Constraints

You can delete a constraint using the Web APIs.

POST {{url}}/SPCDeleteConstraint

Content

{

"ID": "[Constraint ID]"

}

Required information

  • Constraint ID.

Notes

None

For example,

{

"ID": "6HFG000A"

}