Skip to content

Push of pad foundation #1651

Merged
pawelbaran merged 32 commits into
developfrom
Revit_Toolkit-#1650-SupportRevitPadFoundation_Push
Jun 10, 2026
Merged

Push of pad foundation #1651
pawelbaran merged 32 commits into
developfrom
Revit_Toolkit-#1650-SupportRevitPadFoundation_Push

Conversation

@WojciechBuda00

@WojciechBuda00 WojciechBuda00 commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

NOTE: Depends on

Issues addressed by this PR

Closes #1650

Test files

installer

Changelog

Additional comments

@WojciechBuda00 WojciechBuda00 self-assigned this Mar 31, 2026
@WojciechBuda00 WojciechBuda00 added the type:feature New capability or enhancement label Mar 31, 2026
@WojciechBuda00

Copy link
Copy Markdown
Contributor Author

@BHoMBot check installer

@bhombot-ci

bhombot-ci Bot commented Mar 31, 2026

Copy link
Copy Markdown

@WojciechBuda00 to confirm, the following actions are now queued:

  • check installer

There are 2 requests in the queue ahead of you.

@WojciechBuda00

Copy link
Copy Markdown
Contributor Author

@BHoMBot check installer

@bhombot-ci

bhombot-ci Bot commented Apr 1, 2026

Copy link
Copy Markdown

@WojciechBuda00 to confirm, the following actions are now queued:

  • check installer

There are 12 requests in the queue ahead of you.

@WojciechBuda00

Copy link
Copy Markdown
Contributor Author

@BHoMBot check project-compliance
@BHoMBot check code-compliance

@bhombot-ci

bhombot-ci Bot commented Apr 2, 2026

Copy link
Copy Markdown

@WojciechBuda00 to confirm, the following actions are now queued:

  • check project-compliance
  • check code-compliance

@bhombot-ci

bhombot-ci Bot commented Apr 3, 2026

Copy link
Copy Markdown

Please be advised that the check with reference 69798898856 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 49 additional annotations waiting, made up of 49 errors and 0 warnings.

@bhombot-ci

bhombot-ci Bot commented Apr 3, 2026

Copy link
Copy Markdown

Please be advised that the check with reference 69807979654 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 4 additional annotations waiting, made up of 4 errors and 0 warnings.

@WojciechBuda00

Copy link
Copy Markdown
Contributor Author

@BHoMBot check installer

@bhombot-ci

bhombot-ci Bot commented Apr 3, 2026

Copy link
Copy Markdown

@WojciechBuda00 to confirm, the following actions are now queued:

  • check installer

@pawelbaran pawelbaran left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is still quite some work to do, see my comments. On top of that, I've tested the PR using the foundations pulled from #1646, and have a few comments comments:

  • one element comes out rotated by 90 degrees
  • foundations with nonlinear edges throw nasty errors on push
    Image
  • have not tested, but what will happen with foundations with outlines as non-rectangular polylines?
Image

We also need to catch up on 2 more topics:

  • setting up the families
  • update of foundation dimensions on Update

Comment thread Revit_Core_Engine/Compute/GeneratePadFoundation.cs Outdated
Comment thread Revit_Core_Engine/Compute/GeneratePadFoundation.cs Outdated
Comment thread Revit_Core_Engine/Compute/GeneratePadFoundation.cs Outdated
Comment thread Revit_Core_Engine/Compute/GeneratePadFoundation.cs Outdated
Comment thread Revit_Core_Engine/Compute/GeneratePadFoundation.cs Outdated
Comment thread Revit_Core_Engine/Query/FoundationGeometry.cs Outdated
Comment thread Revit_Core_Engine/Query/FoundationGeometry.cs Outdated
Comment thread Revit_Core_Engine/Query/FoundationGeometry.cs Outdated
Comment thread Revit_Core_Engine/Query/FoundationGeometry.cs Outdated
Comment thread Revit_Core_Engine/Query/FoundationGeometry.cs Outdated
Non-rectangular pad foundations are now supported by using the longest edge direction for rotation
@bhombot-ci

bhombot-ci Bot commented Apr 25, 2026

Copy link
Copy Markdown

