CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 17840
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

 

HelpCAD discussion

 
CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.

How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedModify fAREA

 Post Reply Post Reply
Author
yavo7789 View Drop Down
Newbie
Newbie


Joined: 19.Nov.2010
Location: Germany
Using: AutoCAD2010
Status: Offline
Points: 7
Direct Link To This Post Topic: Modify fAREA
    Posted: 19.Jan.2019 at 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



Edited by yavo7789 - 19.Jan.2019 at 20:00
Back to Top
Vladimir Michl View Drop Down
Moderator Group
Moderator Group

Arkance Systems CZ

Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 2015
Direct Link To This Post Posted: 14.Jan.2019 at 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).
Vladimir Michl (moderator)
Arkance Systems - arkance-systems.cz - Autodesk reseller
Back to Top
yavo7789 View Drop Down
Newbie
Newbie


Joined: 19.Nov.2010
Location: Germany
Using: AutoCAD2010
Status: Offline
Points: 7
Direct Link To This Post Posted: 14.Jan.2019 at 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 LISP
variables (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


Edited by yavo7789 - 14.Jan.2019 at 10:37
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,422 seconds.