Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7782177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:27:33+00:00 2026-06-01T19:27:33+00:00

I am trying to incrementally rotate a curve using the codes below in c#

  • 0

I am trying to incrementally rotate a curve using the codes below in c# and Vb.net (the editor already imports the necessary libraries). In my 3D modelling program i get overlapping lines instead of lines with different angles.
What am I doing wrong?

on C#:

private void RunScript(Curve ln, int x, double angle, ref object A)
{
List<Curve> lines = new List<Curve>();
Int16 i = default(Int16);
for(i = 0; i <= x; i++){
ln.Rotate(angle * i, Vector3d.ZAxis, ln.PointAtEnd);
lines.Insert(i, ln);
}
A = lines;

on VB.net:

Private Sub RunScript(ByVal ln As Curve, ByVal x As Integer, ByVal angle As Double,          
ByRef A As Object)

Dim lns As New List(Of Curve)()
Dim i As Int16
For i = 0 To x
ln.Transform(transform.Rotation(angle * i, vector3d.ZAxis, ln.PointAtEnd))
lns.Insert(i, ln)
Next
A = lns
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T19:27:34+00:00Added an answer on June 1, 2026 at 7:27 pm

    I need to duplicate the line before rotating the next one in the loop otherwise there is no trace of it.

    In C#:

    private void RunScript(Curve ln, int x, double angle, ref object A)
    {
     List<Curve> lns = new List<Curve>;
     for (int = 0; i<= x; i++)
      {
       Curve copy = ln.DuplicateCurve();
       copy.Rotate(angle * i, Vector3d.ZAxis, ln.PointAtEnd);
       lns.Add(copy);
      }
    }
    A = lns;
    

    in VB.net:

    Private Sub RunScript(By Val ln As Curve, ByVal x As Integer, ByVal angle As Double, By Ref A as Object)
      Dim lns As New List(Of Curve) ()
      For i As Integer = 0 To x
         Dim nl As Curve = ln.DuplicateCurve()
         nl.Transform(transform.Rotation(angle*i, vector3D.ZAxis, ln.PointAtEnd))
         lns.Add(nl)
      Next
      A = lns
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to parse the JSON incrementally, i.e. based on a condition. Below
Trying to get parameters from a PUT request using HttpServlet#doPut: public void doPut(HttpServletRequest request,
I'm trying to read in a large (700GB) file and incrementally process it, but
(Why I am trying to do this: I have had no luck in using
I'm trying to port a program that uses zlib to Windows with MSVC. Unfortunately,
i am trying to incrementally change the alpha value of an OvalShape().. for this
so, I'm working on a databases project, and i'm trying to code incrementally. the
I am trying to draw a road incrementally as an animation over GE plugin.
I am trying to understand if I really have any case for using git/mercurial.
I'm trying to wrap text by building up a text string, and using getComputedTextLength

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.