Unfortunately I don't have any specific advicebut you could do worse that look here for a start.
Registered forum members do not see this ad.
I have a block in my drawing that has 2 attributes attached to it. Let's say length and size are the 2 attributes.
I need a little help writing this code as I am a C++ programmer.
For Each block In MyBlocksSet
If the size attribute = 1
size1count += this blocks length attribute
Else if the size attribute = 2
size2count += this blocks length attribute
............
............
Next
I am having trouble extracting the data though. How could I do something simple like extract a block's length attribute and display it. I know I am close but I can't seem to do something as simple as this.
Also, do you know of any good books on VBA in a CAD environment.
I can find many books on VB and VBA, but not many dealing with the AutoCAD aspects of VBA.
Thanks for the help !!!!!!!!
Unfortunately I don't have any specific advicebut you could do worse that look here for a start.
Tip: Please do not PM or email me with CAD questions - use the forums, you'll get an answer sooner.
AutoCAD Tutorials | How to add images to your posts | How to register successfully | Forum FAQ



Registered forum members do not see this ad.
check out my answer to your other post
http://www.cadtutor.net/forum/viewto...?p=12483#12483
it will be something like
of course, if there is more than one attribute, then you need to check which attribute you actually have at any given timeCode:For Each block In MyBlocksSet Myattributes=block.getattributes TheLength=MyAttributes(0).textstring msgbox TheLength Next block
ResourceCAD.... the Resource for your CAD Solutions
Bookmarks