cancel
Showing results for 
Search instead for 
Did you mean: 

Process Simulate API get Object Type

Creator
Creator

Hello everyone,

 

i have a small issue !

 

How can i get of a selected object the object type like "Fixture" or "Gripper" Or "ToolPrototype" like it is in the component definition.

I don't want a typ like ITXRobot,ITXGun, ITXComponent.

This i could get with

TxObjectList Selobjs = TxApplication.ActiveSelection.GetItems();

if (Selobjs[0] is ITxRobot) ...

 

Thanks in advance

5 REPLIES

Re: Process Simulate API get Object Type

Siemens Phenom Siemens Phenom
Siemens Phenom

look at the PlanningType representation of the object

Re: Process Simulate API get Object Type

Creator
Creator

HI GillesVelay,

 

i think you mean the public enum TxPlanningObjectType

but that is not what i want.

 

I want the typ you can choose in the definement of the object type e.g. clamp, ToolPrototyp, Gripper, Fixture, Human, Robot, Robot_equipment,...

 

Thanks in advance

Re: Process Simulate API get Object Type

Siemens Phenom Siemens Phenom
Siemens Phenom

This is what I had in mind. I do not know better solution:

TxEuOlpUtil (Debugging) - Microsoft Visual Studio (Administrator)_2015-12-11_09-46-29.jpg

Re: Process Simulate API get Object Type

Creator
Creator

Hello everyone,

 

what i am really looking for is to get the type that is in the tunedata.xml after the external id

e.g. <ExternalID>blablabla...</ExternalID></ProcessModelID><ProcessModelType><Type>Gripper</Type>

so here it is Gripper.

So i need a way to get directly this type or how can i get the path to the tunedata.xml

 

Thanks in advance

Re: Process Simulate API get Object Type

Creator
Creator

Hi everyone,

 

so i got a new topic for my problem :

https://community.plm.automation.siemens.com/t5/Tecnomatix-Robotics-Forum/NET-C-Get-prototype-name/m...

 But also here i have my problems !