Property Set with Cumulative Area

Property Set with Cumulative Area

aszymaszek
Contributor Contributor
870 Views
1 Reply
Message 1 of 2

Property Set with Cumulative Area

aszymaszek
Contributor
Contributor

Hello,

 

I have a property set that tells me the area, in acres, of a single hatch. I am wondering if it is possible to have a property set that grabs the cumulative area property, when multiple hatches are selected.

 

What I would like to be able to do is select all hatches within a layer and have it tell me the cumulative area, in acres.

 

My current property set is:

RESULT="--"
Set acadApp = GetObject(, "AutoCAD.Application")
set obj = acadApp.ActiveDocument.ObjectIDToObject( [ObjectID] )
RESULT=obj.area / 43560

I was really hoping that it was as easy as saying

RESULT=obj.CumulativeArea / 43560

But that does not work for me.

 

Any ideas? 

 

Thanks so much!

 

 

 

 

871 Views
1 Reply
Reply (1)
Message 2 of 2

aszymaszek
Contributor
Contributor

I am still curious if this is possible - but I did find a work around by creating a schedule table that displays the subtotals for each layer!

0 Likes