Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit 593b28e

Browse files
committed
MINOR: add model layout_name for DWG models (#780)
1 parent 3f7b96a commit 593b28e

17 files changed

+82
-19
lines changed

docs/CollaborationApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ Name | Type | Description | Notes
961961
962962
Create a document
963963

964-
Create a document. If the document is one of {'OBJ', 'GLTF', 'IFC', 'DWG', 'POINT_CLOUD', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
964+
Create a document. If the document is one of {'IFC', 'GLTF', 'OBJ', 'DXF', 'POINT_CLOUD', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
965965

966966
### Example
967967

docs/CreateMultiPageModelRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**mapFiles** | **[File]** | |
8+
**layoutNames** | **[String]** | | [optional]
89

910

docs/Model.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Name | Type | Description | Notes
3434
**recommanded2dAngle** | **Number** | This is the angle in clockwise degree to apply on the 2D to optimise the horizontality of objects. This field is only for information. Updating it won't impact the export. | [optional]
3535
**parentId** | **Number** | The first page of the pdf | [readonly]
3636
**pageNumber** | **Number** | The page number of the related pdf | [readonly]
37+
**layoutName** | **String** | The name of the DWG layout (only set when type==DWG) | [optional]
3738
**children** | [**[ModelSerializerWithoutChildren]**](ModelSerializerWithoutChildren.md) | Contains additional pages of a pdf | [readonly]
3839

3940

docs/ModelSerializerWithoutChildren.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Name | Type | Description | Notes
3434
**recommanded2dAngle** | **Number** | This is the angle in clockwise degree to apply on the 2D to optimise the horizontality of objects. This field is only for information. Updating it won't impact the export. | [optional]
3535
**parentId** | **Number** | The first page of the pdf | [readonly]
3636
**pageNumber** | **Number** | The page number of the related pdf | [readonly]
37+
**layoutName** | **String** | The name of the DWG layout (only set when type==DWG) | [optional]
3738

3839

3940

docs/PatchedModelRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**version** | **String** | This field is only for information. Updating it won't impact the export. | [optional]
1313
**northVector** | **[[Number]]** | This field is only for information. Updating it won't impact the export. | [optional]
1414
**recommanded2dAngle** | **Number** | This is the angle in clockwise degree to apply on the 2D to optimise the horizontality of objects. This field is only for information. Updating it won't impact the export. | [optional]
15+
**layoutName** | **String** | The name of the DWG layout (only set when type==DWG) | [optional]
1516

1617

1718

docs/WriteFolderRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7+
**name** | **String** | Name of the folder |
78
**defaultPermission** | **Number** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
89
**parentId** | **Number** | | [optional]
9-
**name** | **String** | Name of the folder |
1010
**children** | [**[WriteFolderRequest]**](WriteFolderRequest.md) | | [optional]
1111

1212

src/api/CollaborationApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ export default class CollaborationApi {
867867

868868
/**
869869
* Create a document
870-
* Create a document. If the document is one of {'OBJ', 'GLTF', 'IFC', 'DWG', 'POINT_CLOUD', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
870+
* Create a document. If the document is one of {'IFC', 'GLTF', 'OBJ', 'DXF', 'POINT_CLOUD', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
871871
* @param {Number} cloudPk A unique integer value identifying this cloud.
872872
* @param {Number} projectPk A unique integer value identifying this project.
873873
* @param {String} name Shown name of the file
@@ -933,7 +933,7 @@ export default class CollaborationApi {
933933

934934
/**
935935
* Create a document
936-
* Create a document. If the document is one of {'OBJ', 'GLTF', 'IFC', 'DWG', 'POINT_CLOUD', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
936+
* Create a document. If the document is one of {'IFC', 'GLTF', 'OBJ', 'DXF', 'POINT_CLOUD', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
937937
* @param {Number} cloudPk A unique integer value identifying this cloud.
938938
* @param {Number} projectPk A unique integer value identifying this project.
939939
* @param {String} name Shown name of the file

src/model/CreateMultiPageModelRequest.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ class CreateMultiPageModelRequest {
5252
if (data.hasOwnProperty('map_files')) {
5353
obj['map_files'] = ApiClient.convertToType(data['map_files'], [File]);
5454
}
55+
if (data.hasOwnProperty('layout_names')) {
56+
obj['layout_names'] = ApiClient.convertToType(data['layout_names'], ['String']);
57+
}
5558
}
5659
return obj;
5760
}
@@ -64,6 +67,11 @@ class CreateMultiPageModelRequest {
6467
*/
6568
CreateMultiPageModelRequest.prototype['map_files'] = undefined;
6669

70+
/**
71+
* @member {Array.<String>} layout_names
72+
*/
73+
CreateMultiPageModelRequest.prototype['layout_names'] = undefined;
74+
6775

6876

6977

src/model/Model.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ class Model {
187187
if (data.hasOwnProperty('page_number')) {
188188
obj['page_number'] = ApiClient.convertToType(data['page_number'], 'Number');
189189
}
190+
if (data.hasOwnProperty('layout_name')) {
191+
obj['layout_name'] = ApiClient.convertToType(data['layout_name'], 'String');
192+
}
190193
if (data.hasOwnProperty('children')) {
191194
obj['children'] = ApiClient.convertToType(data['children'], [ModelSerializerWithoutChildren]);
192195
}
@@ -360,6 +363,12 @@ Model.prototype['parent_id'] = undefined;
360363
*/
361364
Model.prototype['page_number'] = undefined;
362365

366+
/**
367+
* The name of the DWG layout (only set when type==DWG)
368+
* @member {String} layout_name
369+
*/
370+
Model.prototype['layout_name'] = undefined;
371+
363372
/**
364373
* Contains additional pages of a pdf
365374
* @member {Array.<module:model/ModelSerializerWithoutChildren>} children

src/model/ModelSerializerWithoutChildren.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ class ModelSerializerWithoutChildren {
184184
if (data.hasOwnProperty('page_number')) {
185185
obj['page_number'] = ApiClient.convertToType(data['page_number'], 'Number');
186186
}
187+
if (data.hasOwnProperty('layout_name')) {
188+
obj['layout_name'] = ApiClient.convertToType(data['layout_name'], 'String');
189+
}
187190
}
188191
return obj;
189192
}
@@ -354,6 +357,12 @@ ModelSerializerWithoutChildren.prototype['parent_id'] = undefined;
354357
*/
355358
ModelSerializerWithoutChildren.prototype['page_number'] = undefined;
356359

360+
/**
361+
* The name of the DWG layout (only set when type==DWG)
362+
* @member {String} layout_name
363+
*/
364+
ModelSerializerWithoutChildren.prototype['layout_name'] = undefined;
365+
357366

358367

359368

0 commit comments

Comments
 (0)