Please be advised that the check with reference 72981031267 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 99 additional annotations waiting, made up of 99 errors and 0 warnings.

@pawelbaran pawelbaran left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks quite good now, please see the code comments + there are compliance issues to fix as well.

Comment thread Revit_Core_Engine/Query/FoundationGeometry.cs Outdated
Comment thread Revit_Core_Engine/Query/FoundationGeometry.cs Outdated
Comment thread Revit_Core_Engine/Query/FoundationGeometry.cs Outdated
Comment thread Revit_Core_Engine/Query/FoundationGeometry.cs Outdated
Comment thread Revit_Core_Engine/Query/IsMatchingOutline.cs Outdated
Comment thread Revit_Core_Engine/Modify/OrientToOrigin.cs Outdated
Comment thread Revit_Core_Engine/Query/TransformToOriginInXY.cs Outdated

@pawelbaran pawelbaran left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code stopped compiling after the last commit

Comment thread Revit_Core_Engine/Query/PadFoundation.cs Outdated
Comment thread Revit_Core_Engine/Query/FoundationGeometry.cs Outdated
Comment thread Revit_Core_Engine/Query/FoundationGeometry.cs Outdated
Fixed:
-Pad rotation
-Direction vector length
Migrated methods to Geometry_Engine:
-IsRectangle
-LongestEdgeDirection
@WojciechBuda00 WojciechBuda00 requested a review from pawelbaran May 26, 2026 08:05

@pawelbaran pawelbaran left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Starts looking very good overall!! I left a few comments in the code, also one issue with the tests:

  1. Select the upper left rectangle
Image
  1. Update polygon outline
Image
  1. Rhino vs Revit (mirror against Y):
Image

Comment thread Revit_Core_Engine/Modify/SetLocation.cs Outdated
Comment thread Revit_Core_Engine/Modify/SetLocation.cs
Comment thread Revit_Core_Engine/Modify/SetLocation.cs Outdated
Comment thread Revit_Core_Engine/Query/IsMatchingOutline.cs Outdated
Comment thread Revit_Core_Engine/Query/TransformToOriginInXY.cs
@WojciechBuda00 WojciechBuda00 requested a review from pawelbaran June 9, 2026 12:55
@pawelbaran

Copy link
Copy Markdown
Member

@BHoMBot check compliance

@bhombot-ci

bhombot-ci Bot commented Jun 9, 2026

Copy link
Copy Markdown

@pawelbaran to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check branch-compliance
  • check dataset-compliance
  • check copyright-compliance

There are 347 requests in the queue ahead of you.

@pawelbaran pawelbaran left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code reviewed & tested, really happy with it now, thank you @WojciechBuda00 💪

@pawelbaran

Copy link
Copy Markdown
Member

@BHoMBot check required

@bhombot-ci

bhombot-ci Bot commented Jun 9, 2026

Copy link
Copy Markdown

@pawelbaran to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check core
  • check null-handling
  • check serialisation
  • check versioning
  • check installer

There are 370 requests in the queue ahead of you.

@bhombot-ci

bhombot-ci Bot commented Jun 9, 2026

Copy link
Copy Markdown

The check code-compliance has already been run previously and recorded as a successful check. This check has not been run again at this time.

@bhombot-ci

bhombot-ci Bot commented Jun 9, 2026

Copy link
Copy Markdown

The check documentation-compliance has already been run previously and recorded as a successful check. This check has not been run again at this time.

@bhombot-ci

bhombot-ci Bot commented Jun 10, 2026

Copy link
Copy Markdown

@WojciechBuda00 just to let you know, I have provided a check-ready-to-merge result to this Pull Request as it was detected to be linked to other Pull Requests in a series. The comment which triggered this check came from @pawelbaran on BHoM_Engine

@pawelbaran pawelbaran merged commit 30ff852 into develop Jun 10, 2026
12 checks passed
@pawelbaran pawelbaran deleted the Revit_Toolkit-#1650-SupportRevitPadFoundation_Push branch June 10, 2026 19:32
@BHoMBot BHoMBot mentioned this pull request Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:feature New capability or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for pad foundations - push

2 participants