API Selection Help

Hi all,

Looking at the API once again, and a small portion of my macro deals with using a plane, created in the macro, to insert a sketch with a circle at its origin.

I have recorded a macro doing what I want but am confused by part of it

boolstatus = Part.Extension.SelectByID2("Point1@3DSketch01", "EXTSKETCHPOINT", 0.006690360006824, 4.318000004404E-04, 0.1828723801865, False, 0, Nothing, 0)

This particular line is selecting the origin of the plane. I'm not sure as to why it is necessary to use both the object name and the XYZ coordinates to adaquately define my selection. I will not know the coords of the point in my macro however I'm sure I could obtain them, however I was wondering if I could simply just provide the name, which I define and if so, what would the proper syntax be without the coords.



Reply to
Loading thread data ...

I think you will find that the coordinates can be left blank or zero as long as you have the entity name.

Reply to

"EXTSKETCHPOINT" means that you selected a point that was contained in a *different* sketch. I thought you said you wanted to insert a circle at the origin? Looks like you picked a piont from a 3D sketch, not the origin.


Reply to
Tin Man


could u try this boolstatus =3D Part.Extension.SelectByID2("Po=ADint1@3DSketch01", "EXTSKETCHPOINT", 0, 0, 0,=20 False, 0, Nothing, 0)

Reply me


Reply to

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.