I am new to .NET and Solid Edge. I want to create a program that allows for the user to pick a SE file and then generates an exploded Bill of Materials with custom Metadata in Excel. I found an example, but when I pick the file I get and error this code returns NULL fo SEPath.
I would start by downloading the 2005 Solid Edge Summit .NET examples. I'm pretty sure Jason has the download link on this site to it somewhere. The first thing you should learn how to do is just load solid edge through programming. The easiest way is to use Jason's MarshalEx.vb file. I use that along with this function I wrote to load solid edge in all my programs:
' *** - LOADEDGE() - Initiates Solid Edge
Public Function LoadEdge(ByVal display As Boolean)
Secondly I should warn you about programming with excel, it will cause you much grief if you are trying to load a sheet that is linked to a solid edge model. No matter what you cannot completely eliminate excel from memory while your program is running should you need to. As a result linked models will hickup when opened with the program. If you want to know how to manipulate cell data in excel I can throw together an example for you. I actually decided to just make a new solid edge draft file and make it look like excel, was much easier especially for BOM updating. It's very easy for updating property data as well if you keep it within solid edge.
Posted by: John Slipec Post date: 11/22/2005 7:50:08 AM