Sep 29, 2002, 1:35pm
Hi all,
I'm writing an application that should work like the standard AW Build
Inspector.
It does the following:
When a new object is added (or an existing one is changed) it checks for the
object's coordinates and size (reading object registry) and verify that the
object is completely inside the area assigned to that particular user.
Now, my problem is that I would like the object be returned to the initial
position (just like Build Inspector) if it gets positioned outside allowed
area. But I cannot see how to obtain old x,y and z coordinates since the
event AW_EVENT_OBJECT_DELETE (called when an existing object changes
position) doesn't set any old coordinates.
Any hint?
Thanks, Ivan
Sep 29, 2002, 5:17pm
Use the AwObject type you should collect when the object is queried, find its number and you can get the X,. Y, Z from that.
- Mark
[View Quote]"ivano" <ivan at iuav.it> wrote in message news:3d971db6 at server1.Activeworlds.com...
> Hi all,
>
> I'm writing an application that should work like the standard AW Build
> Inspector.
>
> It does the following:
> When a new object is added (or an existing one is changed) it checks for the
> object's coordinates and size (reading object registry) and verify that the
> object is completely inside the area assigned to that particular user.
>
> Now, my problem is that I would like the object be returned to the initial
> position (just like Build Inspector) if it gets positioned outside allowed
> area. But I cannot see how to obtain old x,y and z coordinates since the
> event AW_EVENT_OBJECT_DELETE (called when an existing object changes
> position) doesn't set any old coordinates.
>
> Any hint?
>
> Thanks, Ivan
>
>
|
Sep 29, 2002, 6:14pm
aw_object_select() might help. I think it sets the position variables.
[View Quote]ivano wrote:
>
> Hi all,
>
> I'm writing an application that should work like the standard AW Build
> Inspector.
>
> It does the following:
> When a new object is added (or an existing one is changed) it checks for the
> object's coordinates and size (reading object registry) and verify that the
> object is completely inside the area assigned to that particular user.
>
> Now, my problem is that I would like the object be returned to the initial
> position (just like Build Inspector) if it gets positioned outside allowed
> area. But I cannot see how to obtain old x,y and z coordinates since the
> event AW_EVENT_OBJECT_DELETE (called when an existing object changes
> position) doesn't set any old coordinates.
>
> Any hint?
>
> Thanks, Ivan
|