Jump to content

Recommended Posts

Posted

hi,

 

anyone know an command (or lisp) that DYNAMICLY shows pre-defined information about an object in a drawing.

 

Mostly i look for functions like total length or area.

What i want i can do with an 'field' in a 'att' block, but its seems it only works for 1 object at a time.

 

Is there an way to let it calculate lengths from lines drawn in a certain layer?

 

Lets say i draw 2 lines of 50 meter in the layer 'new-line', how can i make something that tells me that the total length in the layer 'new-line' is 100 meter?

 

I know this sounds like it will be faster to do it by hand, but since we use standard layers i want to try and make an standard so that once its setup it only takes a few secondes to tell me what i want to know.

 

In the end i want to make an datalink to an excel sheet and all the info is directly placed in an good organised excel sheet.

 

I hope i made myself clear.

Posted

That is not very helpfull since it needs a lot of manual labor. However, it does look interresting, but not what i am looking for...

Posted
hi,

 

anyone know an command (or lisp) that DYNAMICLY shows pre-defined information about an object in a drawing.

 

Mostly i look for functions like total length or area.

What i want i can do with an 'field' in a 'att' block, but its seems it only works for 1 object at a time.

 

Is there an way to let it calculate lengths from lines drawn in a certain layer?

 

Lets say i draw 2 lines of 50 meter in the layer 'new-line', how can i make something that tells me that the total length in the layer 'new-line' is 100 meter?

 

I know this sounds like it will be faster to do it by hand, but since we use standard layers i want to try and make an standard so that once its setup it only takes a few secondes to tell me what i want to know.

 

In the end i want to make an datalink to an excel sheet and all the info is directly placed in an good organised excel sheet.

 

I hope i made myself clear.

 

With Fields, you can combine values in the formula section.

Posted

Combine value's. So i first have to get the info before i can go to work with it and it is still (single-)object based as far is i know.

 

And it must be else i wouldn't need to calculate things :).

 

I could create an table with EATTEXT, but then i still have to do everthing manually (including setting up all the formula's which would go faster if i just wrote it down with an hand calculator).

Posted
Combine value's. So i first have to get the info before i can go to work with it and it is still (single-)object based as far is i know.

 

And it must be else i wouldn't need to calculate things :).

 

I could create an table with EATTEXT, but then i still have to do everthing manually (including setting up all the formula's which would go faster if i just wrote it down with an hand calculator).

 

I guess I don't understand exactly what you are wanting. You were the one that referenced fields.

Posted

I want something to tell me what the length or area (or other info) is in total of all the objects drawn in a certain layer.

 

As in my example, when i draw 2 lines i want 'something' to show that together they ('They' as in the one in the same layer) are 100 meters in total. But if i draw another line of 50 meter that 'something' should say that the total is 150 meters.

 

And i know i referenced to fields, but only for its shortcomming as i see it since it only tells me things about the object i have selected (and that can only be 1 at a time). Since i want to use this thing i want in many drawings i don't want to link everything again in each drawing. It must be a one time setup (so thats why it must be layer based since that is the only thing standard in every drawing).

 

Hope that makes it a bit clearer. And since english isn't my native language it might not always sounds as logical as i ment it to be (or something :P).

Posted

I'd be happy to post mine, but it's only setup for Imperial Units. If I have time, I might can make the required modifications to work with any set of units.

 

Command: TOTAL

Initializing...
Select object for layer filter or [Current]:
All on layer "V-PVMT" or filtered selection [<All>/Filtered]:

200 line, etc. objects on layer "V-PVMT" have a total length of: 6865.83'
Write contents to file or place text in drawing? [Write/Text]: T

Placement point for text or append to existing MText object [Append] <View 
Center>:

Posted

Hi Omega,

 

Attached is a LSP that I had gotten from this forum a while back...don't excatly remember the thread, but it sounds like what you want. (total length by layer)

Totlen.Lsp

Posted

Sorry Omega...but I attached the wrong one above. Try this one (another great one from Lee Mac):

LenCal.lsp

Posted

That tool, in metric, is allready in use by 'us'. It sure is handy and we use it often. However i want to find out if info can be gathered as soon as its drawn.

 

All the things called above are nice if you don't have any tools to start with. But faster than with the lisp above and the EATTEXT command would be nice.

 

Since the topic has been active with 'solutions', but not the thing i want, i guess there is just no way (unless i can write it myself) that autocad can do it internally with something like an FIELD.

Posted
That tool, in metric, is allready in use by 'us'. It sure is handy and we use it often. However i want to find out if info can be gathered as soon as its drawn.

 

All the things called above are nice if you don't have any tools to start with. But faster than with the lisp above and the EATTEXT command would be nice.

 

Since the topic has been active with 'solutions', but not the thing i want, i guess there is just no way (unless i can write it myself) that autocad can do it internally with something like an FIELD.

 

 

So, you are wanting something that will tell you the total length of all lines, etc. on a specific layer, in real time? Sounds like a reactor.

Posted

Real time, yeah something like that. An FIELD will update on every refresh if the object its linked to is changed.

 

Reading This article it sure sounds like something i need :)... But when i see the need of coding i kinda just want to stick to the old ways :P..

Posted
Real time, yeah something like that. An FIELD will update on every refresh if the object its linked to is changed.

 

Reading This article it sure sounds like something i need :)... But when i see the need of coding i kinda just want to stick to the old ways :P..

What are the old ways?

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