SolidWorks API

Oct 20, 2004 7 Replies

Hi



Does any of you have any idea how I write custom properties directly to SolidWorks files, without having to open them in SolidWorks first ???



Any help would be greatly appreciated...


directly

first

Get "dsofile.dll" frim

formatting link
which gives you access document properties through the OS, without having to open the file. The bad news are:

1) you won't be able to access configuration-specific properties 2) some earlier messages on this group say it doesn't work with Win XP. Didn't try... Philippe Guglielmetti -
formatting link

Works with my XP Pro. Best Regards, Devon T. Sowell

formatting link

Works here too XP Pro

Corey

Thanks a lot... I'll have a go at it, as soon as possible... :-D

Any idea why?

...snip

Yup : they are stored in different places. SW Files use the MS "OLE Structured storage" format, which has one specific location for file properties, then a structure of file-specific data. SW files have one block for each config, and config properties are stored in it, out of the reach of dsofile.dll... I used

formatting link
to investigate a bit on this. Philippe Guglielmetti -
formatting link

Were there copyrights on the dsofile.dll?

I wonder what it would take to edit it to be config specific.

Corey

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required