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

non-functioning lisp to write perimeter and area within a closed pane

  • Thread starter Thread starter Berior
  • Start date Start date

Berior

Guest
Hello everyone,
a colleague long ago gave me this lisp to associate with a autocad file. the lisp serves to write perimeter and area within a closed pane. in the post where I am now autocad 2016 and when I load the lsp only creates a second polylinea but no longer inserts the writings within the same.
according to you is a lisp writing problem that is not compatible with autocad 2016?
a greeting to all
ivan
 

Attachments

Usually, to avoid "beating folder" I do this: I take the lsp file (in this case also the dwg file) and copy them. then I open autocad, manage, charge application and opens me a pop up with the top part for the selection of the lisp. in that list of files take off what I copied. then point "Add to chronology", select the lisp and click on charge. Once this is done in content..., add and replenish the lisp until now the lisp that I have inserted work. and the other one in the other station was working. the old post had autocad 2013 though. I don't know if it's a question of compatibility
 
autocad must see the block "area_per" otherwise fails to insert it, to do this the roads are these:
- load the lock in the dwg before launching the lisp
- load the lock in your model file (dwt) so you always have it available
- the block must be placed in a folder of options\file\ search path of support files

This last possibility is however influenced by security options (variable secureload and trustedpaths).

Trust me. .
 
autocad must see the block "area_per" otherwise fails to insert it, to do this the roads are these:
- load the lock in the dwg before launching the lisp
- load the lock in your model file (dwt) so you always have it available
- the block must be placed in a folder of options\file\ search path of support files

This last possibility is however influenced by security options (variable secureload and trustedpaths).

Trust me. .
It's perfect. I uploaded everything as you told me and everything works perfectly. You were very kind. that lisp is not bad but it is still limited to my parer. ie: I build a surface (a rectangle for example), I launch the sup command and this creates a polylinea and makes the length of the polylinea and its area appear inside. all perfect but if I have to delete the created polylinea or change it, performing a refresh of the project, the data contained within the surface is not modified. This often brings me into error (mostly I forget to relaunch the sup command within the created surface.
the interesting thing would be if those two data created with the sup command are connected to the created polylinea. in autocad it could be avoided by creating a text, selecting the text, going to data field -> object -> by selecting the polylinea, area property or length (and then define the accuracy of decimals). You think this could be feasible?
 
this is the version with fielded, decimals are those set in the dwg (variable luprec).
I have not understood however why you have to draw and maintain in the drawing a rectangle that is the copy of the existing one...:unsure:
 

Attachments

Wow, thank you very much. for the matter of the rectangle the generated polylinea allows me to do several things faster: First of all I do not know if the surface is already a polylinea. If they are 4 separate lines it generates the polynea that I can stretch, shorten... or use it as a basis for internal (pavimentation) restraints or to copy the reconstruction of accommodation only with useful surfaces. are all examples. Anyway you were very kind and thank you again
 
Hello, very useful lisp!!
would it be possible to select existing polylines/objects instead of clicking within an area?

Thank you
 

Forum statistics

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

Members online

No members online now.
ciao
Back
Top