| Author |
Message |
Clarence
Guest
|
Posted:
Fri Dec 31, 2004 12:18 am Post subject:
Area Field Diesel Expression |
|
|
I'm using this in a lisp command to get square feet:
">%).Area \\f \"%lu6%qf1 SF\">%"
I understand luprec controls the decimals.
How do I get this to show different types of units i.e. square yards, acres and etc.?
To clarify - What portion do I need to set to a variable to do my calculations for the other types?
|
|
| Back to top |
|
 |
Clarence
Guest
|
Posted:
Fri Dec 31, 2004 12:22 am Post subject:
Re: Area Field Diesel Expression |
|
|
More to this>>>>
This is for an Area (by polyline) to Field command (square feet only right now). And its for a dialog box. I have managed to get the rest of this command to work properly. So now I'm adding additional features. I know how I can adjust the decimals. Now I want to add the varying units that we use.
Thanks for any comments and/or suggestions! |
|
| Back to top |
|
 |
Tom Smith
Guest
|
Posted:
Fri Dec 31, 2004 1:41 am Post subject:
Re: Area Field Diesel Expression |
|
|
It's not clear why you'e using diesel. The cvunit function in lisp will do
just about any area conversion you need.
|
|
| Back to top |
|
 |
Tony Tanzillo
Guest
|
Posted:
Fri Dec 31, 2004 7:32 am Post subject:
Re: Area Field Diesel Expression |
|
|
"Tom Smith" <nospam> wrote in message
| Quote: | It's not clear why you'e using diesel.
|
Because LISP can't be used in field expressions?
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005
http://www.acadxtabs.com |
|
| Back to top |
|
 |
Clarence
Guest
|
Posted:
Mon Jan 03, 2005 11:25 pm Post subject:
Re: Area Field Diesel Expression |
|
|
Sorry Tony....but yes it can!
Run field and go to Object and get the area of something. See the formula in Field Expression at the bottom of the Field dialog box. I'm using lisp to manipulate the string and then use mtext to make my field text.
I haven't had to convert units before is all. I will try cvunit as suggested.
Thank you for all help. |
|
| Back to top |
|
 |
Clarence
Guest
|
Posted:
Mon Jan 03, 2005 11:26 pm Post subject:
Re: Area Field Diesel Expression |
|
|
| FYI - I learned how to make fields with lisp from this ng. |
|
| Back to top |
|
 |
Clarence
Guest
|
|
| Back to top |
|
 |
Tom Smith
Guest
|
Posted:
Tue Jan 04, 2005 1:36 am Post subject:
Re: Area Field Diesel Expression |
|
|
| Per the help docs, unit conversions used by cvunit are in the acad.unt file, which you can modify if necessary. The standard ones should probably handle your needs, though. |
|
| Back to top |
|
 |
Clarence
Guest
|
Posted:
Tue Jan 04, 2005 1:44 am Post subject:
Re: Area Field Diesel Expression |
|
|
thx......thats what i'm hoping!
I encountered some minor bugs that are slowing me down a bit. I'm almost at the point where I can experiment with cvunit.
I'll post a progress report if I can complete this soon.....
Hey, BTW can anyone help with programming the ok and cancel buttons. I want them to check that everything is selected or not before continuing. And follow thru from there with the appropriate actions: place field text or cleanly exit.
Right now I get a bad number error if I select cancel.
Thanks! |
|
| Back to top |
|
 |
Clarence
Guest
|
Posted:
Tue Jan 04, 2005 4:08 am Post subject:
Re: Area Field Diesel Expression |
|
|
Cannot make lisp and diesel see eye to eye. The info I need has to be in the diesel format. i can use cvunit to convert units but cannot transfer the lisp info over to the diesel format
I think I might have found my stopping point on this command.
From what I understand, Fields can utilize Lisp minimally. You can write lisp to replace object id values and etc. But there are only a handful of options that Fields are capable of. |
|
| Back to top |
|
 |
|
|
|
|