Jump to content

Combine multiple Line length and existing text in one attribute block


Recommended Posts

Posted

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)))

  • Replies 24
  • Created
  • Last Reply

Top Posters In This Topic

  • tarektm

    10

  • Tharwat

    7

  • Lee Mac

    4

  • pBe

    2

Top Posters In This Topic

Posted
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 :beer:

Posted
Yup, short and simple. Very nice suggestion >

 

Thank you for the info LM.

 

Cheers :beer:

 

Makes sense to me. Lee is always the one to go to with math related questions.

Posted

 

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.

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...