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

Posted on 2009-02-18
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

    I've updated the Zones.....can someone please reply?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    Our company has proprietary drawing files that we do not give to our customers for final documentation. Our customers now require that we give them these drawings. They understand that they are proprietary and do not require them to be in AutoCAD bu…
    I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now