yiskang / DA4R-HidePipeCenterLineAddin

Revit Addin for hiding pipe center line from views

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hide Pipe Centerline from the views by change visibility settings with Design Automation

Design-Automation

Windows .NET Revit-2021

APS DA Setup

Activity via POST activities

{
    "commandLine": [
        "$(engine.path)\\\\revitcoreconsole.exe /i \"$(args[inputFile].path)\" /al \"$(appbundles[HidePipeCenterLine].path)\""
    ],
    "parameters": {
        "inputFile": {
            "verb": "get",
            "description": " Input Revit File",
            "required": true,
            "localName": " $(inputFile)"
        },
        "inputJson": {
            "verb": "get",
            "description": " input Json parameters",
            "localName": "params.json"
        },
        "outputRVT": {
            "verb": "put",
            "description": "Output Revit File",
            "localName": "result.rvt"
        }
    },
    "id": "yoursalias.HidePipeCenterLineActivity+dev",
    "engine": "Autodesk.Revit+2021",
    "appbundles": [
        "yoursalias.HidePipeCenterLine+dev"
    ],
    "settings": {},
    "description": "Activity for hiding pipe center lines from views",
    "version": 1
}

Workitem via POST workitems

{
    "activityId": "yoursalias.HidePipeCenterLineActivity+dev",
    "arguments": {
   "inputFile": {
     "verb": "get",
     "url": "https://developer.api.autodesk.com/oss/v2/signedresources/...?region=US"
   },
   "inputJson": {
     "verb": "get",
     "url": "data:application/json,{ 'viewIds': [ '429ba882-f0a0-40fa-96e6-c6e02d9fc601-00011abc' ] }"
   },
   "outputDwg": {
     "verb": "put",
     "url": "https://developer.api.autodesk.com/oss/v2/signedresources/...?region=US"
   }
 }
}

Tips & Tricks

  • viewIds: It's a set of Revit view's UniqueId retrieved by Revit API, or the viewableID that can be found in the response of APS Model Derivative GET :urn/manifest.

License

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

Written by

Eason Kang @yiskang, Developer Advocacy and Support

About

Revit Addin for hiding pipe center line from views


Languages

Language:C# 100.0%