Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does anyone know how to modify coordinates of points in a sketch?

Status
Not open for further replies.

jassco

Mechanical
Feb 22, 2011
497
Hi,

I have a sketch containing point clouds (>1,000). I can read (get) coordinates of these points from the sketch using these two commands:

sketchPointArray = swSketch.GetSketchPoints2
Xi = sketchPointArray(i).X: Yi = sketchPointArray(i).Y

I want to edit coordinates of these points uisng Solidworks VBA. Does anyone know what method to use to modify coordinates of the points? Is there a command to set coordinates?

swSketch.SetSketchPoints2 (I made this up. I assume there is a "Set" sketch points method)

Best regards,

Alex
 
Replies continue below

Recommended for you

You probably already have done this, but posting this on the actual SW forum might be a better resource (some API giants on there). I wouldn't know how to do this in API, but you can do this from SW itself in multiple ways (i.e. move sketch components). If you need a programmable approach then I will leave this to others for assistance :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor