alanjt Posted May 21, 2013 Posted May 21, 2013 Or use a couple vlax-curve* functions and don't sweat a difference b/w line and arc, since it will accept any valid curve. Granted, you are still using VLISP, as opposed to Lee's suggestion, which keeps every thing in ALISP. (defun _length (curve) (vlax-curve-getDistAtParam curve (vlax-curve-getEndParam curve))) Quote
pBe Posted May 21, 2013 Posted May 21, 2013 Such simplistic geometric relationships follow from the definition of the radian being the angle swept by an arc whose arc-length equals its radius - i.e. for every radian turned about the center, you are traversing a distance equal to the radius along the arc. Yup, short and simple. Very nice suggestion > Thank you for the info LM. Cheers Quote
alanjt Posted May 21, 2013 Posted May 21, 2013 Yup, short and simple. Very nice suggestion > Thank you for the info LM. Cheers Makes sense to me. Lee is always the one to go to with math related questions. Quote
tarektm Posted May 22, 2013 Author Posted May 22, 2013 I have read the notes in a hurry but I think the answer is no up to now , but we may find another way to do the notes if you have explained your needs of these issues clearly and in a new thread of course . And for the Block size , I think I have made the Block with the Units or cm and not mm , so just ignore it and create a new one with a new name and add it to the code . Good luck Thank you Mr. Tharwat for the Great Help, This file saved me a lot of time. How am i using this Method, well, This method is used to create Attribute blocks in the drawings containing the duct information: Length, Width, Depth, I will then send those Attribute blocks to Excel and i will Calculate the duct Area and weight. Hope this method comes handy to somebody who wants to save a lot of time calculating duct area and weight. Thank you all who participated, your input is Highly Appreciated. Quote
Recommended Posts
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.