Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

How to make a spline with more than 6 keypoints in a 'spline' command? 1

Status
Not open for further replies.

Lirock

Mechanical
May 27, 2006
75
Hi,everyone:
I got a question here. The command 'spline' or 'bsplin' has just 6 keypoint numbers to be fill,and if the 7th KP is chosen, ANSYS ignore it.You must use the command twice.If I want to make a spline with more than 6 keypoints in one command, what can I do?
 
Replies continue below

Recommended for you

Hi

The use of the spline command is bounded to a max. use of 6 keypoints. So you need to use the command twice.

Grtz
Garry
 
Hi,
I noticed that if you create 2 consecutive splines, and then add them to one another, it works and you get a single spline curve (which doesn't EXACTLY match the original ones, of course).
I don't know if this can be useful for you. I personally prefer to leave the 2 splines separated.

Regards
 
Try to follow this code:

!##########################

fini
/cle
/prep7

csys,1

! -> Making n Keypoints
n_=20
k,1:n_,1,1:n_

!Write Spline Macro
*cfopen,spl_ine,mac
*cfwrite,FLST,3,n_,3
*do,i_,1,n_
*cfwrite,FITEM,3,i_
*enddo
*cfwrite,BSPLIN, ,P51X
*cfclose

!Spline with n_ points
spl_ine.mac

!##########################

The making of:

If you make the spline by pinking, ANSYS use the FITEM commands and write it to the *.log file. So you can learn from the log file a lot!!!

If you know the order of the keypoints -> you can create splines with many many keypoints:eek:)

.... Stefan.
 
Guys,thank you for your help! And thank you JaStKn, your marco is good!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor