brrian
Mechanical
- Jan 21, 2004
- 164
The Hole Callout feature isn't as flexible as I need it to be. For example, the number of hole instances is shown as "#X" and is always at the beginning of the note. I instead need "# PLACES" at the end of the note.
Also, I need to be able to select from a variety of different notes for a particular hole type. For example, a plain thru hole could get any one of the following notes:
(DIA) DRILL THRU
3 PLACES
(DIA) DRILL THRU & INSERT 1/4-20 PROPELL NUT
ON BACK, 3 PLACES
(DIA) DRILL THRU & INSERT DOWEL PIN
3 PLACES
As it is right now, the Hole Callout feature will not allow you to select from a 'library' of hole notes--it uses the one and only callout that is set up in the calloutformat.txt file.
However, while placing a hole callout, you can choose the "More Properties... Modify Text" function and pretty much edit to your heart's content.
That got me to thinking--could a macro be written that would:
-start the hole callout command
-allow the user to select a hole
-pop up a custom form to allow the user to choose from a list of hole callouts (my custom list)
-populate the hole callout "Modify Text" box with the note chosen in the previous step (either visibly or invisibly)
Any thoughts--can it be done? Hopefully it can. I have a very basic knowledge of VBA, and I'll take a shot at writing something. If anybody has any tips, or could even get me started on the right track, that would be very helpful and extremely appreciated. I'm looking forward to your responses. Thanks,
Brian
Also, I need to be able to select from a variety of different notes for a particular hole type. For example, a plain thru hole could get any one of the following notes:
(DIA) DRILL THRU
3 PLACES
(DIA) DRILL THRU & INSERT 1/4-20 PROPELL NUT
ON BACK, 3 PLACES
(DIA) DRILL THRU & INSERT DOWEL PIN
3 PLACES
As it is right now, the Hole Callout feature will not allow you to select from a 'library' of hole notes--it uses the one and only callout that is set up in the calloutformat.txt file.
However, while placing a hole callout, you can choose the "More Properties... Modify Text" function and pretty much edit to your heart's content.
That got me to thinking--could a macro be written that would:
-start the hole callout command
-allow the user to select a hole
-pop up a custom form to allow the user to choose from a list of hole callouts (my custom list)
-populate the hole callout "Modify Text" box with the note chosen in the previous step (either visibly or invisibly)
Any thoughts--can it be done? Hopefully it can. I have a very basic knowledge of VBA, and I'll take a shot at writing something. If anybody has any tips, or could even get me started on the right track, that would be very helpful and extremely appreciated. I'm looking forward to your responses. Thanks,
Brian