Possibility of maccro

Hello

Not knowing anything about macro and starting to look into the subject, I wondered what the limits of the maccros were?

Are they limited to Solidworks or can other Dassault Système products be included in the maccros?

Let me explain: If I want to create a maccro that saves my file in .sat and then opens this .sat in Draftsight with the /acisin command and then saves it again in .dwg, can it work or is it beyond the capabilities of a maccro?

Another example: since "save as pdf" doesn't work very well for me and I end up with a lot of graphic bugs, I print my MEPs with PDFcreator. Is it possible to print under pdf creator using a maccro?

Cdt

Joss

Hello

A little reading: http://didier-gonard.developpez.com/tutoriels/office/vba-qu-est-que-c-est/

Otherwise

Describe exactly what you want to do. Why reopen .sat with draftsight and register it in dwg? Creating dwg under SW works very well.

The recording in pdf as well. Are you reopening your mep with PDF Creator?

4 Likes

Hello

With DraftSight, this will probably be possible with the pro version, because the standard version does not support a LISP routine (the language of SolidWorks is the VBA).

AutoCAD can use VBA too, so should be able to do that. But it will be easier to do it in 2 steps: a macro in SolidWorks, one in AutoCAD (but probably not impossible in a single program with VB.NET).

In fact, VBA stands for Visual Basic for Application.

It is also used for the entire Microsoft Office suite (Excel, Outlook, etc.), and many other software.

 

2 Likes

For your second problem, you can start a print by choosing the printer with a macro, so Solidworks can create the PDF with PDFCreator.

So, @remrem, well actually yes, solidworks can record in .dwg but not in 3D .dwg!! you have to go through an ACIS format and draftsight to be able to reuse the 3D in autocad, hence the maccro I'm interested in;)

And @PL, is it possible to print with PDF Creator? I took this example because to print with pdf creator, before choosing the location of the file, a PDF creator window opens and you have to click on ok to then switch to the windows browser to choose your file and I was wondering if a macro could handle this...

PS: thank you for the remrem link and for the explanation of @PL ;)

Thank you remrem for the link explaining the vba!

1 Like

Try to save a macro when you print a pdf with PDFCreator.

Then you post it on the thread, because not having PDFCreator (we use Adobe Acrobat) I can't see what the code can look like.

Then we discuss it to see what exactly you want...