🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Get coordinates of an imprinted point, or catch intersection error in Lua

User: "Pamela Markland"
Altair Community Member
Updated by Pamela Markland

I am using FEKO 2024.1, Legacy.

I would like to use Lua to do some extra processing on my model in CADFEKO. In a Lua script, I would like to "imprint" a point on my object (easily done), and then retrieve the coordinates of the imprinted point.   I can get these coordinates by clicking on the imprinted point in the UI, but I don't see any way to get them in Lua.

Alternately, in a Lua script, I would like to take the intersection of one object with another, and take different actions depending on whether the intersection operation is "successful" or not.  Doing the intersection in Lua is easy, but I can't find a way to come back to the Lua script when the intersection fails (produces no object) - FEKO just stops with an error message.  The usual Lua error handling (pcall) doesn't work.

A way to either get imprinted point coordinates or catch an intersection operation error in Lua would be greatly appreciated.

Thanks,

Pam   

Find more posts tagged with