how to select an edge called pippo in a part that is placed inside an assembly ?

i'm try to select a plane by name ( pippo) but i'm not able

just

Set swEnt1 = Part.GetEntityByName("pippo", swSelectType_e.swSelPLANESECTIONS)

swEnt1.Select4 False, Nothing

i Think the type of constant is not correct ....

the other question is if i want to change the name of frontal plane as "Mario"

which is the code that i have to use ?

i tried with

Set swEnt2 = Part.GetEntityByName("Mario", swSelectType_e.swSelDATUMPLANES)

swEnt2.Select4 False, Nothing

but nothing

any suggestion ?

yhank you in advance

SolidworksApi macros
Answers 1
JP
JP 2014-01-23 Best Answer

Have you tried "Right Click" .... "Select Other" ....

Then simply pick the edge you're looking for from the display box or on screen if it highlights.