×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Sketch points API

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

RE: Sketch points API

Can you place the line on a separate sketch so that it isn't included in the API selection?

RE: Sketch points API

SketchLine::GetStartPoint2 gets segment start point.  Use for comparison.  Also try SketchLine::GetEndPoint2

SketchPoint::Type might tell you what type of point you selected, whether it is a segment endpoint or not.

 

RE: Sketch points API

(OP)
CBL:

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
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources