
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have been searching through the this thread and haven't been able to find anything.
Disclaimer, I have done quite a bit of VBA, but none in AutoCAD so I am looking for starting points and ideas for the following:
I have a table that is being automatically generated by AutoCAD Electrical. It looks thusly:
Each of the tags, CRxxx have an 'end-of-line' character after them forcing each onto its own line. Multiple cells have the same problem and I would like to replace the 'end-of-line' character with a ", " (comma + space). Thusly:
Here's how I see what is needed
1. I need to be able to select a column in the table - getting user input to select table, column, or cell.
2. I then need to be able to select cells and step through each cell in the table.
3. I need to select the text and replace all the 'end-of-line' characters with whatever text I would like, in some cases I just need to delete the line of text altogether. I will not need to alter the Row/Column/Table - just the text in the cells.
I really am just looking for some starting points, what objects do I need to declare, how do I get around in the object, etc...?
Finally, any one have a good, easily accessed tutorial that would get me started in the basics of VBA for AutoCAD?
Final disclaimer, I am running ACAD 2016 with VBA enabled & installed. I have tried to get Visual Studio Community(Visual Basic) installed so I could go the .NET route for writing this, but alas it will not install on my Windows 7, SP1 computer - even the IT Admin has failed miserably. So if I want this done it has to be in VBA...
Thanks in advance!
Solved! Go to Solution.