Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding Properties valuse in VB

Status
Not open for further replies.

karmoh

Industrial
Mar 1, 2008
210
Hi All,

I'm just starting out on the customization route (VB), don’t ask why after using SE since V7, but hey these things happen.

Is it possible to populate the properties of a SE *.psm or *.par file using VB.

The only properties I’m interested in are:-

On the Project tab,
Document Number
Revision Number
Project Name

And on the Summary tab
Title
Subject

Can anyone give me a leg up? Or just let me know if it’s possible?
 
Replies continue below

Recommended for you

Hi,

without any programming you can fill the above items by
using the propseed.txt. It's located within the install
directory in folder \Program. It can be located, however
anywhere. The location can be specified in SE Tools -->
Options --> File locations.
Whenever a new file is created those values specified
will populate the appropriate items within the file properties

dy
 
Thanks Don, Although I was aware of the propseed.txt method.

I should have been clearer in my post. I have a need to populate consecutive document numbers and various other details (mentioned above) these will come form a simple database, created in VB 2005. The database has lots of Non SE data.
I was thinking along the lines of Having a form with the relevant details and then clicking a button. Then this would create the appropriate SE file and at the same time fill the properties.

I can create a new SE file (from within VB) but do not understand how to populate the properties or how difficult this is.
Off Jason Newell's site I have code that reads the properties and I can display them, but not write new ones.

Thanks :)
 
Hi,

you can read/write those informations by using this object

<objDoc>.Summaryinfo

it's available in all enviroments and has methods to read/write
Title, RevisionNumber, Subject, DocumentNumber, ProjectName

HTH

dy
 
Why not use Property Manager ?
I've done this on hundreds of drawings in a project, usually in batches.
Best way is to set up a new SE file with all the properties and values you need, then open this one and the ones you want to change. You can the copy/paste whole columns at a time. It may be quicker than writing a program.
I've set up properyy template files for each project so that everyone can get the same values.

bc.
2.4GHz Core2 Quad, 4GB RAM,
Quadro FX4600.
 
Hi beachcomber,

I do use Property manager regularly, but hadn't thought of it in that way. I usually use it for tidying at the end of a days work and before I create drawings. I too use the copy paste method, but only within property manager.

Are you saying I can create multiply SE files with the same properties then copy drawing numbers and titles from a spreadsheet or similar?

Cheers
 
Yes, I think you can create a spreadsheet with the appropriate columns and their values.
So in your case you'd have columns for Title, Revision Number, Subject, Document Number and Project Name.
If you then open the drawings in Property Manager, display the same property columns in the same order, then I think you should be able to copy/paste from the spreadsheet into Property manager.
I'm sure I've done it like this before, but you need to make sure your docs are in the same order if you do more than one row at a time.



bc.
2.4GHz Core2 Quad, 4GB RAM,
Quadro FX4600.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor