По идее, после CIBlockSection::GetTreeList можно SetUrlTemplates вызвать с требуемыми на данный момент шаблонами путей.[CODE]$rsSection = CIBlockSection::GetTreeList($arFilter, $arSelect);
$rsSection->SetUrlTemplates("", "/catalog/#SECTION_CODE_PATH#/");
while($arSection = $rsSection->GetNext()) {}[/CODE][URL=https://dev.1c-bitrix.ru/api_help/iblock/classes/ciblockresult/seturltemplates.php]https://dev.1c-bitrix.ru/api_help/iblock/classes/ciblockresult/seturltemplates.php[/URL]
$rsSection->SetUrlTemplates("", "/catalog/#SECTION_CODE_PATH#/");
while($arSection = $rsSection->GetNext()) {}[/CODE][URL=https://dev.1c-bitrix.ru/api_help/iblock/classes/ciblockresult/seturltemplates.php]https://dev.1c-bitrix.ru/api_help/iblock/classes/ciblockresult/seturltemplates.php[/URL]