×
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

SW macro to create points along a curve

SW macro to create points along a curve

SW macro to create points along a curve

(OP)
Hi guys, I am a beginner in SW API and I need to create a macro that is able to create evenly spaced points on a curve (line or arch or spline, no matter); in the end my curve could be divided in evenly spaced points. I know that SW is already able to do that but I NEED to do it with a macro. Can you help me?I don't know where I could start from...



Thanks a lot (and sorry for my bad english)

RE: SW macro to create points along a curve

alxG88,

When you make reference point feature the "d1@refPntFeat" dimension controls the curve location % decimal. You should be able to use this to make a group of N points from [0-1].
Another possibly more involved but easier method is to use hole wizard with a curve pattern option to create your points as ho le internal axes which display as points on plane // parallel to placement plane. I don't use or create many macros but this seems to be a good one to tackle. You should look into how to get the internal axis name from hole wizard feature and how select them for on point ref. My first suggestion will probably work the best, I hope my ideas help.

"It's not the size of the Forum that matters, It's the Quality of the Posts"

Michael Cole
Boston, MA
CSWP, CSWI, CSWTS
Follow me on !w¡#$%
@ TrajPar - @ mcSldWrx2008
= ProE = SolidWorks

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