Can weld symbols be selected and deleted?

Can weld symbols be selected and deleted?

mslosar
Advisor Advisor
620 Views
3 Replies
Message 1 of 4

Can weld symbols be selected and deleted?

mslosar
Advisor
Advisor

I've read here they're not enabled in the API, but i'm hoping that means their internals and controlling them not so much simply selecting and moving or deleting.

 

Just looking for a fairly definitive answer to pass along to the powers that be here.

 

Thanks

0 Likes
621 Views
3 Replies
Replies (3)
Message 2 of 4

philippe.leefsma
Alumni
Alumni

The welding symbols are not exposed to the API, which means you have no control over them unfortunately.

 

All you can do is to simulate user inputs by selecting the symbol node in the browser with BrowserNode.DoSelect and invoke the context menu commands edit or delete, which internal names are:

 

"EditWeldingSymbolCtxCmd"

"AppDeleteCmd"

 

You can execute a command using:

 

ThisApplication.CommandManager.ControlDefinitions.item("Cmd_InternalName").Execute

Here is an example of selecting nodes using the API:

 

http://adndevblog.typepad.com/manufacturing/2012/09/parse-browsernodes-for-a-specified-node-and-perf...

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 4

mslosar
Advisor
Advisor
Thank you, that's pretty much what I needed to know.

I'll be getting into that blog article later today!

Mike
0 Likes
Message 4 of 4

mslosar
Advisor
Advisor

Reading that blog it seems to me that you'd have to somehow go to each view on a sheet and run the equivalent of TestSelectNode() on it. Problem then seems to be that there's a command for invoking the weld symbol editor and one for AppDelete which i'm not overly sure what that equates to. Regardless, it doesnt' seem to be delete weld symbol.

 

Doesn't seem to be a method to select weld symbol objects, although you can do that with filters inside inventor itself.

 

IF three's not a way to use this to find all the weld symbols on a sheet and delete them, it's not going to help.

 

Then again, maybe i'm missing somethin...

0 Likes