Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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

  • Thread starter Thread starter -
  • Start date Start date
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
 
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

Back
Top