Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I find an operation by name in a sheet metal model.

Status
Not open for further replies.

mfspini

Mechanical
Feb 29, 2008
7
Hi,

I programing in Excel using VBA. I programed a rutine that opens a solid edge file .psm (taking the file name and path fron a cell) and then save as dxf.
But before the save as command I would like to suppress some operation whichs name start whit "Suppress".
I don't know how can I call all the operations to see if the name starts whith "Suppress" without knowing which kind of operation I have to suppress.
For example:

Set objApp = GetObject(, "SolidEdge.Application")
Set objDoc = Nothing
Set objDoc = objApp.Documents.Open(CStr(Trim(celda.Value)))
Set objOp = objDoc.Models.Item(1)

In this object I have all the operations (lots of operation, even no used operations) but I looks for an operation that name starts with "Suppress".
I can see operation by operation if the name matchs but to do this I have to write a lots of programs lines. Is there another way?

objDoc.Models.Item(1).Chanfers.Name = "Suppress"

Regards,
MS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor