Tobin1
Petroleum
- Nov 9, 2007
- 176
Howdy!
I’m just beginning to learn a bit about the SW API. In the past I used AutoLISP in AutoCAD for productivity enhancements. But I didn’t get into VB at the time. I’ve been using SW daily for a little over a year now. I downloaded a few nice SW Macro’s and recorded a couple of my own.
I’ve found a Macro (AddViewLabel) that is very close to something that would help me label views the way I need to more efficiently. AddViewLabel is a collaborative effort by Matthew Lorono and Regg. I contacted Mr. Lorono to discuss an addition to the code. He’s agreeable with trying to add something to the code.
I need to change the view label’s because, as I’m sure you are all aware, SW uses only one text size for both lines of the view label it produces. I need the last line (the scale) to be a smaller text size than the other lines.
I’d like to change the AddViewLabel's code so it will do the following:
1) Use the SW “Section View Text” text size setting for the first two lines the Macro creates (Firster and Seconder).
Currently the Macro uses the SW “Note” text size setting for all text size:
[get note annotation object]
[Set swAnnotation = swNote.GetAnnotation]
2) Use the SW “Note” text size setting for the third line the Macro creates (showme).
The Macro is currently set up to use this text size for all text.
As I said I’m a beginner at this. I can look thru the code and figure out some of what is going on but not enough to figure out how to add the above function.
Can anybody help me with this?
I’m just beginning to learn a bit about the SW API. In the past I used AutoLISP in AutoCAD for productivity enhancements. But I didn’t get into VB at the time. I’ve been using SW daily for a little over a year now. I downloaded a few nice SW Macro’s and recorded a couple of my own.
I’ve found a Macro (AddViewLabel) that is very close to something that would help me label views the way I need to more efficiently. AddViewLabel is a collaborative effort by Matthew Lorono and Regg. I contacted Mr. Lorono to discuss an addition to the code. He’s agreeable with trying to add something to the code.
I need to change the view label’s because, as I’m sure you are all aware, SW uses only one text size for both lines of the view label it produces. I need the last line (the scale) to be a smaller text size than the other lines.
I’d like to change the AddViewLabel's code so it will do the following:
1) Use the SW “Section View Text” text size setting for the first two lines the Macro creates (Firster and Seconder).
Currently the Macro uses the SW “Note” text size setting for all text size:
[get note annotation object]
[Set swAnnotation = swNote.GetAnnotation]
2) Use the SW “Note” text size setting for the third line the Macro creates (showme).
The Macro is currently set up to use this text size for all text.
As I said I’m a beginner at this. I can look thru the code and figure out some of what is going on but not enough to figure out how to add the above function.
Can anybody help me with this?