Macros
Macros
(OP)
Anyone know if you can write macros in ST6?
I want to be able to create a PDF from a draft by collecting embedded properties, appending them to a file name, then dropping it into a known file location. For example: my draft is called [Part Number as File Name].dft. I want to save the PDF to be [Part Number as File Name]-[%Revision|G]-[%Description|G].pdf, saved to C:/Some Folder Name Which Is Relevant.
Once this is done, I want to assign that macro to a user button so I can execute it with every draft.
If I can get that working, I can export to DXF, DWG, and maybe STEP as well in the same file naming convention.
Thanks!
I want to be able to create a PDF from a draft by collecting embedded properties, appending them to a file name, then dropping it into a known file location. For example: my draft is called [Part Number as File Name].dft. I want to save the PDF to be [Part Number as File Name]-[%Revision|G]-[%Description|G].pdf, saved to C:/Some Folder Name Which Is Relevant.
Once this is done, I want to assign that macro to a user button so I can execute it with every draft.
If I can get that working, I can export to DXF, DWG, and maybe STEP as well in the same file naming convention.
Thanks!





RE: Macros
--Scott
www.wertel.pro
RE: Macros
Thanks! I guess I'll work on coding that then.
RE: Macros
Ken G.
http://grundey.blogspot.com
Have you checked out the Solid Edge Community site?
http://community.plm.automation.siemens.com/t5/Sol...
RE: Macros
I was just wondering if Enginerd9 or anybody else has made any progress in creating a macro to create pdfs from Solid Edge?
Thanks in advance
RE: Macros
Thanks!
Experience: accumulated knowledge over time.
Talent: the ability to use experience.
Which is more valuable?
RE: Macros
I've had to work on this at home in my "spare time" because I don't have access to Visual Studio at work. It's still in the works though... I'll keep you posted.
Experience: accumulated knowledge over time.
Talent: the ability to use experience.
Which is more valuable?
RE: Macros
Good luck with your efforts and I'd love to hear how you get on...
RE: Macros
As it happens I'm doing the same thing at work, but unfortunately haven't got time to finish it at the moment - maybe in a few weeks time.
My advise is don't give up - I think this is a good starting point for learning to create your own macros. Chapter 10 of the .Net Programmers Guide for Solid Edge (I think you can get that through Solid Edge Help) relates to file properties.
bc.
Core i5-3570 @3.4GHz , 8GB RAM
Quadro FX4600. W7 Pro 64-bit.
RE: Macros
I found the batch.vbproj file but am unableto open it :(
Do you know of any free software that would be able to open and edit it?
Thanks in advance
RE: Macros
Experience: accumulated knowledge over time.
Talent: the ability to use experience.
Which is more valuable?
RE: Macros
They are not just demo versions.
bc.
Core i5-3570 @3.4GHz , 8GB RAM
Quadro FX4600. W7 Pro 64-bit.