×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

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

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

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

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources