Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Dec 31, 2018
Messages
16
Location
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top