06 - Step-by-Step: Revit vs Paracore Selection
Practice different ways to target elements in the Revit viewport.
1. Direct Point Picking (XYZ)
- Add
public XYZ? MyPoint { get; set; }to yourParamsclass. - Save and look for the Selection Cursor icon in the Parameters tab.
- Click the icon, switch to Revit, and click a point in the view.
2. Picking Elements (Reference)
- Add
public Reference? UserPick { get; set; }to yourParamsclass. - Save, click the Selection button, and pick an element in Revit.
- Verify the element's name appears in the Paracore UI.
3. Forced Pick ([Select] Attribute)
- Force a direct pick for a standard type:
[Select(SelectionType.Element)]
public Wall? TargetWall { get; set; } - Save, click the Selection button, and pick a wall directly. Notice this bypasses the standard dropdown list.
4. Constrained Element Picking
- Restrict the selection to a specific category:
[RevitElements(Category = "Doors")]
public Reference? MyDoor { get; set; } - Save, click the Selection button, and attempt to pick various objects. Notice only Doors are selectable.
Next Exercise: 07 - The Paracore Visual Query Builder