We help IT Professionals succeed at work.

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

Medium Priority
809 Views
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

Comment
Watch Question

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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.