RefurbRich01 Posted February 21, 2017 Share Posted February 21, 2017 Hi All I'm looking for a method to automate a very time consuming workflow, which I'll try and explain..... We receive a batch of third party building plans from which we extract the room outline polygons and convert them into Spaces with a 3D volume. The spaces are automatically numbered on creation and we then have to go into each space and updated them manually to match the predefined room number that exists in the third party building plan. Why we need do this is complicated to explain, so I wont try to! But does anyone know of a way of linking existing text that sits within the 2D boundaries of a 'Space' to create the Space number, without manual input? Any suggestions greatly appreciated! Quote Link to comment
Hippocode Posted February 22, 2017 Share Posted February 22, 2017 Well you can get the origin of each text object and find the space where this point lies within the boundaries of the space polygon. Then apply that name to the space. Quote Link to comment
RefurbRich01 Posted February 22, 2017 Author Share Posted February 22, 2017 2 hours ago, Hippocode said: Well you can get the origin of each text object and find the space where this point lies within the boundaries of the space polygon. Then apply that name to the space. Thanks for your reply! Are you able to clarify how I'd go about doing that? Quote Link to comment
Pat Stanford Posted February 22, 2017 Share Posted February 22, 2017 I thought that I worked on a script for a similar problem a few years ago, but I can't seem to find any trace of it. It actually might be easier to work with the name before you convert them to spaces. The LOC criteria will give you all the objects that are within a given polygon. You could use this in a script to get the textual data into a record attached to the polygon. Then you could use a second script to create the space from the poly and transfer the data from the record to the proper space object fields. I would try to help more, but I know I will not have time to work on this this week and probably not even next week. Quote Link to comment
RefurbRich01 Posted February 22, 2017 Author Share Posted February 22, 2017 Thanks Pat Certainly sounds promising that they're might be a way round this. Thanks for giving me new hope! Never tried scripting before, but sounds like it's time to give it a go. Quote Link to comment
Pat Stanford Posted February 23, 2017 Share Posted February 23, 2017 Can you post a file with a few of the imported poly and text blocks? If so, I might be able to make better suggestions on how to proceed. If there are other "extraneous" items please leave them in the file as they can effect how you will have to handle things with the LOC criteria. Quote Link to comment
RefurbRich01 Posted February 23, 2017 Author Share Posted February 23, 2017 Hi Pat File attached. The Polygons are in a class called 'ROOM OUTLINE', and the text is all in 'ROOM NUMBERS'. Thank you for your help. Test File.vwx Quote Link to comment
RefurbRich01 Posted February 23, 2017 Author Share Posted February 23, 2017 Your comment about extraneous items is a good point. I don't think the text file I've sent has any other text within the polygon boundaries, but more often than not there would be. I assume it's possible to script something that only looks at text field within class 'ROOM NUMBERS', for example? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.