how to get the position of an entity?

1
Jemmie
5/19/2017 2:14 AM

I want to move the entity clicked by mouse in the screen,it seems there are not functions to get x/y/z of an entity in model.how to achieve that?

Wout
5/19/2017 10:51 AM

An entity does not have a position. Each entity has different coordinate properties. If you want to move an entity you can use the DxfEntity.TransformMe() method. See the documentation for details.

You can also try the prototype editor, which uses the SelectInteractor for selection and moving it around.

- Wout

Jemmie
5/20/2017 4:35 AM

I don't find the codes of using selectInteractor class in the EditExample....Can you give me the codes?:p Thanks!

Wout
5/20/2017 9:16 AM

Sorry, the WindowsApplication in the examples directory uses it. The CadEditControl is pretty much provided as is as a prototype, so the support for it is limited.

- Wout

Jemmie
5/22/2017 3:09 AM

:pThank you!

SnTick
10/18/2021 7:38 AM

Hi.

This is just what we a looking for, but when we try it out with our license it gives an error.
i believe that we have the CadLib prop license.
Is this licensed in another way or not at all?

1