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
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