yiskang / aps-revit-ifc-exporter-appbundle

Sample IFC exporter app bundle of Autodesk APS Design Automation API for Revit with https://github.com/Autodesk/revit-ifc export option support
MIT License
12 stars 4 forks source link

Sample documentation for params.json #2

Closed Moult closed 1 year ago

Moult commented 1 year ago

In the README I notice you mention "localName": "params.json", is there an example of the syntax / contents of the params.json? I'm curious as to whether you can configure which 3D view the IFC is exported from (and thus inherits the visibility graphics settings).

yiskang commented 1 year ago

Hi, I use inline JSON here in the README and find the mapping class at RevitIfcExportor/InputParams.cs

{
    "activityId": "Autodesk.RevitIfcExportorActivity+dev",
    "arguments": {
        "inputFile": {
            "verb": "get",
            "url": "https://developer.api.autodesk.com/oss/v2/apptestbucket/9d3be632-a4fc-457d-bc5d-9e75cefc54b7?region=US"
        },
        "userPropertySetsFile": {
            "verb": "get",
            "url": "https://developer.api.autodesk.com/oss/v2/apptestbucket/97095bbc-1ce3-469f-99ba-0157bbcab73b?region=US"
        },
        "inputJson": {
            "url": "data:application/json,{\"exportSettingName\":\"IFC2x3 Coordination View 2.0\"}"
        },
        "outputIFC": {
            "verb": "put",
            "url": "https://developer.api.autodesk.com/oss/v2/apptestbucket/9d3be632-a4fc-457d-bc5d-9e75cefc54b7?region=US",
            "headers": {
                "Content-Type": "application/octet-stream"
            }
        }
    }
}
{
    "activityId": "Autodesk.RevitIfcExportorActivity+dev",
    "arguments": {
        "inputFile": {
            "verb": "get",
            "url": "https://developer.api.autodesk.com/oss/v2/apptestbucket/9d3be632-a4fc-457d-bc5d-9e75cefc54b7?region=US"
        },
        "userPropertySetsFile": {
            "verb": "get",
            "url": "https://developer.api.autodesk.com/oss/v2/apptestbucket/97095bbc-1ce3-469f-99ba-0157bbcab73b?region=US",
            "localName": "FmUserDefinedPropSets.txt"
        },
        "inputJson": {
            "url": "data:application/json,{\"exportSettingName\":\"My IFC Export Setup\", \"userDefinedPropertySetsFilenameOverride\": \"FmUserDefinedPropSets.txt\"}"
        },
        "outputIFC": {
            "verb": "put",
            "url": "https://developer.api.autodesk.com/oss/v2/apptestbucket/9d3be632-a4fc-457d-bc5d-9e75cefc54b7?region=US",
            "headers": {
                "Content-Type": "application/octet-stream"
            }
        }
    }
}

Specifying view is doable, but haven't implemented in this addin.

yiskang commented 1 year ago

While providing inuptJSON by inline format, DA will save it as param.json after DA starts processing the workitem.

Anyway, I updated the README. You can find available options in params.json here https://github.com/yiskang/forge-revit-ifc-exporter-appbundle#example-of-paramsjson