Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Missing scale_on_extremities in DrawingArrow #230

Closed
siddhu2310 opened this issue Aug 19, 2024 · 5 comments
Closed

[BUG] Missing scale_on_extremities in DrawingArrow #230

siddhu2310 opened this issue Aug 19, 2024 · 5 comments
Assignees

Comments

@siddhu2310
Copy link

Describe the bug
scale_on_extremities property is missing in the DrawingArrow Object

Expected behavior
These below property need to be added in the drawing_arrow.py
image

Desktop (please complete the following information):

  • OS: Windows 11
  • CATIA V5-6R2020
  • pycatia version : pycatia 0.7.3
@evereux
Copy link
Owner

evereux commented Aug 19, 2024

According to the V5Automation.chm from V5-6R2021 this was introduced in V5-6R2018 GA. However, I do have the V5Automation.chm from V5-6R2018 GA which was in fact used to generate pycatia. Must not have been properly documented at this stage by Dassault.

Anyways, this will get added but I'll need to go through all the new features and try and capture them too. I'll also need to get pycatia to do a version check before the user runs the these new methods. Unless, I leave them to fail without telling the user why, maybe just comment on the fact in the doc string for the method?

Unfortunately I don't currently have a way to test them anyway.

I'll need to think on this ....

@siddhu2310
Copy link
Author

image

Property ScaleOnExtremities() As boolean

Returns or sets the scale on extremities mode.
Example:
This example retrieves the target element of head side on MyArrow drawing arrow.

 oScaleOnExtremities = MyArrow.ScaleOnExtremities

@evereux
Copy link
Owner

evereux commented Aug 24, 2024

I've now added a bunch of new Classes, methods, properties and enums introduced between R2018 and R2021 which are listed in the CHANGELOG.md for the developement branch.

One of these additions is DrawingArrow.scale_on_extremities.

This will be included in next release which will be 0.8.0.

Thanks for letting me know about this.

I should be able to get the V5Automation.chm for CATIA V5-6R2023 in a couple of weeks so I'll add anything missing between
CATIA V5-6R2021 > CATIA V5-6R2023 then.

@siddhu2310
Copy link
Author

@evereux

If Suppose user uses the lower version, notify them with error msg : These Methods or Class, Property not available with this CATIA version.

@evereux
Copy link
Owner

evereux commented Aug 26, 2024

What I ended up doing was simply log a message to the console if the CATIA version is lower than the requirement.

0.8.0 is now released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants