Skip to content

_create_xde in export_step does not accept color as string #957

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

Open
jwagenet opened this issue Apr 1, 2025 · 1 comment
Open

_create_xde in export_step does not accept color as string #957

jwagenet opened this issue Apr 1, 2025 · 1 comment

Comments

@jwagenet
Copy link
Contributor

jwagenet commented Apr 1, 2025

This fails for AttributeError: 'str' object has no attribute 'wrapped'.

part = Box(1, 1, 1)
part.color = "black" # or "#000000"
part.label = "box"
export_step(part, part.label + ".step")

Using Color instead of string works, however string colors should be supported everywhere if supported anywhere.

part.color = Color(0, 0, 0)
@jwagenet
Copy link
Contributor Author

jwagenet commented Apr 8, 2025

Related to and likely solved by implementing #856

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

1 participant