Help with macro make a million dxfs
Help with macro make a million dxfs
(OP)
I've got a stack of DDT requests sitting on my desk that's about 3 inches thick and was hoping for some help writing a macro to do the heavy lifting. I already have a macro that will go through a directory of parts and open them sequentially. I also have a macro to save an entire directory of drawings to DXF. What I need help with is the middle part. I need to have the macro select the largest surface of the part, then insert that view into a new drawing based on a defined template. Can that be done? Does anyone have any code snippets that could help? Thanks in advance.






RE: Help with macro make a million dxfs
I'm not sure how you could find the largest surface to make a view. Depending on the orientation of the part = orientation of the view.
It could pick an internal surface and give you a weird view.
Chris, CSWA
SolidWorks 13
ctopher's home
SolidWorks Legion
RE: Help with macro make a million dxfs
RE: Help with macro make a million dxfs
It turned out to be quicker for us to generate each 3D model and drawing from scratch.
Once the first one is made, a template was created, then 'save as' new name. The parts were replaced using SW Explorer.
Chris, CSWA
SolidWorks 13
ctopher's home
SolidWorks Legion
RE: Help with macro make a million dxfs
Cheers,
Anna Wood
SW2014 SP2, Windows 7 x64
RE: Help with macro make a million dxfs
-handleman, CSWP (The new, easy test)
RE: Help with macro make a million dxfs
Handleman, PM me your info and I'll try to get you on the distribution list.
RE: Help with macro make a million dxfs
engineerville is my spot on the gmail service though.
Hopefully that's clear enough for a human to decipher, but too complicated for a bot...
-handleman, CSWP (The new, easy test)
RE: Help with macro make a million dxfs