Find Block with attributes inside closed Polylines and attach info to polylines

Find Block with attributes inside closed Polylines and attach info to polylines

ralstogj
Collaborator Collaborator
2,438 Views
6 Replies
Message 1 of 7

Find Block with attributes inside closed Polylines and attach info to polylines

ralstogj
Collaborator
Collaborator

Hi

 

I have a 2d master plan of a site drawn in Autocad that has closed polylines to represent each building floor plate (a 100 or so). Inside each polyline is a block with information such as building height, floor level stories etc as block attributes. 

 

Is there a way in map to do a location? query that finds each closed polyline and then finds the block contained inside it and then attaches the block attribute information to the closed polyline. 

 

Once this is done I then want to save to a sdf file and import into Infraworks and use things like building height and floor level to set at the right size.

 

Regards

 

Justin

Regards

Justin Ralston
http://c3dxtreme.blogspot.com/
0 Likes
Accepted solutions (1)
2,439 Views
6 Replies
Replies (6)
Message 2 of 7

ChicagoLooper
Mentor
Mentor

Contrary to what others are about to tell you, there's no easy way. From what you've posted, you'll need to use guesstimates to get what you want. If the buildings were numbered or labeled, and they aren't, then you could say, Building A101 gets this info, Building B132 gets that info and Building W958 gets that info, and so forth and so on. Since there's no relationship between the block and the building's footprint there's no way to create your list to take to Infraworks.

 

You could create two separate lists, one for the buildings and another for the blocks, but that wouldn't work because Infraworks wouldn't know (Infraworks would have to guess) how to link this building footprint with this height and that height with that building.

 

Ideally, a building label (or building ID) for the footprint would have a logical way to correspond to the appropriate data contained in a separate file, such as a spreadsheet. You could do what you want by giving your buildings IDs then supply (or insert) those IDs to a spreadsheet, or external file. Your external file, which you currently don't have, could easily be extracted from the blocks. When the block's data is extracted, the output could be a spreadsheet file so generating a spreadsheet is not an issue, the issue is how to tie-in, or create a relationship, between the building footprint and the block data.

 

Do you have 40 or less buildings?

 

You can do this:

1) Label your buildings (you can, if you know how, have Map3D label them for your)

2) Create a spreadsheet that contains the relevant data (you really don't need blocks, you need a spreadsheet)

3) Link the buildings in your drawing to the spreadsheet  (This is the Map3D function known as a JOIN)   

Chicagolooper

EESignature

0 Likes
Message 3 of 7

АлексЮстасу
Advisor
Advisor

You can solve the problem in Map 3D by creating a polygonal topological model from the boundaries of buildings and blocks (as centroids) - MAPTOPOCREATE.
The topology can be directly exported to sdf - MAPEXPORT.
If necessary, you can create new closed building boundaries with centroid information, MAPCLPLINE, from the topology.

To transfer information from attributes, I would attach Object Data to blocks. It is possible to load the content of attributes into the OD fields - ODEDIT_LOAD_ATTRS.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

Message 4 of 7

O_Eckmann
Mentor
Mentor
Accepted solution

Hi,

 

If you create a OD Table with same name as attribut's tag of your bloc, you can transfer info stored in attrib to OD of enclosed polyline around each block with ADEGENLINK command.

 

Here is a screencast of process : https://autode.sk/2zJQsVM 

 

Olivier

Olivier Eckmann

EESignature

Message 5 of 7

АлексЮстасу
Advisor
Advisor

Yes, with ADEGENLINK command - faster and easiest!

 

By the way,  has plugin for OD that has "Bati 3D : is a specific commands to transform closed poly2D to 3D solid from 2 datas in OD => elevation (base of solid) and height (height of building)" - https://forums.autodesk.com/t5/autocad-map-3d-forum/applications-for-object-data/m-p/9498449#M56959.
Perhaps this command is enough to give the desired shape to the building immediately in dwg.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 6 of 7

ralstogj
Collaborator
Collaborator

Guys

 

That solution should work perfectly for us. We were in the process of setting up a block label for each building anyway and just tried and it worked great. The third app you mentioned also looks good. It will allow the client and contractors we work with to add object data with just Autocad as they do not have Map.

 

Out of interest is there a way to link data in a block that is attached to the midpoint and insertion point of an object. I think this is what our council does with ARC GIS when pulling as built information into their system.

 

Regards

 

Justin 

Regards

Justin Ralston
http://c3dxtreme.blogspot.com/
0 Likes
Message 7 of 7

АлексЮстасу
Advisor
Advisor

@ralstogj wrote:

Out of interest is there a way to link data in a block that is attached to the midpoint and insertion point of an object. I think this is what our council does with ARC GIS when pulling as built information into their system.


If possible, clarify, I did not understand the task.

 

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes