Skip to content

Commit

Permalink
0.7.4 (2022-05-16)
Browse files Browse the repository at this point in the history
------------------

Update for `Creoson 2.8.1 release`_.

* Add parameters:
    * bom_get_paths : get_simpreps
* Documentation update:
    * creo_set_creo_version : Creo 8 support.Merge branch 'release/v0.7.4'
  • Loading branch information
Zepmanbc committed May 16, 2022
2 parents ab99d6c + 3a4d298 commit 4fc06d1
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 6 deletions.
12 changes: 12 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
History
=======

0.7.4 (2022-05-16)
------------------

Update for `Creoson 2.8.1 release`_.

* Add parameters:
* bom_get_paths : get_simpreps
* Documentation update:
* creo_set_creo_version : Creo 8 support.

.. _`Creoson 2.8.1 release`: https://github.com/SimplifiedLogic/creoson/releases/tag/v2.8.1

0.7.3 (2021-08-29)
------------------

Expand Down
2 changes: 1 addition & 1 deletion creopyson/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

__author__ = """Benjamin C."""
__email__ = "[email protected]"
__version__ = "0.7.3"
__version__ = "0.7.4"

from creopyson.connection import Client
from creopyson.objects import jlpoint
Expand Down
6 changes: 6 additions & 0 deletions creopyson/bom.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def get_paths(
top_level=None,
get_transforms=None,
exclude_inactive=None,
get_simpreps=None,
):
"""Get a hierarchy of components within an assembly.
Expand All @@ -35,6 +36,9 @@ def get_paths(
exclude_inactive (boolean, optional):
Whether to exclude components which do not
have an ACTIVE status. (default" : False)
get_simpreps (boolean, optionnal):
Whether to return the Simplified Rep data for each component.
(default" : False)
Returns:
Dict:
Expand Down Expand Up @@ -69,4 +73,6 @@ def get_paths(
data["get_transforms"] = get_transforms
if exclude_inactive is not None:
data["exclude_inactive"] = exclude_inactive
if get_simpreps is not None:
data["get_simpreps"] = get_simpreps
return client._creoson_post("bom", "get_paths", data)
5 changes: 3 additions & 2 deletions creopyson/creo.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,10 @@ def set_creo_version(client, version):
This function only needs to be called once per creoson session.
This function must be called if you are doing certain functions
in Creo 7 due to deprecated config options.
in Creo 7 or later due to deprecated config options.
At this time this function only supports 7 and 8.
Needed for functions:
This is needed for functions:
familytable_replace
file_assemble
file_regenerate
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.7.3
current_version = 0.7.4
commit = True
tag = False

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
test_suite="tests",
tests_require=test_requirements,
url="https://github.com/Zepmanbc/creopyson",
version="0.7.3",
version="0.7.4",
zip_safe=False,
)
3 changes: 2 additions & 1 deletion tests/test_bom.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ def test_bom_get_paths_ok(mk_creoson_post_dict, mk_getactivefile):
skeletons=True,
top_level=True,
get_transforms=True,
exclude_inactive=True
exclude_inactive=True,
get_simpreps=True,
)
assert isinstance(result, (dict))
c = creopyson.Client()
Expand Down

0 comments on commit 4fc06d1

Please sign in to comment.