Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Drawing close circles with API

Status
Not open for further replies.

Guest
Hello,
I´m using this function to draw circles in a sketch, but if the circles are very close each other, Solidworks only draw one circle.
Is there a way to change the precision to draw with the API, or other function more precise?

Set Sketch = pieza.ICreateCircleByRadius2(Xcir, Ycir, ZCir, Rcir)

Thank you
 
Replies continue below

Recommended for you

Look into ModelDoc.SetAddToDB. This will add the data directly to the DB while preventing the autosnap of your entities
Code:
Dim swDoc As ModelDoc2
    
swDoc.SetAddToDB True
    
'Create Your Circles Here
    
swDoc.SetAddToDB False
Hope this helps...
DimensionalSolutions@Core.com
While I welcome e-mail messages, please post all thread activity in these forums for the benefit of all members.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor