patch131 Posted May 26, 2009 Share Posted May 26, 2009 hey, i want to insert a text with the total area of objects i've selected. the problem is i can't seem to get out of the area command to start the text command. i've created a button for it wich runs the command. this is how it looks: ^C^Carea;a;o;\Text;\;$m=$(/,$(fix,$(/,$(getvar,area),10000)),100)m²; seperate the command seems to do the trick though. first: ^C^Carea;a;o; second \Text;\;$m=$(/,$(fix,$(/,$(getvar,area),10000)),100)m²; it works then. can someone please help me... grtzz Pat Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted May 26, 2009 Share Posted May 26, 2009 I can get it to end the area command, but now its not registering an area... ^C^Carea;a;o;\;;Text;\;$m=$(/,$(fix,$(/,$(getvar,area),10000)),100)m²; I now remember why I hate LT... Quote Link to comment Share on other sites More sharing options...
patch131 Posted May 26, 2009 Author Share Posted May 26, 2009 jep the command ends, but it only shows 1 area. try the macro ^C^Carea;a;o; it accumulates the area's to 1, that's the nice part. Quote Link to comment Share on other sites More sharing options...
Egineering3 Posted August 4, 2015 Share Posted August 4, 2015 I can get it to end the area command, but now its not registering an area... ^C^Carea;a;o;\;;Text;\;$m=$(/,$(fix,$(/,$(getvar,area),10000)),100)m²; I now remember why I hate LT... I am using this macro to insert areas of closed polyline shapes. It works very well except that it uses the default text style and height. Please tell me how to include a text height instruction into the macro. I have tried a number of things but none of them work. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted August 4, 2015 Share Posted August 4, 2015 A text height is asked if the current text style is not set to a fixed height ie 0.0. So you need to set the correct style to be used, Style S textstyle. In lisp I check for this and use correct style. Lee a question o;\;; or o;;\; you have to cancel the pick object select before moving on. Quote Link to comment Share on other sites More sharing options...
steven-g Posted August 4, 2015 Share Posted August 4, 2015 Try this macro, ^C^Carea;a;o;\;;Text;\;$m=$(/,$(fix,$(/,$(getvar,area),10000)),100)m²;scaletext;l;;e; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.