DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

display area calculations

Started by dfmcafee, February 27, 2007, 08:17:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dfmcafee

In V.16 is there a way to display the calculations used to determine the area of a 2D drawing.

I am doing simple drawings which I can sub-divide into rectangles and triangles and  determine the area by hand. Does the code for the Area Command do this in a similar fashion and is there a way to expose whatever method is used so that I can include that with the drawing?

impulse

There is an AREA command, usually under the Dimension pulldown menu. If you have drawn a polyline, such as a rectangle you can also simply issue the info box command and at the bottom there is a checkbox to enable  the AREA display there.

Bob P

To get the total drawing area, use some sys() values:

'Program DAREA.d3m

DAREA=(SYS(122)-SYS(120))*(SYS(123)-SYS(121))
'(max drawing x value - min x) x (max drawing y value - min y)
darea$ = darea

>Text2D
{

<Style 0
<Justification 1
<Font "Simplex_Win"
<Text [darea$]
<Angle 0
}

Lar

Quote from: dfmcafee on February 27, 2007, 08:17:36 AM
In V.16 is there a way to display the calculations used to determine the area of a 2D drawing.

Sorry, there is no way no expose the calculations that dcad utilizes when calculating areas.

However, if you can devise an algorithm and post it on the forum, maybe one of the macro (and math) wizards can write a macro that will display the calculations as it is being computed.

Lar

crckrjck

#4
You can copy the text from the value displayed in AREA and paste it directly into your drawing if that is helpful.
;D

dfmcafee

This is what I have in mind, if anyone could give me an idea on how to get it.
Thanks