RVswift
Mechanical
- Oct 19, 2012
- 2
I am trying to create an area from lines but get the error "Keypoint 1 is referenced by only one line. Improperly connected line set for AL command". I have checked all my lines match up and form an area that is all in the same plane but I still get the error. If I start the command with a different line the error comes on a different keypoint.
If I use the GUI and pick the lines it works so really do not understand why the AL,1,2,3..... command will not work!!
If you want to see the mystery I've put the code below. Any help greatly appreciated!
I've read the help files, seems like a simple command so I don't understand why it wont work. I don't understand the following from the help file on AL command though.
"The positive normal of the area is controlled by the direction of L1 using the right-hand rule. A negative value of L1 reverses the normal direction. If L1 = ALL, use all selected lines with L2 defining the normal (L3 to L10 are ignored and L2 defaults to the lowest numbered selected line). If L1 = P, graphical picking is enabled and all remaining arguments are ignored (valid only in the GUI). A component name may also be substituted for L1."
=========================================================================
/TITLE, Dynamic Analysis of Load Cell
/FILNAME, Dynamic,0
/PREP7
! GEOMETRIC VARIABLES
x1 = 100
x2 = 68
y1 = 120
y2 = 26
r1 = 18
r2 = 6
r3 = 12
z1 = 45
! KEYPOINTS
K,1,0,0,0
K,2,x1,0,0
K,3,x1,y1,0
K,4,0,y1,0
K,5,0,y2,0
K,6,x2,y2,0
K,7,x2+r2,y2+r2,0
K,8,x2,y2+2*r2,0
K,9,0,y2+2*r2,0
K,10,x1,y1-y2-2*r2,0
K,11,x1-x2,y1-y2-2*r2,0
K,12,x1-x2-r2,y1-y2-r2,0
K,13,x1-x2,y1-y2,0
K,14,x1,y1-y2,0
K,15,x2,y2+r2,0
K,16,x1-x2,y1-y2-r2,0
K,17,x1/2,y1/2,0
K,18,x1/2,0,z1/2
K,19,x1/2,y1,z1/2
!LINES
L,1,2
L,2,10
L,10,11
LARC,11,12,16,r2
LARC,12,13,16,r2
L,13,14
L,14,3
L,3,4
L,4,9
L,9,8
LARC,8,7,15,r2
LARC,7,6,15,r2
L,6,5
L,1,5
CIRCLE,17,r1
!AREA
AL,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18 !ERROR USING THIS COMMAND, it does work for AL,15,16,17,18??
If I use the GUI and pick the lines it works so really do not understand why the AL,1,2,3..... command will not work!!
If you want to see the mystery I've put the code below. Any help greatly appreciated!
I've read the help files, seems like a simple command so I don't understand why it wont work. I don't understand the following from the help file on AL command though.
"The positive normal of the area is controlled by the direction of L1 using the right-hand rule. A negative value of L1 reverses the normal direction. If L1 = ALL, use all selected lines with L2 defining the normal (L3 to L10 are ignored and L2 defaults to the lowest numbered selected line). If L1 = P, graphical picking is enabled and all remaining arguments are ignored (valid only in the GUI). A component name may also be substituted for L1."
=========================================================================
/TITLE, Dynamic Analysis of Load Cell
/FILNAME, Dynamic,0
/PREP7
! GEOMETRIC VARIABLES
x1 = 100
x2 = 68
y1 = 120
y2 = 26
r1 = 18
r2 = 6
r3 = 12
z1 = 45
! KEYPOINTS
K,1,0,0,0
K,2,x1,0,0
K,3,x1,y1,0
K,4,0,y1,0
K,5,0,y2,0
K,6,x2,y2,0
K,7,x2+r2,y2+r2,0
K,8,x2,y2+2*r2,0
K,9,0,y2+2*r2,0
K,10,x1,y1-y2-2*r2,0
K,11,x1-x2,y1-y2-2*r2,0
K,12,x1-x2-r2,y1-y2-r2,0
K,13,x1-x2,y1-y2,0
K,14,x1,y1-y2,0
K,15,x2,y2+r2,0
K,16,x1-x2,y1-y2-r2,0
K,17,x1/2,y1/2,0
K,18,x1/2,0,z1/2
K,19,x1/2,y1,z1/2
!LINES
L,1,2
L,2,10
L,10,11
LARC,11,12,16,r2
LARC,12,13,16,r2
L,13,14
L,14,3
L,3,4
L,4,9
L,9,8
LARC,8,7,15,r2
LARC,7,6,15,r2
L,6,5
L,1,5
CIRCLE,17,r1
!AREA
AL,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18 !ERROR USING THIS COMMAND, it does work for AL,15,16,17,18??