Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

repeating offset planes in VB macro?

Status
Not open for further replies.

Eland

Aerospace
Jul 21, 2004
5
I want to repeat to generate offset planes using pre-defined offset values (offsetValues(i)). It seems that I cannot use variable into "???" position. My humble script is shown bellow. How do I have to complete "???" ? Or is there another way to do?
Thanks in precedence.

Dim offsetValues(n)
offsetValues(0) = ...
.
.
.
offsetValues(n) = ...

For i = 1 To Nfoil
Set PlaneOffset = hybridShapeFactory1.AddNewPlaneOffset(refPlaneZX, ???, False)
hybridBody1.AppendHybridShape PlaneOffset
Next
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor