Hello ALL ,
I would like to know that, can we save each configuration as a individual part file.
for ex. if a part has total five configurations, can each configuration be saved as seperate part ( means total 5 parts).
i attached sample part also.
Hello ALL ,
I would like to know that, can we save each configuration as a individual part file.
for ex. if a part has total five configurations, can each configuration be saved as seperate part ( means total 5 parts).
i attached sample part also.
DocExport by Lenny: Assists user in exporting selected SolidWorks model configurations or SolidWorks drawing sheets to different file types. This is useful when you need to separate many configurations into individual files of another file type for a vendor to use/reference.
ConfigRipper by Jeff: Copies all of a model's configurations to their own individual files. The new files will have the same name as their source configuration in the original model.
Wayne,
I got this too. The trick is to hit ALT+TAB and cycle the active windows and bring the macro to the fore. The code was written in SW2003 apparently and in the absence of an updated version, this is most likely an incompatability issue with current OS & SW versions. Nevertheless, it still works a peach .
When I try to run ConfigRipper, i get an error message:
Run-time error '91':
Object variable or With block variable not set
I then click Debug and it goes to a line that reads:
"Part.DeleteDesignTable 'Delete design table if present"
Note: I do have a design table and (since i was having trouble with THAT) I have derived my configurations UNDER the default config.
Also, it will only make one part file named 'Default' with one config 'Default'
I have
SW Professional 2011 x64 Edition SP 4.0
Hello,
I'm quite new to SW and currently i'm running SW2013. When i'm trying to run ConfigRipper on my part with an designtable nothing happens. I have tried the docexport but and it works like a charm. But I want my files in native sldprt format, not in step or igs. If I try to step into the macro and run it, then it complains about
"The code in this projekt must be updated for use on 64-bit systems. PLease review and update Declare statements and then mark them with PtrSafe attributes".
My experience in VBA is equal to zero. any help would be much appreciated.
WIth kind regards.
/Stefan
Welcome to SolidWorks forums Phillip.
Download and extract either of the files mentioned in post above: https://forum.solidworks.com/message/189689#189689
Now open your file which you want to split and then Run the macro. These are programs that can be run via a button. Check the attached video (play in media player) to show you the step by step on the DocExport tool. Sorry for the quality and speed with the video.
Let us know if you need more details.
You might also find this post helpful for your future reference.
Hi Len,
Unfortunately there is a password set up for the checking into libraries in case those might be an issue. I got the same issue which I feel is more because of the folder browse codes for 64 bits. I've updated and tested the macro on SW2014 SP 4.0 on a part with 27 configurations and it worked perfect.
Hello Deepak,
I've been trying out ConfigRipper 2014 and it Works like a charm.
However, I have generated the master part and all its configurations out from a configuration table, and in that table I also feed in quite a bit of custom properties, (using an add-in named ToolWorks to manage it inside SolidWorks)
when I use config ripper the data is present afterwards, however its stored in configuration specific properties and I want it moved to custom properties.
manually I can open each file, open ToolWorks tab, close ToolWorks tab, and the data is then transferred to Custom properties.
I'm guessing I need some coding down between these lines and as far as I can grasp I might need get5 or getall:
"
Next k
Part.EditConfiguration3 ConfigNameMain, "Default", "", "", 0 'Rename leftover config to default
Part.ViewZoomtofit2 'Make part zoom to fit so icon looks good
Part.Save2 (True) 'Save newly modified part
Set Part = Nothing
"
I am a beginner at VBA and should be able to modify, rename and duplicate the code to maintain a modified Config Ripper macro afterwards.
Thanks in advance
Hi Deepak
I can only get that macro to delete all the config properties - not bad if it would move the others first
I found Re: Looking for a macro to moved Custom Properties from "CUSTOM" tab to "CONFIGURATION SPECIFIC" tab
to have the functions I need as well
however, it means opening each part after configripper and running macro and closing again.
I have used these two sendkeys as stand-alone macro and it Works as intended, but not when written into configripper, I don't know if it is too fast.
I tried modifying Configripper script with just simple Sendkeys - didn't work as hoped.
time is not crucial in this work but I can't find any time-delays for VBA-macro
"
Next k
Part.EditConfiguration3 ConfigNameMain, "Default", "", "", 0 'Rename leftover config to default
Part.ViewZoomtofit2 'Make part zoom to fit so icon looks good
SendKeys "w", True 'open ToolWorks
SendKeys "{enter}", True 'close Toolworks
Part.Save2 (True) 'Save newly modified part
Set Part = Nothing
"
Worked fine for me. Here are the codes I had used:
Dim swConfig As SldWorks.Configuration
Dim cusPropMgr As SldWorks.CustomPropertyManager
Dim vPropName As Variant
Dim vPropValue As Variant
Dim vPropType As Variant
Dim nNumProp As Long
Dim n As Long
Set swConfig = Part.GetActiveConfiguration
Set cusPropMgr = swConfig.CustomPropertyManager
nNumProp = swConfig.GetCustomProperties(vPropName, vPropValue, vPropType)
For n = 0 To nNumProp - 1
Part.AddCustomInfo2 vPropName(n), vPropType(n), vPropValue(n)
cusPropMgr.Delete2 vPropName(n)
Next n
Add them after this line:
Part.EditConfiguration3 ConfigNameMain, "Default", "", "", 0 'Rename leftover config to default
Hello. The ConfigRipper works as it shoud, but there is a one problem. The new parts that are made form configurations ar very large, for example if i have 20 configurations and the first part comes ouet like 180kb larg, the last one is about 3315kb, the solution that i have found is that if you save as this part it clears all the junk infiormation that have been aaded to the part that doesn't change the part if not there. The problem is that if I for example have like 100 parts or more, it's very inefficient to open each one of them and do save as. So Could some one be so kiend and think of a way to implement this save as function in to macro, so that the part would be in normal sizes.
DocExport by Lenny: Assists user in exporting selected SolidWorks model configurations or SolidWorks drawing sheets to different file types. This is useful when you need to separate many configurations into individual files of another file type for a vendor to use/reference.
ConfigRipper by Jeff: Copies all of a model's configurations to their own individual files. The new files will have the same name as their source configuration in the original model.