Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.12'
python-version: '3.14'
- run: pip install build
- run: python -m build
- uses: pypa/gh-action-pypi-publish@release/v1
- uses: pypa/gh-action-pypi-publish@release/v1.14
8 changes: 4 additions & 4 deletions .github/workflows/test_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.12'
python-version: '3.14'
- run: pip install build
- run: python -m build
- uses: pypa/gh-action-pypi-publish@release/v1
- uses: pypa/gh-action-pypi-publish@release/v1.14
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.14
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
build:
os: ubuntu-lts-latest
tools:
python: "3.12"
python: "3.14"

mkdocs:
configuration: mkdocs.yml
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12
FROM python:3.14

WORKDIR /app

Expand All @@ -15,4 +15,4 @@ EXPOSE 8080
CMD ["mkdocs", "serve", "--dev-addr=0.0.0.0:8080"]

# docker build -t cwapi3d-py .
# docker run --rm -p 8080:8080 cwapi3d-py
# docker run --rm -p 8080:8080 cwapi3d-py
6 changes: 6 additions & 0 deletions docs/documentation/connector_axis_item.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# connector_axis_item

::: cadwork.connector_axis_item
rendering:
show_root_heading: false
show_source: true
13 changes: 6 additions & 7 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ site_name: Cadwork Python Documentation
repo_name: cwapi3d/cwapi3dpython
repo_url: https://github.com/cwapi3d/cwapi3dpython

copyright: Copyright 2024 Cadwork
copyright: Copyright 2026 Cadwork

site_url: https://python.cadwork.dev/

theme:
name: material
logo: cw_logo.svg
favicon: cw_logo.svg
version: V2025
version: V2026
palette:
- scheme: default
toggle:
Expand Down Expand Up @@ -66,6 +66,7 @@ nav:
- Coordinate System Data: documentation/coordinate_system_data.md
- Active Point Result: documentation/active_point_result.md
- Display Attribute: documentation/display_attribute.md
- Connector Axis Item: documentation/connector_axis_item.md
- Connector Axis Controller: documentation/connector_axis_controller.md
- Dimension Controller: documentation/dimension_controller.md
- Element Controller: documentation/element_controller.md
Expand Down Expand Up @@ -153,11 +154,9 @@ plugins:
python:
paths: [src] # Directory containing Python modules
options:
show_signature_annotations: true
show_type_annotations: true
docstring_style: google # Set the docstring style
cross_reference: true # Enable cross-referencing to make links to classes, methods, and functions
show_source: false # Disable source code display
show_signature_annotations: true
docstring_style: google
show_source: false

extra:
social:
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[project]
name = "cwapi3d"
version = "32.443.10"
version = "33.264.1"
authors = [{ name = "Cadwork", email = "it@cadwork.ca" }]
requires-python = ">= 3.12"
requires-python = ">= 3.14"
description = 'Python bindings for CwAPI3D'
readme = "README.md"
license = { file = "LICENSE" }
Expand All @@ -14,7 +14,7 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries",
]

Expand Down
652 changes: 62 additions & 590 deletions requirements.txt

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/cadwork/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ from .active_point_result import active_point_result as active_point_result
from .attribute_display_settings import attribute_display_settings as attribute_display_settings
from .bim_team_upload_result import bim_team_upload_result as bim_team_upload_result
from .camera_data import camera_data as camera_data
from .connector_axis_item import connector_axis_item as connector_axis_item
from .coordinate_system_data import coordinate_system_data as coordinate_system_data
from .double_shoulder_options import double_shoulder_options as double_shoulder_options
from .edge_list import edge_list as edge_list
Expand Down Expand Up @@ -102,6 +103,7 @@ __all__ = [
"attribute_display_settings",
"bim_team_upload_result",
"camera_data",
"connector_axis_item",
"coordinate_system_data",
"double_shoulder_options",
"edge_list",
Expand Down
35 changes: 35 additions & 0 deletions src/cadwork/connector_axis_item.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
class connector_axis_item:

def get_guid(self) -> str:
"""get guid

Returns:
str
"""

def get_position(self) -> int:
"""get position

Returns:
int
"""

def set_guid(self, guid: str) -> None:
"""set guid

Parameters:
guid: guid

Returns:
None
"""

def set_position(self, position: int) -> None:
"""set_position

Parameters:
position: position

Returns:
None
"""
11 changes: 11 additions & 0 deletions src/connector_axis_controller/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ the configuration UI for connector axes. Distinct from connector
"""

from cadwork.point_3d import point_3d
from cadwork.connector_axis_item import connector_axis_item
from cadwork.api_types import *
from cadwork.vba_catalog_item_type import vba_catalog_item_type

Expand Down Expand Up @@ -550,3 +551,13 @@ def set_section_oblong_drilling_is_enabled(axis_id: ElementId, section_index: Un
negative_value: The negative value of the section oblong drilling.
angle: The angle of the section oblong drilling.
"""


def set_items_at_intersection(axis_id: ElementId, intersection_index: UnsignedInt, items: list[connector_axis_item]) -> None:
"""Sets item at intersection.

Parameters:
axis_id: The id of the axis.
intersection_index: The index of the intersection. (0-based index)
items: The items to set.
"""
Loading