|
external file references and sw api
hello all,
i am trying to create a macro that will copy a drawing and it's referenced parts to a new directory, rename all the documents copied, and update the references in the drawing to point to the new parts. i am having trouble with finding out what parts are referenced and then updating the references. is there a way to get the reference from the drawing without opening it? or maybe i'm going about this all wrong.
thanks in advance,
brad
you may want to look into the document manager api. it's basically the api for solidworks explorer. if you want to use it, though, you will need to get a license key from solidworks. just email apisupport at solidworks dot com.
-handleman, cswp (the new, easy test)
thanks handleman, i will look into that. does the sw explorer need to be open to use that api?
no, sw explorer doesn't need to be open. sw doesn't even need to be open. you can run the document manager stuff from any vb/vba/whatever.
-handleman, cswp (the new, easy test)
cool beans! this will solve many, many, many issues. thanks again handleman, a star for you good sir!
handleman,
thanks for letting us know about the document manager api. i sent in my request. another star for you.
standing
solidworks pro 2009 x64, sp3.0
pdmworks workgroup, solidworks bom,
hp xw8600, 64-bit windows vista business, service pack 1
intel xeon cpu, 3.00 ghz, 16 gb ram, virtual memory 166682 mb,
nvidia quadro fx 4600 |
|