cam10
Computer
- Feb 18, 2009
- 2
I am a programmer (not a pool man!)
If we have multiple pages in a Solidworks Drawing file, we want to be able to set a different page description for each. The section description remains the same for all.
I access the model template as follows to find the note
and in this case “$PRP
ageDescription”
“Set swdraw = swmodel
swdraw.edit template
set view = swdraw.getfirstview
set note = view.getfirstnote
snotename = note.getname
snotename = note.propertylinkedtext()
….then I search for the applicable field “PageDescription” and because I have already added another “PageDescription”, I tack a number on it that coincides with the page number I want to access, ie “PageDescription2”.
I have already stored this in the Custom Properties, but now need to associate it with the actual “Editsheet” function for the drawing template.
I find “$PRP: “ & Chr(34) & “PageDescription” & Chr(34)
and want to override it with “$PRP: “ & Chr(34) & “PageDescription2” & Chr(34). Keep in mind it is just for this page. When I retrieved the text value I would set the value = note.GetText. Instead of changing the text value I want to set the new description. I thought I might be able to use this same object and use something like note.Getname, but that doesn't seem to work.
Your assistance is appreciated!
If we have multiple pages in a Solidworks Drawing file, we want to be able to set a different page description for each. The section description remains the same for all.
I access the model template as follows to find the note
and in this case “$PRP
“Set swdraw = swmodel
swdraw.edit template
set view = swdraw.getfirstview
set note = view.getfirstnote
snotename = note.getname
snotename = note.propertylinkedtext()
….then I search for the applicable field “PageDescription” and because I have already added another “PageDescription”, I tack a number on it that coincides with the page number I want to access, ie “PageDescription2”.
I have already stored this in the Custom Properties, but now need to associate it with the actual “Editsheet” function for the drawing template.
I find “$PRP: “ & Chr(34) & “PageDescription” & Chr(34)
and want to override it with “$PRP: “ & Chr(34) & “PageDescription2” & Chr(34). Keep in mind it is just for this page. When I retrieved the text value I would set the value = note.GetText. Instead of changing the text value I want to set the new description. I thought I might be able to use this same object and use something like note.Getname, but that doesn't seem to work.
Your assistance is appreciated!