Cancel
Showing results for 
Search instead for 
Did you mean: 

Project txWeldLocation

Pioneer
Pioneer

hello,

 

I can not project txWeldLocation,

following code throw "Error in application" exception:

 

TxWeldLocationOperation notProjected = txObjEditBoxCtrl_orginal.Object as TxWeldLocationOperation;

 notProjected.Project(notProjected.WeldPoint.LeadingPart as ITxLocatableObject, false );

 

I make sure that part and mfg are displayed. But it does not help

9 REPLIES

Re: Project txWeldLocation

Phenom
Phenom

Hello @Terror_Error

 

I've never used this method, but a few things to check:

 

1 - Is the WeldPoint assigned to a part? (Check that 'notProjected.WeldPoint.LeadingPart' is not a null object)

2 - If you change 'projectToApproximation' property to true, do you get the same error?

 

Regards,

Re: Project txWeldLocation

Pioneer
Pioneer
Answers:
1. yes it is assigned to part.
2. changing 'projectToApproximation' on false does not help.

Regards

Re: Project txWeldLocation

Phenom
Phenom

@Terror_Error

 

Ok, and can you manually project the location (using the software projection command)?

Re: Project txWeldLocation

Pioneer
Pioneer

Yes, projection by using command works without any problems.

 

Re: Project txWeldLocation

Phenom
Phenom

Can you send the exception returned when debugging the command? I implemented something really simple and I'm not being able to reproduce the error (unless I force some impossible conditions, like trying to project a non-projectable object or trying to project a location without a part to project on).

 

Regards 

Re: Project txWeldLocation

Pioneer
Pioneer

Hi,

 

The exception is "error in application" so I am not able to figure out where is the problem, please take a look on screen.

 

Right now I found that the function txWeldLocation.Project() works sometimes.

But I also found a way to generate error:
1. add Mfg to weld path.

2. project MFG.

3. delate projection (leave MFG in path but not projected).

4. Now you are not able to project MFG by command and also by API.

 

I tested it on two cells and get the same result.

 

 

Re: Project txWeldLocation

Phenom
Phenom

Hi!

 

By weld path do you mean weld operation? Because I still can't reproduce the error. Are you using connected or disconnected Process Simulate (and which version)?

 

Although, looks that is not an error from implementation itself, but more likely a software behavior that is limiting it. Maybe someone from Siemens can help on a fix. 

 

Regards,

Re: Project txWeldLocation

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi Terror_Error,

 

Can you send the data as psz, so we can debug it and check what is the issue.

 

Best Regard,

DianaG

Re: Project txWeldLocation

Pioneer
Pioneer

Hi DianaG,

 

Where should I send it?  Please contact me on prive.

 

BR,