01-20-2017
03:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
01-20-2017
03:41 AM
Alright then, "isocurve". Should the isocureve be offset from the projected line or just drawn "somewhere on the shape's face"?
Could, by any chance, be used the original curve from the 3d sketch? Aka it's projection to the outer surface.
The axis, workplanes, sketches and extrusion should not be a problem, they'll be created on the curve's points.
Should the points have equal spacing or be driven by an equation?
Here's the code to calculate the amount of holes:
Dim lDia As Double = 5 'Later we'll set this value from the user's input
Dim sDia As Double = 0.7 'Later we'll set this value from the user's input
Dim aStep As Double = 0.2 'Later we'll set this value from the user's input
Dim CircleCount As Integer = Math.Floor((lDia - sDia) / aStep) + 1
For i = 1 To CircleCount
Dim aDia As Double = lDia - ((i - 1) * aStep)
If i = CircleCount Then aDia = sDia
'Here we're gonna use the variable "aDia" as the diameter for each circle
Next
Consider using "Accept as Solution" / "Kudos" if you find this helpful.
- - - - - - - - - - - - - - -
Regards,
Mike
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - John F. Woods
- - - - - - - - - - - - - - -
Regards,
Mike
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - John F. Woods