Retrieve Electrode EDM Holder Name

Retrieve Electrode EDM Holder Name

jake.montgomery
Enthusiast Enthusiast
782 Views
5 Replies
Message 1 of 6

Retrieve Electrode EDM Holder Name

jake.montgomery
Enthusiast
Enthusiast

I am looking to retrieve the name of the EDM holder that is attached to a given electrode using API. I was able to do this in standard macro code with the following command...

 

STRING $EdmHolder = electrode[$ElectrodeName].holder.edm

 

Can the same thing be done using API?

 

 

0 Likes
Accepted solutions (1)
783 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable

I don't see a property or method in the PSElectrode Class that will give you the holder name. the full documentation is on your local drive under this directory:

 

C:\Program Files\Autodesk\PowerShape and PowerMill API 0.7.66\sys\exec64 

 

You can get the electrode's heights, angles, name, quantities etc. but i don't see anything showing a relationship to a trode's holder.

0 Likes
Message 3 of 6

jake.montgomery
Enthusiast
Enthusiast

nbaranowski, thank you for your response. 

 

AutoDesk, Can a wish be created to add the holder associations to the API?


Thank you,

 

Jacob Montgomery

Message 4 of 6

roman.pribylM3QVM
Explorer
Explorer

AutoDesk, please I need this holder associations,too.


Thank you,

 

Roman Přibyl

0 Likes
Message 5 of 6

luke.edwards.autodesk
Community Manager
Community Manager
Accepted solution

Please can you try the following:

var name = powerShape.ExecuteEx("Electrode[\"" + electrode.Name +"\"].Base")

Does this give the name that you are after?


Luke Edwards
Consulting Services Manager
0 Likes
Message 6 of 6

roman.pribylM3QVM
Explorer
Explorer

It´s works thank you.

0 Likes