rename Line Segment

Hi Dear,
I am working on Pressure Vessel Automation. I have problem inre-naming of line segment using API Programming please let me knowis there any way that i can change The Name of Line Segment insidePart or Assembly using any of the language.
Your reply/Effort will be highly appreciated.

Regards,
Aqeel Ahmed
Aqeel.ahmed@vvi.ccSolidworksApi macros