Spinner Posted February 26, 2014 Share Posted February 26, 2014 Hi guys, I'm trying to improve our AutoCAD LT workflow and need some advice on whether this is possible. We typically have to plot two sets of circles on plans: The first set of circles specifies the locations of real-world objects The second set of circles represent imaginary zones around each of the objects plotted in the first round The radius of each circle (zone) in the second set is determined by a column from a table (currently an Excel file generated from XML), each row of which specifies an ID for each object in the first set and a radius for the surrounding zone. Currently, each zone radius is read off from the table and its circle is created manually. This is where I think improvements could be made. What I would like to do is something like this: Associate (manually) an ID attribute with each circle in the first set After all circles in the first set have been plotted manually, iterate over each circle, and for each circle: Retrieve ID attribute from circle Look up row in table with that ID Retrieve radius value from that row With that radius value, plot new circle at the same centre point - this is the zone For dozens of objects, this could save a lot of time. Is there any way i could accomplish this, with a script or something? Thanks, Spinner Quote Link to comment Share on other sites More sharing options...
steven-g Posted February 26, 2014 Share Posted February 26, 2014 How are you with excel, do you use VBA or just formulas. It's doable. I use excel to create scripts to insert blocks and drawing geometry as well as change attributes. If the information is in excel to start with there shouldn't be a need to do any manual work, but it depends on circumstances. Can you post a sample drawing and excel file, with just a few examples of data. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted February 27, 2014 Share Posted February 27, 2014 I second what Steven-g is saying so long as you dont have to stop to input something you basicly write a script using excel you can copy a column and paste it onto the command line and watch autocad draw it all. The VBA in excel means you can do some pretty powerfull stuff. Quote Link to comment Share on other sites More sharing options...
Spinner Posted July 7, 2015 Author Share Posted July 7, 2015 How are you with excel, do you use VBA or just formulas. It's doable. I use excel to create scripts to insert blocks and drawing geometry as well as change attributes. If the information is in excel to start with there shouldn't be a need to do any manual work, but it depends on circumstances. Can you post a sample drawing and excel file, with just a few examples of data. Hi Steven, thanks for the reply, and my apologies for being so slow to respond. I've attached a sample DWG and Excel spreadsheet. The DWG has six small circles, around which need to be plotted six larger circles with the radii in the Excel file. I haven't associated an ID with each of the small circles because I'm not sure of how to do so. This would be Step 1, as outlined above. Thanks for your help, and I look forward to seeing what you suggest. Spinner TEST.dwg Test.xlsx Quote Link to comment Share on other sites More sharing options...
BIGAL Posted July 8, 2015 Share Posted July 8, 2015 1st thing redo your circles as blocks and have an attribute attached it can be invisible it now has a unique identifier, 1,2,3 etc a Dataextract will produce a csv file with centroid and identifier then simply match to your data probably a simple sort and paste between two spread sheets then a simple column calc, circle x,y rad copy to autocad all done. Another way is to put text at the circle centre pt say on another layer use lower left, same thing Dataextract, you will get id and X,Y location Quote Link to comment Share on other sites More sharing options...
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.