×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Help with macro make a million dxfs

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 don't know.
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

(OP)
These are simple 2.5D parts. Basically gusset plates, bearing plates, and other such simple shapes. There's just a lot of them.

RE: Help with macro make a million dxfs

From my experience, we did something similar.
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

This is where you bring an intern in to help with a project like this.... smile

Cheers,

Anna Wood
SW2014 SP2, Windows 7 x64

RE: Help with macro make a million dxfs

This looks like something I could probably help you out with, although these days I've mostly moved my macro-writing over from a pro-bono structure to a fee-based business model... Makes the wife a bit more amenable to me coding away from my real job... smile

-handleman, CSWP (The new, easy test)

RE: Help with macro make a million dxfs

(OP)
Thanks for the reply's all. I talked to my boss and we're looking at hiring it out, so I'm just writing a spec now. Thanks again.

Handleman, PM me your info and I'll try to get you on the distribution list.

RE: Help with macro make a million dxfs

I would PM you... However, that capability is not available on this forum.bigcheeks

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

hey handleman, any chance that you coud explain about a couple macros (not so easy ones preferrably) that you wrote, what do they to (so that i and others could have a couple of nice starter projects)? no need to paste the code, just a description.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources