
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I'm a beginner doing the Autocad development stuff with VBA with limited experience. Recently I got stuck on this assignment to modify a drawing file (hide some lines in certain layers) and then export the current view to an excel file to make a checklist.
I could do Ctrl+A, Ctrl+C from Autocad and Ctrl+V in Excel, manually, but when it comes to VBA programming, is there a simple way to get this done?
What I have in mind now is to plot the drawing to an image file, and copy this file to a cell in Excel. But I don't really want to generate these image files and delete them later.
Another thing is how to get the maximum dimensions of a drawing profile in X and Y axis? I came across this obj.GetBoundingBox method, which displays the bottom left and upper right coordinates of an virtual enclosing box to the profile, but that only works with a certain type of objects only, i.e. lineObj, arcObj... How can I select all the elements in a drawing profile, and get the maximum X Y dimensions? The GetBoundingBox Method seems not working with AcadSeletionSet Object.
Any ideas or code recommends are welcome. Thanks
Solved! Go to Solution.