tag:blogger.com,1999:blog-6000162925423321241.post8414251948376510651..comments2024-02-03T06:12:52.484-08:00Comments on CADing and Coding: Total Area and Perimeter Calculation Macrohar!shttp://www.blogger.com/profile/06728551650806056859noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-6000162925423321241.post-41030130128995232492015-06-18T18:08:15.694-07:002015-06-18T18:08:15.694-07:00Hi,
I adapted this macro for my needs and it works...Hi,<br />I adapted this macro for my needs and it works great.<br />Im trying to alter it so I can:<br />Pick the object that I want the area of, then a second pick to replace an existing piece of text with the new value.<br /><br />I can get it to pick the text but it wont put the text in.<br /><br />*^C^Carea;e;\TextEDIT;\;$m=$(/,$(fix,$(/,$(getvar,area),100000)),10)SqM;<br /><br />thanks<br />Dave<br />drichardson@iinet.net.auAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6000162925423321241.post-30485180352908640602013-08-18T16:27:57.117-07:002013-08-18T16:27:57.117-07:00Hi har!s,
I've been using your macro for total...Hi har!s,<br />I've been using your macro for total area for a while and I wonder if there is any way to add a field to the text in the macro itself. In other words, if after I run the macro to find the total area of a Polyline the polyline changes, the area automatically changes. I've been doing it MANUALLY for a while and is quite time consuming.<br />Thanks for your help,<br /><br />JuanAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6000162925423321241.post-62089611919568740942009-11-06T08:27:55.771-08:002009-11-06T08:27:55.771-08:00Hi.
I use this:
*^C^C-Boundary \;;;Area Object La...Hi. <br />I use this:<br />*^C^C-Boundary \;;;Area Object Last;C^C_text m \\ $M=$(rtos,$(/,$(getvar,area),1),2,2) m²;\0.2;;;;Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6000162925423321241.post-37373573069215047392008-09-09T18:56:00.000-07:002008-09-09T18:56:00.000-07:00Hi Haris,Thanks very much, that did the trick. Wou...Hi Haris,<BR/>Thanks very much, that did the trick. Would it be too much to ask you to explain the macro or is there any documentation I can look up so I know what's what? Thanks.<BR/>KayAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6000162925423321241.post-14670891644571512312008-09-08T21:25:00.000-07:002008-09-08T21:25:00.000-07:00Hi Kay,Try using TEXT command instead of MTEXT com...Hi Kay,<BR/>Try using TEXT command instead of MTEXT command.<BR/><BR/>*^C^Carea;e;\Text;\;;$m=$(/,$(fix,$(/,$(getvar,area),10000)),100)sqm;<BR/><BR/>Hope that solves your promblem.<BR/><BR/>har!shar!shttps://www.blogger.com/profile/06728551650806056859noreply@blogger.comtag:blogger.com,1999:blog-6000162925423321241.post-8638509044834466332008-09-08T20:26:00.000-07:002008-09-08T20:26:00.000-07:00Hi Haris,When I'm in WCS the mtext (which shows th...Hi Haris,<BR/>When I'm in WCS the mtext (which shows the area in sqm) appears where I click my mouse, but when I'm in a UCS the mtext appears somewhere else depending on the UCS. Hope that explains the problem.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6000162925423321241.post-59263532600008886972008-09-08T04:05:00.000-07:002008-09-08T04:05:00.000-07:00Hi Kay,Could you be a little more specific ? Pleas...Hi Kay,<BR/>Could you be a little more specific ? Please tell me exactly what is going wrong with your program.har!shttps://www.blogger.com/profile/06728551650806056859noreply@blogger.comtag:blogger.com,1999:blog-6000162925423321241.post-42352028117175533152008-09-07T20:44:00.001-07:002008-09-07T20:44:00.001-07:00Hi,I have a macro for finding the area of an objec...Hi,<BR/>I have a macro for finding the area of an object - *^C^Carea;e;\-mtext;\_none;@1,-1;$m=$(/,$(fix,$(/,$(getvar,area),10000)),100)sqm;;<BR/>- the problem with this macro is it only works properly in WCS. Would you be able to fix it so it can work in other UCS? Also it has to work in AutoCAD LT, so no lisp expressions. Hope you can help. TIA.<BR/>KayAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6000162925423321241.post-15378890535454990742008-09-07T20:44:00.000-07:002008-09-07T20:44:00.000-07:00Hi,I have a macro for finding the area of an objec...Hi,<BR/>I have a macro for finding the area of an object - *^C^Carea;e;\-mtext;\_none;@1,-1;$m=$(/,$(fix,$(/,$(getvar,area),10000)),100)sqm;;<BR/>- the problem with this macro is it only works properly in WCS. Would you be able to fix it so it can work in other UCS? Also it has to work in AutoCAD LT, so no lisp expressions. Hope you can help. TIA.<BR/>KayAnonymousnoreply@blogger.com