-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #212 from cwapi3d/feature/add-new-cwapi3d-functions
- add new cwapi3d functions for build >= 30.0.593
- Loading branch information
Showing
11 changed files
with
361 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# BIMteam upload | ||
|
||
::: src.cadwork.bim_team_upload_result | ||
rendering: | ||
show_root_heading: false | ||
show_source: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = "cwapi3d" | ||
version = "30.0.533" | ||
version = "30.0.593" | ||
authors = [{ name = "Cadwork", email = "[email protected]" }] | ||
requires-python = ">= 3.10" | ||
description = 'Python bindings for CwAPI3D' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from src.cadwork.bim_team_upload_result_code import bim_team_upload_result_code | ||
|
||
|
||
class bim_team_upload_result: | ||
"""bim team upload result | ||
""" | ||
|
||
def __init__(self): | ||
""" | ||
Instance of the bim_team_upload_result class. | ||
Attributes: | ||
upload_result_code (bim_team_upload_result_code): The result code of the upload. | ||
share_link (str): The share link for the uploaded BIM team result. | ||
""" | ||
self.upload_result_code = bim_team_upload_result_code.ok | ||
self.share_link = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from enum import IntEnum, unique | ||
|
||
|
||
@unique | ||
class bim_team_upload_result_code(IntEnum): | ||
"""bim team upload result code | ||
Examples: | ||
>>> cadwork.bim_team_upload_result_code.ok | ||
ok | ||
""" | ||
ok = 0 | ||
"""""" | ||
error_general_error = 1 | ||
"""""" | ||
error_too_many_models = 2 | ||
"""""" | ||
error_insufficient_storage = 3 | ||
"""""" | ||
error_invalid_project_id = 4 | ||
"""""" | ||
error_authentication_failed = 5 | ||
"""""" | ||
|
||
def __int__(self) -> int: | ||
return self.value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.