Macro for finding edges

Dear SW experts,

I have a question regarding selecting edges using macro.

I have a two surface models. Both of them are curves surfaces; one is 200mm long 20mm radius and the other 300mm long 30mm radius.

I want to

1. select the first surface

2. select the long edges (100mm edges) and surface extend them by 20mm.

Can anyone please let me know, USING SW macro, as to

1. how to select edges in a particular surface

2. then calculate lengths and then reselect the longer edges

3. then extend them (part.insertextendsurface false 0 20)

Any suggestions much appreciated!

Thanks in advance,

Lax

SolidworksApi macros