Add and Remove drawings from CWPs and IWPs - Intergraph Smart Construction - 8 - Customization & Programming - Hexagon PPM

Intergraph Smart Construction API and Programming Reference

Language
English
Product
Intergraph Smart Construction
Search by Category
Customization & Programming
Smart Construction Version
8

Add Drawings to Construction Work Package

You can add one or more drawings to a construction work package (CWP) using the Web APIs.

POST {{url}}/SPCAddDrawingsToConstructionWorkPackage

Content

{

CWPID: "[Package ID of the CWP]",

DrawingIDs: "[‘XXXXX’,‘XXXXX’,‘XXXXX’]"

}

Required information

  • Package ID of the CWP.

  • Drawings IDs that need to be added to the CWP.

Notes

None

For example,

{

CWPID: "6GKN000A",

DrawingIDs: "[‘6GGX1ASA’,‘6GGX2BSA’,‘7SGX1ASA’]"

}

Remove Drawings from Construction Work Package

You can delete one or more drawings from a construction work package (CWP) using the Web APIs.

POST {{url}}/SPCRemoveDrawingsFromConstructionWorkPackage

Content

{

CWPID: "[Package ID of the CWP]",

DrawingIDs: "[‘XXXXX’,‘XXXXX’,‘XXXXX’]"

}

Required information

  • Package ID of the CWP.

  • Drawings IDs that need to be removed from the CWP.

Notes

None

For example,

{

CWPID: "6GKN000A",

DrawingIDs: "[‘6GGX1ASA’,‘6GGX2BSA’,‘7SGX1ASA’]"

}

Add Drawings to Installation Work Package

You can add one or more drawings to an installation work package (IWP) using the Web APIs.

POST {{url}}/SPCAddDrawingsToInstallationWorkPackage

Content

{

IWPID: "[Package ID of the IWP]",

DrawingIDs: "[‘XXXXX’,‘XXXXX’,‘XXXXX’]"

}

Required information

  • Package ID of the IWP.

  • Drawings IDs that need to be added to the IWP.

Notes

None

For example,

{

IWPID: "6GLRXX0A",

DrawingIDs: "[‘6GGX0GSA’,‘6GGX0HSA’,‘7SGX1ASA’]"

}

Remove Drawings from Installation Work Package

You can delete one or more drawings from a installation work package (IWP) using the Web APIs.

POST {{url}}/SPCRemoveDrawingsFromInstallationWorkPackage

Content

{

IWPID: "[Package ID of the IWP]",

DrawingIDs: "[‘XXXXX’,‘XXXXX’,‘XXXXX’]",

RemoveComponents: Boolean

}

Required information

  • Package ID of the IWP.

  • Drawings IDs that need to be removed from the IWP.

  • Option stating if Components related to the drawing that is removed should be removed from the IWP or not.

Notes

None

For example,

{

IWPID: "6GKN000A",

DrawingIDs: "[‘6GGXOGSA’,‘6GGXOHSA’,‘7SGX1ASA’]",

RemoveComponents: true

}