Jump to content

How do I connect a range of points using spline?


natur3

Recommended Posts

Hi,

 

I am using AutoCAD 2013 and have imported the points from a text file.

 

the points in the text file are in order meaning:

 

X Y Z

1 2 3

4 5 6

7 8 9

 

The 1st row are the 1st point and the 2nd row is the 2nd point and so on.

How do I connect the points using splines?

So far, I am doing it manually and I have thousands of points.

 

Regards,

natur3

Edited by natur3
Link to comment
Share on other sites

What is the nature of the design (civil, architectural, mechanical)?

 

If Mechanical - Autodesk Inventor product has built-in functionality to create spline from Excel.

Splines.png

 

If you must do the work in AutoCAD - search Google for a lisp routine that will create the spline. Somehow I attached wrong image and can't delete it below.

Curve points.jpg

Link to comment
Share on other sites

Since is about a single entity, I believe that there is a simpler solution; import those points in Excel (or other spreadsheet type application) and build a script for that task. It should looks like:

_SPLINE
1,2,3
4,5,6
7,8,9 
[i][i]{empty line}[/i][/i]
[i][i]{empty line or tangent control point}[/i][/i]
[i]{empty line or tangent control point}[/i]

Don't forget to finish it with three empty lines to end points input and accept the default tangent at ends (if you have information about the tangents, may specify those control points instead).

Link to comment
Share on other sites

Thanks for the advices, especially the website. It was extremely informative and educational.

 

Isit possible that I connect the points with a lisp/script that uses 3DPolyline and using the spline-fit command to change it into a spline.

 

Does it makes a difference if i connect the points with a lisp/script that uses spline?

 

Regards,

natur3

Link to comment
Share on other sites

  • 4 weeks later...

This post is a bit old and I may be completely misunderstanding the problem.

 

That being said, would a possible work around be to import the points using field to finish, explode the feature line that is created to a polyline and then convert the polyline to a spline?

 

An odd series of commands to put together I know, but maybe it will help someone?

Link to comment
Share on other sites

What is that "field to finish" you are talking about? Is a entity specific to Civil 3D? You can try the script approach - for editing please note that can access the last added entity by inputing "_L" when asked for selection. The example below will add a polyline on the script and smooth it in next step.

_PLINE
0,0
50,100
100,100
100,50
_PEDIT
_L
_F
_REGEN

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...