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

Posted on 2009-02-18
Medium Priority
Last Modified: 2013-12-04
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

Question by:usnr
1 Comment

Accepted Solution

usnr earned 0 total points
ID: 23673786
I've updated the Zones.....can someone please reply?

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question