• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

measure areas

  • Thread starter Thread starter lattu
  • Start date Start date

lattu

Guest
I thought there was a lisp like that, but I didn't find it.
I would need a lisp (or other) for a text string that allows me to calculate the area of a polyline in which it is inserted.
a similar thing does the data field but the value does not update to the modification of the polylinea.
in practical design a closed polyline, I put in between the text and automatically returns the area and that you can update if I go to change the polylinea.

the data field expression is as follows:
%<\acobjprop object(%\_objid 8796077100256>%). area \f "%lu2%pr2">%

fats
 
Last edited:
just a simple regen to upgrade the field.
If you really want to use the reactors, but I'm not the right person for that.
 
if you want it in realtime you have to use the reactors.. .
are the only way, try the attachment if it works.
I recommend not to abuse in the number of polylines in the case of large dwg, also a simple move, or the creation/cancellation of an internal detachment, from place to a rigen.
 

Attachments

There is something wrong with the lisp, because even in a new file with only one pole and a text with autocad data field locks me.
Now leaving the regen that perhaps the reactors my pc does not hold them at best, I wanted to ask another thing:
can you change the code to have a data field that automatically detects the area in which it is inserted?
for example if in a design I create a nr x of poly on a layer specifico, is there any way that if I insert a text string with the data field already "modified" in each of these polys, do you automatically detect the area of the same?
 
There is something wrong with the lisp, because even in a new file with only one pole and a text with autocad data field locks me.
Now leaving the regen that maybe the reactors my pc doesn't hold them...
What pc do you have, 32 or 64 bits?
Did someone try if it works?


...I wanted to ask something else:
can you change the code to have a data field that automatically detects the area in which it is inserted?
for example if in a design I create a nr x of poly on a layer specifico, is there any way that if I insert a text string with the data field already "modified" in each of these polys, do you automatically detect the area of the same?
That's not what you asked, but could something like that go?
549a.gif
 
I'm sorry if I only answer now, but I couldn't look at it anymore.
I have a 64-bit win.7 pc.
It is true, it was not the initial request, but since the reactors create problems I sought a new path.
in the example shown the text then disappears or remains?
 
Try this lisp, it has a peculiarity that I don't think you can find around.
Let's see if you find out... :smile:
 

Attachments

hi gp, taking this old discussion again, also realizing only now that I have not answered you again.
the lisp I used it for a while and thank you, then I realized that it gave problems with the set font or it only works with the standard text style leaving height 0.00 therefore little by little I abandoned it.
Now I have the need to reuse it, and I was wondering if it is possible to set it up using the current text style, also because sometimes I work in meters and others in centimeters. can also decrease accuracy to 2 decimals?
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top