Getting started

Hi

I been tasked to create an add in or macro that takes the open draft file prints as a black and white PDF, renames it IE from H7701-01-A to 770101A and then saves to a specified folder on the local network.

Cant be that hard can it. :unsure:

 

I got this task as Iv done some VBA coding in MS Access.

So far Iv download Visual Studio 2012 Express and a copy of the Solid Edge Programmers Guide V15.

But now Im sort of stuck for what to do next, any pointers?

 

Thanks

 

Steve

 

Posted by: Steve Gardner
Post date: 8/2/2013 5:30:48 AM

3 REPLIES

Getting started

Hi Steve,

 

Funnily enough I'm working on something similar right now!!

 

You will need Solid Edge installing on your dev box if you haven't already.

 

The up to date .Net programmers guide is here:

http://m.plm.automation.siemens.com/en_us/Images/Solid_Edge_API_tcm1224-125829.pdf

 

And the help file for the API is here:

"C:\Program Files\Solid Edge ST5\SDK\sesdk.chm"

 

Take a look at the examples in the guide on how to open a draft file.

 

Saving as PDF is as easy as:

[code type=vbnet]dim strPDFPath as string = "C:\demo.pdf"

objDraft.SaveAs(strPDFPath)[/code]

 

Not sure about the Black and White element, I would assume this is somewhere in the Printer settings for "Solid Edge Velocity PS Printer 2.0".

 

If you need more info just post here, this is a really great site with some very knowledgeable people, they've helped me out loads over the years!!

 

Cheers,

 

Alex.

 

Posted by: Alex Lush
Post date: 8/2/2013 6:01:42 AM

Getting started

.NET addin examples for Solid Edge can be found in the [url=http://solidedgesamples.codeplex.com]Samples for Solid Edge[/url] project on CodePlex. There will be an updated release this weekend with new addin examples but there are at least two examples in the current release.

 

Posted by: Jason Newell
Post date: 8/2/2013 6:35:01 AM

Getting started

Steve,

 

You may be better off writing a macro first. It's not quite as complicated as an add-in.

 

Posted by: Terry Tyson
Post date: 8/6/2013 1:18:16 PM