Question

I'm trying to automate a 3D CAD program with Solid edge with Visual Basic 2003.

In there I want to make curve lines with an 4th degree equation.

I got the following form the Solid Edge SDK

objBSplinecurves.AddByPoints(Order:=x, ArraySize:=x, Array:=x)

My question: is it possible to loop the equation, for example, from x*0.2 to x*1.5 (when 'x' is an constant like 9)

And then store these points into an array? I get stuck at storing them.

Thanks in advance

Was it helpful?

Solution

The purpose of X is to be variable. So you should have said 9*x, where x=0.2:0.1:1.5 (in Matlab syntax). Anyway, this may help you get started:

Dim listOfMultipliers As New List(Of Double)
For i = 0.2 To 1.5 Step 0.1
  listOfMultipliers.Add(i)
Next
Dim multipliersArray() As Double = listOfMultipliers.ToArray()
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top