Create a dynamo file that can calculate area of a circle

How can create a dynamo file that can calculate area of a circle

welcome them to the community!

2 Likes

In Design Script without building a new geometry:

Math.Pi()*Math.Pow(Circle.Radius(cir),2);

By nodes without building new geometry:
https://dictionary.dynamobim.com/#/Geometry/Circle/Query/Radius
https://dictionary.dynamobim.com/#/Core/Math/Action/Pow
https://dictionary.dynamobim.com/#/Core/Math/Query/PI
https://dictionary.dynamobim.com/#/Operators/Action/Multiplication

Or by design script with new geometry:
Surface.ByPatch(circle).Area;

By nodes with new geometry creation:
https://dictionary.dynamobim.com/#/Geometry/Curve/Action/Patch
https://dictionary.dynamobim.com/#/Geometry/Surface/Query/Area

1 Like

Depending on how you are getting the circle information may depend on the direction you want to go but within the below image has a few examples.