CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
Czech English Deutsch
Login/Register:
 Visitors: 3978 
RSS tips RSS channel - CAD tips
RSS discussion RSS channel - CAD discussion

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

The information that you provide in this form will make up your forum profile which can be viewed by other forum members. Your email address will only be visible by forum admin and moderators and will be used to send you Forum Notifications. To cancel your account, use the page Opt-out or contact webmaster@cadforum.cz.

Modify fAREA

 Post Reply Post Reply
Author
yavo7789 View Drop Down
Newbie
Newbie


Joined: 19.Nov.2010
Location: Germany
Using: AutoCAD2010
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote yavo7789 Quote  Post ReplyReply Direct Link To This Post Topic: Modify fAREA
    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
Vladimir Michl View Drop Down
Moderator Group
Moderator Group

CAD Studio a.s.

Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 1774
Post Options Post Options   Thanks (0) Thanks(0)   Quote Vladimir Michl Quote  Post ReplyReply 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)
CAD Studio - www.cadstudio.cz - Autodesk reseller
Back to Top
yavo7789 View Drop Down
Newbie
Newbie


Joined: 19.Nov.2010
Location: Germany
Using: AutoCAD2010
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote yavo7789 Quote  Post ReplyReply Direct Link To This Post 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

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,141 seconds.