Display full version of the post: Modify fAREA
yavo7789
14.01.2019, 10:34
Greetings,would someone be so kind to tell me how to edit the fAREA .vlx lisp?I don't have any experience with Visual Lisp. The Read Me file says:You can predefine these parameters with the following LISPvariables (set before you start the command):LISP variables:_FAREAPREC (default: LUPREC) - e.g.:(setq _FAREAPREC 2)_FAREAFACTOR (default 1.0) - e.g.:(setq _FAREAFACTOR 0.001)_FAREASUFFIX (default " m2") - e.g.:(setq _FAREASUFFIX " mm2")_FLENGTHPREC (default LUPREC) - e.g.:(setq _FLENGTHPREC 2)_FLENGTHFACTOR (default 1.0) - e.g.:(setq _FLENGTHFACTOR 100.0)_FLENGTHSUFFIX (default " m") - e.g.:(setq _FLENGTHSUFFIX " km")_FPROP (default "Linetype") - e.g.:(setq _FPROP "Material")_fAreaSameLayer (default nil; change label layer to object's):(setq _fAreaSameLayer T)_FAREADS (default: system decimal separator) - e.g.:(setq _FAREADS ",")How do I do that? Could you please send me some screen shots on how it is done or post a link to where it is explained in detail? Thank you in advance!Kind Regards
yavo77892019-01-14 10:37:20
Vladimir Michl
14.01.2019, 11:50
Hello,you cannot edit the VLX file but you can use the mentioned commands to customize this application. It is simple - just copy (or retype) the LISP commands to your AutoCAD command line. E.g. to set a 6-digits precision for fArea output, type: (setq _FAREAPREC 6) If you want to set it permanently, add this line to your ACADDOC.LSP file (or create new if it does not exist in your AutoCAD support path).
yavo7789
19.01.2019, 19:55
Good evening Vladimir,first of all thank you for the fast response. I was able to create my own acaddoc.lsp and setup fAREA as you advised. The only issue I ran into was setting up a unicode character E.g: (setq _FAREASUFFIX " ?") where ? is a cyrillic small letter m. It appears AutoCad loads only ANSI encoded .lsp files. When i setup "?" as suffix within AutoCad it works, the fAREA.vlx seems to support UNICODE characters. I also tried to work around with subscripted Capital latin letter M, but Notepad and Visual Lisp don't support subscripts as well as unicode cyrilic characters. Is there any way I can set up fAREA permanently to dysplay " ?" as suffix? Thank you in advance!Cheers
yavo77892019-01-19 20:00:38