 | | From: | SWalker at carrollhealthcare.com | | Subject: | API Help - Setting document Summary Information | | Date: | Fri, 21 Jan 2005 09:50:56 -0600 |
|
|
 | Anyone have any experience setting "Custom Properties" and "Summary Information"? Specifically "Summary Information"
I've been developing a bit of VB code that programatically re-writes Custom Properties on a list of Part files. It works pretty good.
What I have been trying to do, as well, is to change Summary Info for the model. I can retrieve and print the properties but cannot change them. The online help leads me to a dead end. I've used it extensively and incorporated many of the example code. There are examples to read the info but no example to write the info.
Here is a portion of the help information for the specific method
---------------------------------------------------- ModelDoc2::SummaryInfo Description
This property gets or sets file summary information for the SolidWorks document.
Syntax (OLE Automation)
value = ModelDoc2.SummaryInfo ( fieldId ) (VB Get property)
ModelDoc2.SummaryInfo ( fieldId ) = value (VB Set property) ----------------------------------------------------
Question: How do I implement? ModelDoc2.SummaryInfo ( fieldId ) = value (VB Set property)
Can someone help me interpret and implement this Method?
Thanks, stuck in syntax
SW
|
|
 | | From: | CS | | Subject: | Re: API Help - Setting document Summary Information | | Date: | Fri, 21 Jan 2005 10:12:41 -0600 |
|
|
 | Heare are 2 that I use and they both work.
ActvDoc.SummaryInfo(swSumInfoComment) = "Some Thing"
NewDocument.SummaryInfo(swSumInfoAuthor) = Events1.UserLogin
Corey
You should also be able to change this on drawings that aren't opened using dsoFile.dll
wrote in message news:Xns95E56E6EB70CFSWalkercarrollhealth@216.196.97.131... > Anyone have any experience setting "Custom Properties" and "Summary > Information"? > Specifically "Summary Information" > > > I've been developing a bit of VB code that programatically re-writes Custom > Properties on a list of Part files. It works pretty good. > > What I have been trying to do, as well, is to change Summary Info for the > model. I can retrieve and print the properties but cannot change them. > The online help leads me to a dead end. I've used it extensively and > incorporated many of the example code. There are examples to read the info > but no example to write the info. > > Here is a portion of the help information for the specific method > > ---------------------------------------------------- > ModelDoc2::SummaryInfo > Description > > This property gets or sets file summary information for the SolidWorks > document. > > Syntax (OLE Automation) > > value = ModelDoc2.SummaryInfo ( fieldId ) (VB Get property) > > ModelDoc2.SummaryInfo ( fieldId ) = value (VB Set property) > ---------------------------------------------------- > > > Question: > How do I implement? > ModelDoc2.SummaryInfo ( fieldId ) = value (VB Set property) > > > > Can someone help me interpret and implement this Method? > > > Thanks, > stuck in syntax > > > SW
|
|
 | | From: | SWalker at carrollhealthcare.com | | Subject: | Re: API Help - Setting document Summary Information | | Date: | Fri, 21 Jan 2005 12:55:39 -0600 |
|
|
 | Thanks Corey
That's the ticket.
Appreciate it
SW
"CS" wrote in news:35cnh0F4kb86qU1@individual.net:
> Heare are 2 that I use and they both work. > > ActvDoc.SummaryInfo(swSumInfoComment) = "Some Thing" > > NewDocument.SummaryInfo(swSumInfoAuthor) = Events1.UserLogin > > Corey > > You should also be able to change this on drawings that aren't opened > using dsoFile.dll > > > > wrote in message > news:Xns95E56E6EB70CFSWalkercarrollhealth@216.196.97.131... >> Anyone have any experience setting "Custom Properties" and "Summary >> Information"? >> Specifically "Summary Information" >> >> >> I've been developing a bit of VB code that programatically re-writes > Custom >> Properties on a list of Part files. It works pretty good. >> >> What I have been trying to do, as well, is to change Summary Info for >> the model. I can retrieve and print the properties but cannot change >> them. The online help leads me to a dead end. I've used it >> extensively and incorporated many of the example code. There are >> examples to read the info but no example to write the info. >> >> Here is a portion of the help information for the specific method >> >> ---------------------------------------------------- >> ModelDoc2::SummaryInfo >> Description >> >> This property gets or sets file summary information for the >> SolidWorks document. >> >> Syntax (OLE Automation) >> >> value = ModelDoc2.SummaryInfo ( fieldId ) (VB Get property) >> >> ModelDoc2.SummaryInfo ( fieldId ) = value (VB Set property) >> ---------------------------------------------------- >> >> >> Question: >> How do I implement? >> ModelDoc2.SummaryInfo ( fieldId ) = value (VB Set property) >> >> >> >> Can someone help me interpret and implement this Method? >> >> >> Thanks, >> stuck in syntax >> >> >> SW > > >
|
|