Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Catia environment problem

Status
Not open for further replies.

Smileyoer

Mechanical
Dec 31, 2018
16
HU
Hello,

I have an issue with Catia programming.
I do a lot calculation with a macro, point coordinates, angles between lines.

My problem is that with one Catia Environment it works properly.
But with another it throws an Error.
The error is Accessviolationexception

I try to measure an angle between two lines:

Dim getAngle
Dim Measureangle As measurable

Measureangle=SPAwork.Getmeasurable(A)
getAngle=Measureangle.GetAnglebetween(B) ---- this throws the error

Do you have any idea why?

Thanks ín advance!
 
Replies continue below

Recommended for you

Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top