-
Notifications
You must be signed in to change notification settings - Fork 128
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
ZStart must be 0 in Maxwell 2D #4017
Labels
bug
Something isn't working
Comments
Devin-Crawford
added a commit
that referenced
this issue
Dec 29, 2023
Addressed a defect #4017 that was identified while updating unit tests. Added documentation and updated the unit tests to allow properties of primitives to be set using arguments when they are created.
There should be a message written to the log when an attempt to update transparency fails. |
Devin-Crawford
added a commit
that referenced
this issue
Jan 2, 2024
* Pass some proprties when creating a primitive. Update GeometryModeler._create_object in Primitives.py Add **kwargs as last argument to most primitive creation methods in Primitives3D * Update unit tests and documentation. Addressed a defect #4017 that was identified while updating unit tests. Added documentation and updated the unit tests to allow properties of primitives to be set using arguments when they are created. * Remove comma A comma on the last line in a list of arguments is invalid Python 2.7 syntax. * Update argument handling for primitives - Address a syntax change in Maxwell 2D for primitives in Primitives2D in the plane property. - Automate assignment of any valid property to a primitive on instantiation using kwargs. * Update test_02_2D_modeler.py test_09_plot() was failing because the regular polygon start and first position were along the z-axis while the polygon should have been in the XY plane. This was also the case in the "main" branch. * Minor cleanup of comments. * Fix error caused by transparency. There is a defect in the native API that leads to strange behavior when transparency of 2d objects is set. * Fix formatting to pass IronPython test. * Resolve style conflicts Black changes syntax that causes IronPython failures. This was resolved using # fmt: on ... # fmt: off
@dcrawforAtAnsys Is this feature already impleted right? Please close the issue if it is. |
This is an issue in the native API but should not come up when using PyAEDT. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Before submitting the issue
Description of the bug
The property
transparency
for 2D primitives does not exist if theZStart
value passed to the native API is non-zero. This can be seen in the unit testtest_04_create_rectangle
when trying to modify transparency after creating a rectangle.Steps To Reproduce
Run the following script in the native API. The rectangle transparency cannot be modified.
change
ZStart
to0mm
and all is well again.Which Operating System are you using?
Windows
Which Python version are you using?
3.10
Installed packages
all dependences are installed.
The text was updated successfully, but these errors were encountered: