Req help : macro to save current read-only model to "Work" a
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Req help : macro to save current read-only model to "Work" a

 
Post new topic   Reply to topic    CADForums.net Forum Index -> SolidWorks
Author Message
SW Monkey
Guest





Posted: Tue Nov 15, 2005 1:10 am    Post subject: Req help : macro to save current read-only model to "Work" a Reply with quote

Im trying to get a macro that after opening a model from our read-only
vault, it saves the model into my "work" directory. I also want it to
save the drawing that is associated to it. Our drawings have the same
filename (minus extension) as the part/assy model.

Does anyone have something like this already. Im doing some
experimenting on having a manual file management system (thinking about
getting rid of our current PDM system).

Back to top
cadguru
Guest





Posted: Tue Nov 15, 2005 1:10 am    Post subject: Re: Req help : macro to save current read-only model to "Wor Reply with quote

So you are trying to emulate what PDM/Works will do on a check out?

Cadguru

"SW Monkey" <google311.50.spydermonkey@spamgourmet.com> wrote in message
news:1132006594.013088.251650@f14g2000cwb.googlegroups.com...
Quote:
Im trying to get a macro that after opening a model from our read-only
vault, it saves the model into my "work" directory. I also want it to
save the drawing that is associated to it. Our drawings have the same
filename (minus extension) as the part/assy model.

Does anyone have something like this already. Im doing some
experimenting on having a manual file management system (thinking about
getting rid of our current PDM system).
Back to top
Devon T. Sowell
Guest





Posted: Tue Nov 15, 2005 7:47 am    Post subject: Re: Req help : macro to save current read-only model to "Wor Reply with quote

What about using SolidWorks Explorer?

Best Regards,
Devon T. Sowell
www.3-ddesignsolutions.com


"cadguru" <nospam_cadguru@gte.net> wrote in message
news:YpudnSZYRcgJieTeRVn-hA@comcast.com...
Quote:
So you are trying to emulate what PDM/Works will do on a check out?

Cadguru

"SW Monkey" <google311.50.spydermonkey@spamgourmet.com> wrote in message
news:1132006594.013088.251650@f14g2000cwb.googlegroups.com...
Im trying to get a macro that after opening a model from our read-only
vault, it saves the model into my "work" directory. I also want it to
save the drawing that is associated to it. Our drawings have the same
filename (minus extension) as the part/assy model.

Does anyone have something like this already. Im doing some
experimenting on having a manual file management system (thinking about
getting rid of our current PDM system).




Back to top
SW Monkey
Guest





Posted: Tue Nov 15, 2005 5:10 pm    Post subject: Re: Req help : macro to save current read-only model to "Wor Reply with quote

Sure, but without the PDM system :P We currently use Smarteam, and we
want to get rid of it.
Back to top
SW Monkey
Guest





Posted: Tue Nov 15, 2005 5:10 pm    Post subject: Re: Req help : macro to save current read-only model to "Wor Reply with quote

Devon, I want to do this inside of SolidWorks, with a macro.
Back to top
Tony
Guest





Posted: Thu Nov 17, 2005 7:39 am    Post subject: Re: Req help : macro to save current read-only model to "Wor Reply with quote

I use this technique to copy a model template and it's related drawing to a
local PC, update the model with new dimensions and save the revised model
and document to new names.

The technique is to use WSH to get a reference to both files. Set the
original file attributes to "normal" before copying (not read only), copy
the files to the local PC, change the attributes of the original files back
to read only. Now using Solidworks API set references to both the model and
drawing files using the WSH references. Open the files using Solidworks
object.opendoc6() , modify as needed, rebuild and do a save as
object.saveas4( ) for the model and then the drawing. Delete the copied
files (saveas replaced obsolete them). Done.

Hope this helps

Tony

"SW Monkey" <google311.50.spydermonkey@spamgourmet.com> wrote in message
news:1132006594.013088.251650@f14g2000cwb.googlegroups.com...
Quote:
Im trying to get a macro that after opening a model from our read-only
vault, it saves the model into my "work" directory. I also want it to
save the drawing that is associated to it. Our drawings have the same
filename (minus extension) as the part/assy model.

Does anyone have something like this already. Im doing some
experimenting on having a manual file management system (thinking about
getting rid of our current PDM system).
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> SolidWorks All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Contact Us
Powered by phpBB