Registered forum members do not see this ad.
I have a VBA macro which tags each line on the screen with a block. The block has 2 attributes; size and length. Also, each one of these tags has a seperate attribute reference.
So here are my questions.
1. Is there any way to keep a macro running. Here's my problem. I have a counter that I use an attribute reference counter. It is incremented after each insertion of my block. My program tags all the lines, but if I draw another line and then tag that one, the attribute reference counter will be correct because the macro is no longer running. Is there any way to remedy this ???
2. If I run my macro, and then copy one of my blocks, will the copy have a new attribute reference ?? If so how do I know what the reference is ??



Registered forum members do not see this ad.
I'm sorry, I've read and reread what you have written but I cannot make sense of it.
a block has 2 attributes ~ ok ~ but you've lost me on the rest.The block has 2 attributes; size and length. Also, each one of these tags has a seperate attribute reference.
Yes various methodsIs there any way to keep a macro running.
eh do you mean incorrect ?I have a counter that I use an attribute reference counter. It is incremented after each insertion of my block. My program tags all the lines, but if I draw another line and then tag that one, the attribute reference counter will be correct because the macro is no longer running. Is there any way to remedy this ???
Consistency of approach. if you write a code to do one thing, then you go and do another, how is the code going to know ? unless you code for it.
anytime you start the macro, you gather all the existing data, check it and get the highest number or whatever it is you are looking for
Perhaps I don't understand what you are trying to do here but it looks like you are missing the point of blocks. Or are you talking about the attributes textstring ?If I run my macro, and then copy one of my blocks, will the copy have a new attribute reference ??
ResourceCAD.... the Resource for your CAD Solutions
Bookmarks