Skip to content
Closed
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
7 changes: 7 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This is a comment.
# Each line is a file pattern followed by one or more owners.

# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence,
# Owners will be requested for review when someone opens a PR.
* @greschd @janvonrickenbach @roosre
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Build library source and wheel artifacts"
uses: ansys/actions/build-library@v5
uses: ansys/actions/build-library@v6
with:
library-name: ${{ env.PACKAGE_NAME }}

Expand Down Expand Up @@ -47,14 +47,14 @@ jobs:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
steps:
- name: "Release to the public PyPI repository"
uses: ansys/actions/release-pypi-public@v5
uses: ansys/actions/release-pypi-public@v6
with:
library-name: ${{ env.PACKAGE_NAME }}
twine-username: "__token__"
twine-token: ${{ secrets.PYPI_TOKEN }}

- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: |
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ repos:
hooks:
- id: add-license-headers
args:
- --start_year=2022
- --start_year=2022
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pre-commit==3.6.2
pre-commit==3.7.1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
url=f"https://github.com/ansys/{package_name}",
license="MIT",
python_requires=">=3.7",
install_requires=["grpcio~=1.17", "protobuf>=3.19,<5"],
install_requires=["grpcio~=1.17", "protobuf>=3.19,<6"],
package_dir={"": "src"},
packages=setuptools.find_namespace_packages("src", include=("ansys.*",)),
package_data={
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/api/acp/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0.dev7
0.1.0.dev9
13 changes: 13 additions & 0 deletions src/ansys/api/acp/v0/enum_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,16 @@ enum BooleanOperationType {
ADD = 1;
REMOVE = 2;
}

enum OffsetType {
NO_OFFSET = 0;
BOTTOM_OFFSET = 1;
MIDDLE_OFFSET = 2;
TOP_OFFSET = 3;
}

enum ArrowType {
NO_ARROW = 0;
HALF_ARROW = 1;
STANDARD_ARROW = 2;
}
2 changes: 2 additions & 0 deletions src/ansys/api/acp/v0/material.proto
Original file line number Diff line number Diff line change
Expand Up @@ -286,5 +286,7 @@ service ObjectService {

rpc Create(CreateRequest) returns (ObjectInfo);

// Custom methods

rpc SaveToFile(SaveToFileRequest) returns (base.Empty);
}
6 changes: 6 additions & 0 deletions src/ansys/api/acp/v0/modeling_ply.proto
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import "ansys/api/acp/v0/enum_types.proto";
import "ansys/api/acp/v0/array_types.proto";
import "ansys/api/acp/v0/ply_material.proto";
import "ansys/api/acp/v0/linked_selection_rule.proto";
import "ansys/api/acp/v0/ply_geometry_export.proto";

enum ThicknessType {
NOMINAL = 0;
Expand Down Expand Up @@ -101,4 +102,9 @@ service ObjectService {
rpc Delete(base.DeleteRequest) returns (base.Empty);

rpc Create(CreateRequest) returns (ObjectInfo);

// Custom methods

rpc ExportGeometries(ply_geometry_export.ExportGeometriesRequest)
returns (base.Empty);
}
3 changes: 2 additions & 1 deletion src/ansys/api/acp/v0/oriented_selection_set.proto
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ message Properties {
array_types.DoubleArray orientation_direction = 4;
repeated base.ResourcePath rosettes = 5;
enum_types.RosetteSelectionMethod rosette_selection_method = 6;
// TODO: tabular values

repeated base.ResourcePath selection_rules = 7;

// draping-related properties
Expand All @@ -48,6 +48,7 @@ message Properties {
ply_material.DrapingMaterialType draping_material_model = 14;
double draping_ud_coefficient = 15;
double rotation_angle = 16;
base.ResourcePath reference_direction_field = 17;
}

message ObjectInfo {
Expand Down
50 changes: 50 additions & 0 deletions src/ansys/api/acp/v0/ply_geometry_export.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// Copyright (C) 2022 - 2024 ANSYS, Inc. and/or its affiliates.
// SPDX-License-Identifier: MIT
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

syntax = "proto3";
package ansys.api.acp.v0.ply_geometry_export;

import "ansys/api/acp/v0/base.proto";
import "ansys/api/acp/v0/enum_types.proto";

enum ExportFormat {
STEP = 0;
IGES = 1;
STL = 2;
}

message ExportOptions {
ExportFormat format = 1;
enum_types.OffsetType offset_type = 2;
bool include_boundary = 3;
bool include_surface = 4;
bool include_first_material_direction = 5;
bool include_second_material_direction = 6;
double arrow_length = 7;
enum_types.ArrowType arrow_type = 8;
}

message ExportGeometriesRequest {
string path = 1;
repeated base.ResourcePath plies = 2;
ExportOptions options = 3;
}
1 change: 1 addition & 0 deletions src/ansys/api/acp/v0/rosette.proto
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ message Properties {
array_types.DoubleArray origin = 4;
array_types.DoubleArray dir1 = 5;
array_types.DoubleArray dir2 = 6;
base.ResourcePath edge_set = 7;
}

message ObjectInfo {
Expand Down
10 changes: 5 additions & 5 deletions src/ansys/api/acp/v0/solid_model.proto
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ message DropOffSettings {

message ExportSettings {
bool use_default_section_index = 1;
int32 section_index = 2;
int64 section_index = 2;
bool use_default_coordinate_system_index = 3;
int32 coordinate_system_index = 4;
int64 coordinate_system_index = 4;
bool use_default_material_index = 5;
int32 material_index = 6;
int64 material_index = 6;
bool use_default_node_index = 7;
int32 node_index = 8;
int64 node_index = 8;
bool use_default_element_index = 9;
int32 element_index = 10;
int64 element_index = 10;
bool use_solsh_elements = 11;
bool write_degenerated_elements = 12;
bool drop_hanging_nodes = 13;
Expand Down