Skip to content
New issue

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

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

Already on GitHub? # to your account

mdb.Model(..., objectToCopy=...) - objectToCopy parameter not part of typing. #5707

Closed
sebastianvitterso opened this issue Aug 19, 2024 · 1 comment · Fixed by #5708
Closed
Labels
bug Something isn't working

Comments

@sebastianvitterso
Copy link

Describe the bug
As far as I can see in the first source I get on google after searching, there's supposed to be a objectToCopy parameter to e.g. the mdb.Model function/constructor.

Showing the bug here:
image

Reproducible Code
If possible, please provide a minimal reproducible example (MRE) that we
can run to reproduce the issue. You can use the following template to create a MRE:

from typing import TYPE_CHECKING

from abaqus import mdb

if TYPE_CHECKING:
    from abaqus.Model.Model import Model

model: "Model" = mdb.models["Model-1"]
name = "Model-1"
instance = mdb.Model(name=name, objectToCopy=model)
@sebastianvitterso
Copy link
Author

Thanks! 🙏🥳

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants