Link to home
Start Free TrialLog in
Avatar of usnr
usnr

asked on

How do I modify the model template descriptions through Solidworks API for each additional page in a drawing file?

If we have multiple pages in an slddrw file, we want to be able to
set a different page description for each.  The section description
would remain the same for all.

I was able to access the model template:

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 am going to be adding 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 

I find $PRP:  & Chr(34) & PageDescription & Chr(34)
and want to override it with $PRP:  & Chr(34) & PageDescription2 & Chr(34)
When I retrieved the value I would set the value = note.GetText.

Now I want to set the new description not the value.

as above.....

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of usnr
usnr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial