CIMPLICITY Plant edition

A

Thread Starter

Avi

How do I make an object created using CIMEdit move along a pre-defined path either dependent on or independent of a particular point?

Thanks.
 
Y

Yosef Feigenbaum

I'm assuming that the standard movement animation is not good enough.

So...

If you have a function to determine the trajectory then all you have to do is feed the input of your function into a point or a screen variable. Then, using a periodic event calculate (using your function, of course) the new top/left positions of your object.

For example, let's say your object is called "MyObj". You'd access it's top/left properties from CimBasic (in a screen script) as follows:

CimGetScreen.Object.Objects.Item("MyObj").Top
CimGetScreen.Object.Objects.Item("MyObj").Left

Don't forget to do a screen refresh after you change either of the above.

CimGetScreen.Refresh False

If you have any questions, feel free to contact me.

Good Luck,

(8{)} ( .)
[email protected]
 
Top