Update pick_point() in pyrevitlib\pyrevit\revit\selection.py#3080
Update pick_point() in pyrevitlib\pyrevit\revit\selection.py#3080jmcouffin merged 1 commit intopyrevitlabs:developfrom
Conversation
The absence of reference planes in Drafting Views and Legends has been taken into account.
There was a problem hiding this comment.
Pull request overview
This pull request fixes an issue in the pick_point() function where it incorrectly attempted to create a temporary sketch plane for Drafting Views and Legend views, which don't support reference planes/sketch planes.
Changes:
- Added a check to exclude
DB.ViewType.DraftingViewandDB.ViewType.Legendfrom automatic sketch plane creation - Introduced a tuple constant
NO_SKETCHPLANE_VIEWTYPESto define view types that don't support sketch planes - Replaced the simple
if active_view.SketchPlane is Nonecondition with a compoundneeds_planevariable that accounts for view type
|
📦 New work-in-progress (wip) builds are available for 6.0.0.26036+1355-wip |
|
📦 New work-in-progress (wip) builds are available for 6.0.0.26036+2010-wip |
|
📦 New work-in-progress (wip) builds are available for 6.0.0.26036+2016-wip |
|
📦 New work-in-progress (wip) builds are available for 6.0.0.26043+2007-wip |
|
📦 New work-in-progress (wip) builds are available for 6.0.0.26043+2031-wip |
|
📦 New work-in-progress (wip) builds are available for 6.0.0.26043+2041-wip |
|
📦 New work-in-progress (wip) builds are available for 6.0.0.26044+0650-wip |
|
📦 New work-in-progress (wip) builds are available for 6.0.0.26046+2000-wip |
|
📦 New work-in-progress (wip) builds are available for 6.0.0.26047+0654-wip |
|
📦 New work-in-progress (wip) builds are available for 6.0.0.26047+0653-wip |
|
📦 New work-in-progress (wip) builds are available for 6.0.0.26047+0702-wip |
|
📦 New work-in-progress (wip) builds are available for 6.0.0.26047+1948-wip |
|
📦 New work-in-progress (wip) builds are available for 6.0.0.26047+2011-wip |
|
📦 New work-in-progress (wip) builds are available for 6.0.0.26047+2110-wip |
|
📦 New work-in-progress (wip) builds are available for 6.0.0.26047+2131-wip |
|
📦 New work-in-progress (wip) builds are available for 6.0.0.26047+2147-wip |
|
📦 New work-in-progress (wip) builds are available for 6.0.0.26047+2248-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26047+2255-wip |
|
📦 New public release are available for 6.1.0.26047+2349 |
The absence of reference planes in Drafting Views and Legends has been taken into account.