For the complete documentation index, see llms.txt. This page is also available as Markdown.

Register Parametric Component

This guide explains how to create and manage parametric components that allow dynamic combinations of parameters such as dimensions and colors.

A parametric component is an advanced component type that lets users dynamically configure parameters like dimensions and colors. Unlike general components, users can directly adjust these parameter values within the Archisketch editor.

You must include the X-API-KEY in the header of all API requests. Refer to the "How to Use the API" guide for instructions on how to issue it.

X-API-KEY: {x-api-key}

Create Parametric Component

POST /api/v1/parametric

1

Prepare Required Information

In addition to general component information, a parametric component requires a parameter list and a composition list.

Field
Type
Required
Text

name

string

βœ…

Name

parametricType

string

βœ…

Parametric type (assembly, parametric-modeling)

translatedNames

array

βœ…

Multilingual names

dimension

object

βœ…

Dimensions

parameters

array

βœ…

Parameter list

compositions

array

βœ…

Composition list

images

array

βœ…

Image URL list

isFinal

boolean

Whether it is a final part (can be placed directly in the editor)

isPersonal

boolean

Whether it belongs to a personal library

modelingId

string

Modeling ID

parametricModeling

object

Parametric modeling details (used when parametricType is parametric-modeling)

2

Send Request

POST /api/v1/parametric
X-API-KEY: {x-api-key}

{
  "name": "Parametric Sofa",
  "parametricType": "assembly",
  "translatedNames": [
    { "code": "en", "value": "Parametric Sofa" },
    { "code": "ko", "value": "νŒŒλΌλ©”νŠΈλ¦­ μ†ŒνŒŒ" }
  ],
  "dimension": {
    "mm": { "width": 0, "depth": 0, "height": 0 }
  },
  "images": [],
  "isFinal": true,
  "editorSetting": {
    "editorType": "STANDING_ITEM",
    "dimensionLock": { "width": false, "depth": false, "height": false }
  },
  "parameters": [
    {
      "displayName": "Width",
      "referenceName": "W",
      "type": "BASIC",
      "valueInfo": {
        "usage": "NUMBER",
        "value": "900",
        "optionType": "RANGE",
        "options": { "min": "100", "max": "2400", "stepSize": "1" }
      },
      "priority": 0
    }
  ],
  "compositions": [],
  "parametricModeling": null
}
3

Check Response

Please save the generated parametric component ID. It will be used later for adding or updating parameters.

{
  "result": "SUCCESS",
  "data": {
    "componentId": "pmc_abc123"
  }
}

Update Parametric Component

PUT /api/v1/parametric/components/{id}

The Request Body structure is identical to that of the creation endpoint.

Parameter
Type
Required
Description

id

string

βœ…

Component ID

Manage Parameters

Get Parameter List

GET /api/v1/parametric/components/{componentId}/parameters

GET /api/v1/parametric/components/pmc_abc123/parameters
X-API-KEY: {x-api-key}

Add Parameters

POST /api/v1/parametric/components/{componentId}/parameters

Field
Type
Required
Description

parameters

array

βœ…

List of parameters to create

Update Parameter

POST /api/v1/parametric/components/parameters/{parameterId}

Field
Type
Required
Description

displayName

string

βœ…

Display name

referenceName

string

βœ…

Reference name

type

string

βœ…

Parameter type

valueInfo

object

βœ…

Value information

priority

integer

βœ…

Priority

description

string

Description

hideCondition

string

Hide condition expression

enterpriseParameterId

string

Enterprise parameter ID

Delete Single Parameter

DELETE /api/v1/parametric/components/parameters/{parameterId}

Delete Multiple Parameters

DELETE /api/v1/parametric/components/parameters

Field
Type
Required
Description

parameterIds

array

βœ…

List of parameter IDs to delete

Last updated

Was this helpful?