- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I've searched for this, and have not found anything VBA, only AutoLisp.
I would like to change the layer property of a layer defined by its name, for a drawing. I can then put this code in a script and run it with AEUTILTIES to align the layers all my drawings in the project.
Specifically, I want to change the default linetype of the "LINK" layer to "DASHED" and the colour to number 9.
I have tried using sendcommand and the test for the -LAYER command, and it works fine until the last part. The -LAYER command remains active and I can't seem to send an escape to it. I have tried all the forum answers I can find such as Chr(27) Chr$(27) and they all give errors.
So I thought I would put this out there to see if anyone has some code they use that can alter layer properties that could give me some new ideas. You don't need to adapt your code to my problem if you don't want to, just for the code to show a way to solve it.
There are probably AutoCAD utilities etc., but I want to use VBA as I can then add these routines to others that I run for drawings already.
Thanks and regards to you all, I hope your day goes well.
Roger.
Solved! Go to Solution.