first idea is using direct shape… …but finaly it contaminates your project. You can work with the dynamo geometry view in revit, for tracing openings… personaly i would look for stable closed loop workflow including tracing… like convoid https://www.conclass.tech/convoid
you can check topic like these ones