.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Updating block attribute with area of surrounding polygon

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
380 Views, 3 Replies

Updating block attribute with area of surrounding polygon

Just wondering if anyone has done anything like this before?

I want to be able to select all of the blocks on ROOMS layer and then:

For each block, get the area of its surrounding polygon on the ROOMAREAS layer, and use it to update the Area attribute of the block.

I'm new to .Net and C#, so if anyone has any examples or ideas of how to accomplish this that would be great!
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

This isn't exactly a new or unique problem that's never
been solved before. The best way is to use fields which
maintains an association/relationship between the polygon
and the text/attribute that displays its area.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2011

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6367721@discussion.autodesk.com...
Just wondering if anyone has done anything like this before?

I want to be able to select all of the blocks on ROOMS layer and then:

For each block, get the area of its surrounding polygon on the ROOMAREAS layer,
and use it to update the Area attribute of the block.

I'm new to .Net and C#, so if anyone has any examples or ideas of how to
accomplish this that would be great!
Message 3 of 4
Anonymous
in reply to: Anonymous

We've got 40,000 blocks and polygons and don't want to have to go into every drawing and edit them.

What I'd like to have is a script that goes through every drawing, calculating the areas and updating the blocks.
Message 4 of 4
Anonymous
in reply to: Anonymous

You can just as easily have a script that goes through
every drawing and inserts the field into the attribute.

So, you still have to do the analytical part of associating
the blocks and polygons, but can still take advantage of
fields, and eliminate the need to repeat the process again.

However, if you are new to .NET and C#, then this isn't
going to be simple or straightforward. If you really need
something like this done and it's going to save you from
a lot of manual work, then rather than spend the year or
two that you would need to be able to use .NET/C# to
get the job done, It may pay for you to hire someone that
already has the ability to do the job quickly.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2011

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6368313@discussion.autodesk.com...
We've got 40,000 blocks and polygons and don't want to have to go into every
drawing and edit them.

What I'd like to have is a script that goes through every drawing, calculating
the areas and updating the blocks.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost