Replacing a part in an assembly

Hi

I've been having issues with the replace command in solidedge. For some reason, it will not accept replacing a file with another file with the same name. This leads to me having to change the parts' name, replacing the file, and then switching it back.

 

So i was thinking i could program an addin that catches the event, and launches my custom replacing method.

 

The problem is, that when I catch the event, I don't know which part I should replace. All I get is the commandID of the action, but no other information. so I was wondering if there is any way to find out what part is currently selected in the assembly, so I could just reference that part when replacing.

 

Thanks in advance,

Robert

 

Posted by: Robby Kendel
Post date: 12/5/2012 2:52:07 AM

1 REPLY

Replacing a part in an assembly

Well, look and read Solid Edge API and find the Occurrence.

 

Should be found from www.solidedge.com I think.

 

Maybe there could be one public method or public property, which should help you?

 

This is just a wild guess, but could public property Status help you to determine right Occurrence (part)?

 

Posted by: barbwire
Post date: 12/5/2012 5:22:16 AM