Sketch points API
Sketch points API
(OP)
I am in charge of making an API module to place connections we use at certain points in an assembly. There are sketches which contain numerous points along with a single line. This sketch is used by the components in the assembly for their sketch patterns. The lines are used to orientate the derived sketch with cuts the slots, etc.
What I need to do is place an assembly at each one of these points. When I tried to write an API to return the X,Y, & Z values, it also returns the end points of the lines.
Does anyone know how to get a sketch to return the x,y,z values of ONLY the sketch points.
Thank you
Jacon Harbour
Solidworks 2009 SP2.0
What I need to do is place an assembly at each one of these points. When I tried to write an API to return the X,Y, & Z values, it also returns the end points of the lines.
Does anyone know how to get a sketch to return the x,y,z values of ONLY the sketch points.
Thank you
Jacon Harbour
Solidworks 2009 SP2.0






RE: Sketch points API
RE: Sketch points API
SketchPoint::Type might tell you what type of point you selected, whether it is a segment endpoint or not.
RE: Sketch points API
The models I get are created elsewhere, and I have no control over them. I cannot change the way the sketches are.
TheTick:
SPOON!....I will see if I can get the Type function to work for me.
So far I have had luck with the GetUserPoints2 I stumbled upon.
Thanks for the help