This paper presents the development of a generic active distribution network (ADN) operation simulation framework that incorporates selected swarm optimization algorithms (SOAs) for the purpose of reducing CO2 emissions and line loss minimization through network reconfiguration (NR). The framework has been implemented in the ADN of Taipower. Network data, provided by the Distribution Mapping Management System and Distribution Dispatch Control Center (DDCC) of Taipower, were converted into an OpenDSS script to create ADN models. The SOA is integrated into the framework and utilized to determine the statuses of both four-way and two-way switches in the planning and operating stages, in accordance with the proposed multi-objective function and operational constraints. The weightings for these decisions can be customized by distribution operators to meet their specific requirements. In this paper, the weighting for line loss reduction is set to one for minimizing CO2 emissions. The numerical results demonstrate that the proposed ADN framework can recommend a feeder switching scheme to distribution operators, aiming to balance feeder loading and minimize the neutral line current. Finally, this approach leads to reduced line losses and minimizes CO2 emissions. In contrast to relying solely on historical operational experience, this generic ADN reconfiguration framework offers a systematic approach that can significantly contribute to reducing CO2 emissions and enhancing the operational efficiency of ADNs.