You should look to POLAR function; it will take the angle argument in radians. Example of drawn from origin a 5 units line at 35 degrees:
Code:(command "_LINE" '(0 0) (polar '(0 0) (* (/ 35.0 180.0) pi) 5.0) "")
Registered forum members do not see this ad.
hi i'm very new to autolisp i'm leraning programming now-a-days,if we draw two circles with same center point and with different radius by using polararray how can we draw lines on the circle at different angles from 0 to 360degrees from the same center.If you help me it is very useful to me
Thanks
Last edited by aswini; 23rd May 2012 at 09:18 pm.
You should look to POLAR function; it will take the angle argument in radians. Example of drawn from origin a 5 units line at 35 degrees:
Code:(command "_LINE" '(0 0) (polar '(0 0) (* (/ 35.0 180.0) pi) 5.0) "")
Regards,
Mircea
AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3
thanks for your reply,i'm getting that but it is not i wanted ,actually what i wanted is to draw 12 lines on two circles with 30degrees each at a time by using a program,can you help me to do that
Thanks.
"Potential has a shelf life." - Margaret Atwood
hmm thanq i thought of that but it is becoming lenghty program.
If i draw a rectangle in the middle of two circles like in the attachment ,then how to repeat them around the circle with different angles.can anyone help me plz
Thanks




Moderator This is basicly the same question as the other post.
Good time to learn lisp in particular LINE pt1 pt2 & Polar & Entsel
A man who never made mistakes never made anything




Moderator is this post 3 of the same question ? http://www.cadtutor.net/forum/showth...the-attachment
http://www.cadtutor.net/forum/showth...using-autolisp
Re lengthy you have not scratched the surface in HOW MANY LINES OF CODE.
Also in your first post was the lines meant to go from the centre of the circle ?
Last edited by BIGAL; 24th May 2012 at 09:40 am.
A man who never made mistakes never made anything


There is a start:Code:(command "array" "P" "0,0" "14" "360" "Y")
Type:This will go through the optionsCode:(command "array")
Last edited by SLW210; 24th May 2012 at 01:04 pm.
Bookmarks