Bidding proceeds as indicated.
You, as responder, have 3 possible routes from here.
1) Set diamonds as trumps and investigate 6D
2) Look for 3NT and force to 5D
3) Look for 3NT and invite to 5D (offering the option of stopping in 4D if 3NT is unplayable).
How do you keep all 3 options in play, and what different routes do you take?