https://github.com/mcneel/autodeskplatformservicesforrhino
Autodesk Platform Services Plugin For Rhino
https://github.com/mcneel/autodeskplatformservicesforrhino
autodesk revit
Last synced: 3 months ago
JSON representation
Autodesk Platform Services Plugin For Rhino
- Host: GitHub
- URL: https://github.com/mcneel/autodeskplatformservicesforrhino
- Owner: mcneel
- License: mit
- Created: 2023-02-01T22:29:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-12T00:56:23.000Z (over 2 years ago)
- Last Synced: 2025-08-02T21:06:21.804Z (10 months ago)
- Topics: autodesk, revit
- Language: C#
- Homepage:
- Size: 247 KB
- Stars: 5
- Watchers: 30
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Autodesk Platform Services For Rhino
This is a Rhino+Grasshopper plugin that aims to provide easy access to Autodesk Platform Services. It requires an authenticated connection to the APIs, so you would need to create your own App on the APS platform, register for the available APIs, and use the App ID and Secret to connect to the Platform Services servers.
This first release of the plugins integrates the new Autodesk [Parameter Services](https://blogs.autodesk.com/revit/2022/12/04/whats-new-in-parameters-service/) into Rhino3D. It provides an interface to sign into the Autodesk Platform Services and query shared parameters available under your account. These parameters can be added to Rhino objects and values can be assigned. Parameter information will be stored as object dictionaries in Rhino 3DM files and will be available to other Rhino APIs. All this functionality is available through:
- **APS Parameter Editor** in Rhino: From this panel you can connect to APS and access the parameter collections under your account, adding or removing parameters to selected Rhino objects
- **Grasshopper Components** to connect to APS, and communicate with Parameter Services, querying disciplines, specs, categories, groups, collections, etc.
⚠️ To succssfully connect to the API on Windows, you would need to apply the fix described under **Build and Test**
## Build and Test
- Build
- Apply this fix: http://stackoverflow.com/questions/4019466/httplistener-access-denied
- Open Terminal app or `cmd.exe` in Windows
- Run `netsh http add urlacl url=http://+:8080/ user=` but replace `` with your machine username
- Add build path to `GrasshopperDeveloperSettings` command in Rhino
- Install `*.rhp` plugin inside the build path in Rhino
## Install
You can install this plugin from Rhino package manager by running **Package Manager** command. Make sure the "Include Pre-Releases" checkbox is checked.

### Connect to APS (Rhino)

Open **APS Parameter Editor** panel and click on **Connect**. From the connection dialog choose a method to provide the App information, either by typing in the values or providing the environment variable names that contain the values (you need to setup the environment variables before launching Rhino)
### Connect to APS (Grasshopper)

Open Grasshopper, and drop a **Construct Connection Info** or **Construct Connection Info (Env Vars)** and feed the required values to the input parameters. Then drop the **Connect** component from APS panel onto the canvas, and feed the connection info to the component.
Click connect, login using your Autodesk account and "Allow" access

Use the **Deconstruct Connection Info** component to verify the output `Token` parameter contains a `Bearer ...` token

### Tests
Open any Rhino or Grasshopper files under `tests/`