How to set feature origin in visual component use C#

I need to figure out how to batch set feature origin to a specific point, such as feature boundcenter, setting the origin of one beam at a time is also very time-consuming