Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

chuongmep
chuongmep

Posted on

Forge Viewer Python Library Notebook

Jupyter Forge is a powerful library that seamlessly integrates Autodesk Platform Services with Jupyter Notebooks, enabling interactive 3D viewing and exploration within your notebook environment.

⚡Features

🦞Installation

pipinstalljupyter-forge--upgrade
Enter fullscreen modeExit fullscreen mode

🙋🏻‍♂️Requirements

  • Python 3.9+

  • Setting Environment Variables, see
    TutorialCreate an App

Set Environment Variables

APS_CLIENT_ID=your_client_idAPS_CLIENT_SECRET=your_client_secret
Enter fullscreen modeExit fullscreen mode

🍽️Usage

fromjupyter_forgeimportJupyterForgefromaps_toolkitimportAuthurn="dXJuOmFkc2sud2lwcHJvZDpmcy5maWxlOnZmLlFsa1ZtVU5RUmYtanMtd3dLQ2dLM1E_dmVyc2lvbj0x"token=Auth().auth2leg()forge_viewer=JupyterForge(urn,token)## CASE 1 : NONE OBJECTS IDS ISOLATE VIEWERforge_viewer.show(width=800,height=600)## CASE 2 : OBJECTS IDS ISOLATE VIEWER# object id from derivative apiobject_ids=[123,456]forge_viewer.show(object_ids,width=800,height=600)
Enter fullscreen modeExit fullscreen mode

©️License

This project is licensed under the Apache License.

💥Contributing

This is project just research in my free time and don't have any power to keep it up to date. If you want to contribute,
please feel free to fork and submit a pull request.

🎁 Sponsors

ThanksJetBrains for providing a free All product IDE for this project.

Knowledge

Q&A

How can I get URN input?

  1. You can useaps-toolkit library to get URN of the item latest version.
fromaps_toolkitimport*token=Auth().auth2leg()bim360=BIM360(token)urn=bim360.get_latest_derivative_urn("","")
Enter fullscreen modeExit fullscreen mode
  1. You can batch report urn to dataframe from BIM360 class inaps-toolkit library.
fromaps_toolkitimportBIM360fromaps_toolkitimportAuthtoken=Auth().auth3leg()bim360=BIM360(token)df=bim360.batch_report_items("","",['.rvt'],is_sub_folder=False)
Enter fullscreen modeExit fullscreen mode

Developers

Test Data Readme

pipinstall-e.
Enter fullscreen modeExit fullscreen mode

Fix server not starting

# start a server with dirpython-m http.server 54364--directory D:\API\Forge\jupyter-forge\src\template
Enter fullscreen modeExit fullscreen mode

Kill Port

netstat-ano | findstr :54364taskkill /F /PID 21008
Enter fullscreen modeExit fullscreen mode
  • Kill all port relate to 54364
taskkill /F /PID 21008
Enter fullscreen modeExit fullscreen mode

Top comments(1)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Computational Design Researcher
  • Location
    Singapore
  • Joined

More fromchuongmep

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp