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

[ArchStairs] Regression-fix : EnsureBase prevent creation #18651

Conversation

paullee0
Copy link
Contributor

Stairs can do without Base. Base validity is tested in code.

EnsureBase() is remarked out.

Stairs can do without Base.  Base validity is tested in code.

EnsureBase() is remarked out.
@github-actions github-actions bot added the Mod: BIM Related to the BIM/Arch Workbench label Dec 21, 2024
@paullee0 paullee0 changed the title [ArchStairs] Regression-fix : EnsureBase preventcreation [ArchStairs] Regression-fix : EnsureBase prevent creation Dec 21, 2024
@paullee0
Copy link
Contributor Author

paullee0 commented Dec 21, 2024

Likewise, ArchWall wiki - 'A wall can be built without any base object...', though ArchWall interactive mode always create base object.

Not sure how an ArchWall could be created without a Base interactively (can remove the Base after creation of a Wall though), but ensureBase() is in contradiction to what wiki states.

EDIT - #16409

@yorikvanhavre
Copy link
Member

Maybe it's better to have ensureBase let pass if there is no base? Or, give it a parameter that allows (or not) to have an empty base...

Not sure how an ArchWall could be created without a Base interactively

That's on my TODO list ;)

@paullee0
Copy link
Contributor Author

Hmmm, would give it another thought

@yorikvanhavre
Copy link
Member

In any case, let's merge this one already as it restores correct functionality.

@yorikvanhavre yorikvanhavre merged commit 6bb424b into FreeCAD:main Dec 24, 2024
10 checks passed
@paullee0
Copy link
Contributor Author

Maybe the checking should be done at creation commands, when user select base objects, e.g. :

  • BimWall
  • BimStairs
  • etc ...

Agreed?

paullee0 added a commit to paullee0/FreeCAD that referenced this pull request Jan 4, 2025
Refer to discussion at -
FreeCAD#18651
FreeCAD#16409

Wall should do without Base. Base validity tested in execute() prevented the desired and documented behaviour.

EnsureBase() is remarked out in execute() and to be run in getExtrusionData().  With this fix, if there is no Base, or Base is not valid, Wall would be created as declared.
paullee0 added a commit to paullee0/FreeCAD that referenced this pull request Jan 5, 2025
Refer to discussion at -
FreeCAD#18864
FreeCAD#18651
FreeCAD#16409

Like Wall, Stairs should do without Base. Base validity tested in execute() prevented the desired and documented behaviour.

With this improvement, EnsureBase() is now only to be run when there is Base. If there is no Base, or Base is not valid, Stairs would be created as declared.
yorikvanhavre pushed a commit that referenced this pull request Jan 6, 2025
Refer to discussion at -
#18864
#18651
#16409

Like Wall, Stairs should do without Base. Base validity tested in execute() prevented the desired and documented behaviour.

With this improvement, EnsureBase() is now only to be run when there is Base. If there is no Base, or Base is not valid, Stairs would be created as declared.
yorikvanhavre pushed a commit that referenced this pull request Jan 6, 2025
Refer to discussion at -
#18651
#16409

Wall should do without Base. Base validity tested in execute() prevented the desired and documented behaviour.

EnsureBase() is remarked out in execute() and to be run in getExtrusionData().  With this fix, if there is no Base, or Base is not valid, Wall would be created as declared.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mod: BIM Related to the BIM/Arch Workbench
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants