Cancel
Showing results for 
Search instead for 
Did you mean: 

Re: .NET API (C#) creating a pick listener

Legend
Legend

I work with the Tx Ui controls since 11.1TR3. and VS 2013

 

I just added a new register card.

Right click on that new register card and load or select elements.

In the .net framework-component tab - search for the "tecnomatix.engineering.ui.dll

and that it.

 

 

Re: .NET API (C#) creating a pick listener

Valued Contributor
Valued Contributor
Sorry to ask, but what exactly do you mean with a ``register card''?

Re: .NET API (C#) creating a pick listener

Legend
Legend

pic1.jpg

 

pic2.jpg

 

pic3.jpg

Re: .NET API (C#) creating a pick listener

Valued Contributor
Valued Contributor

Allright, I think this was a misunderstanding between the english and german version. In english a regsitry card is called a "tab". I managed to load the Ui.dll, but that is giving me this missing Lib error.

 

I guess this is the 64 bit VS 32 bit problem as Gilles described.

Re: .NET API (C#) creating a pick listener

Legend
Legend

sorry for that.

 

So, then you need to update PS to V12.1

 

Good luck for the next trial with V12.1

Re: .NET API (C#) creating a pick listener

Valued Contributor
Valued Contributor

Update: I have installed PS V12.1 64 bit. Still getting the same error, missing AxNFCONTROLSLib, because its still not in the 64 bit installation folder.

 

I''m working with visual studio C# express 2010. Do you have any suggestions how to solve this problem? Would visual studio 2013 make a difference?

 

Best Regards,

 

Pim

Re: .NET API (C#) creating a pick listener

Valued Contributor
Valued Contributor
Im trying to get the locations of a Pick and Place operation (incl Via locations), I managed to select a robot through my C# application. But I'm stuck on finding a method that gets these locations out of PS.

Does anybody know by which class I can get to this data?

Re: .NET API (C#) creating a pick listener

Legend
Legend

here an example for a robot.

I hope this is what you are looking for!

 

TxRobot robot = new TxRobot();
TxTransformation robLocationRelToWF = new TxTransformation();
TxTransformation robLocationAbsLocation = new TxTransformation();

robLocationRelToWF = robot.LocationRelativeToWorkingFrame;
robLocationAbsLocation = robot.AbsoluteLocation;

 

if you want to get the x, y, z .... values of the location, use something like this:

 

var robLocationRelToWF_X = robot.LocationRelativeToWorkingFrame.Translation.X;

Re: .NET API (C#) creating a pick listener

Valued Contributor
Valued Contributor

Thanks a lot Patrick!

 

I managed to use some of the functions of the UI toolbox. There is a TxObjEditBoxCtrl field in it, this way I can select my pick/place/via locations. Now, I need to get the selected object into a class that is using ``Locatable'' functions. Then I can use your solution to get the x,y,z out. 

 

UPDATE: I'm getting the correct coordinates now! I used the ObjEditBoxCtrl.Object field of the UI toolbox and casted it to a ITxLocatableObject. 

 

 

Greetz

 

Pim

Re: .NET API (C#) creating a pick listener

Legend
Legend
Try to use TxLocateableObject...