Created attachment 177019 [details] Example with included macros Open attached document. It has a dummy text and an extruded shape 'MyStar'. Use the Developer Tools with enabled 'Current Selection'. Select the shape. In Developer Tools click on tab Properties. If it still shows 'TextRange', click Refresh. Result: Properties is empty. Toggle shape to 2D mode and do the same. Result: Properties shows <Object@SwXShape>{MyStar} The same problem is with Basic macros directly. The file has the Basic macros getSelectedShape_inWriter(oShape as variant) and examineShape_inWriter included. Macro examineShape_inWriter calls getSelectedShape_inWriter(). Using these macros you see the same: If the shape is in 2D mode, the selected shape is contained in CurrentSelection. If the shape is extruded to 3D mode, it is not contained in CurrentSelection.
Confirmed with Version: 7.3.5.2 / LibreOffice Community Build ID: 30(Build:2) CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb) Locale: pt-BR (pt_BR.UTF-8); UI: pt-BR Ubuntu package version: 1:7.3.5-0ubuntu0.22.04.1 Calc: threaded Jumbo