Skip to content

Phasing Demo:Sample application providing a 4D/phasing preview capability.

License

Notifications You must be signed in to change notification settings

autodesk-platform-services/aps-phasing-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phasing Demo

platforms node.js npm license

Model Derivative Viewer

Proof-of-concept showing how Autodesk Platform Services can be used to build phasing/4D application.

thumbnail

Live demo: https://aps-phasing-poc.autodesk.io

Development

Prerequisites

Setup & Run

  • Clone the repository
  • Install dependencies: npm install
  • Setup environment variables:
    • APS_CLIENT_ID - your APS application client ID
    • APS_CLIENT_SECRET - your APS application client secret
  • Specify your sample model in ./public/main.js:
    • set DESIGN_URN to the URN of your model translated by the Model Derivative service
    • set DESIGN_GUID to the GUID of the specific view of the model you want to load into the viewer
    • set ACTIVITY_PROPERTY to the name of a property that's available on your design elements; the value of this property will be used to link the element to a specific activity/phase in the CSV file below
  • Modify your sample activity/phase data in ./public/phasing.csv; each row should include the following 6 values:
    • Name of the activity (used to link this phase to individual design elements); note that there may be multiple rows with the same activity name
    • start date of the activity (in the form of MM/DD/YY)
    • duration of the activity (number of days)
    • end date of the activity (in the form of MM/DD/YY)
    • type of activity (Construct for construction, Demo for demolition, or Temp for temporary structures); design elements will be color-coded based on this value
    • activity description
  • Run the server: npm start

When using Visual Studio Code, you can specify the env. variables listed above in a .env file in this folder, and run & debug the application directly from the editor.

Troubleshooting

Submit your question via APS Support Form.

License

This sample is licensed under the terms of the MIT License. Please see the LICENSE file for more details.

Authors

Petr Broz (@ipetrbroz), Developer Advocate