How to get a single object (TsgDXFInsert) from many 3D objects (STEP)

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

Post Reply
Mariusz_Unilink
Posts: 8
Joined: 28 Jan 2022, 15:35

How to get a single object (TsgDXFInsert) from many 3D objects (STEP)

Post by Mariusz_Unilink » 16 Mar 2022, 13:47

I have a question about a possibility to get a single 3D object (TsgDXFInsert*) by mouse click on Tsg3DDrawingNavigator.

Shortly - I have a drawing navigator (Tsg3DDrawingNavigator*) where are many 3D objects. All of them are displayed and all of them existing as inserts (TsgDXFInsert*). Every insert contains many single entities: triangles (TsgDXF3dFace*) and polylines (TsgDXFPolyline*). I can have an access to this insert via pointer (TsgDXFInsert*) kept in the memory. That's no problem.
But - how to get an access to some object by mouse clicking (on the navigator)?
Maybe there are some methods which could return the pointer (TsgDXFInsert*) after mouse click from the navigator (Tsg3DDrawingNavigator)?
Another approach?

Thank you for any help!

Mariusz

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: How to get a single object (TsgDXFInsert) from many 3D objects (STEP)

Post by support » 16 Mar 2022, 16:18

Hi Mariusz,

This possibility is demonstrated in our demo project ...Delphi\Demos\3D. Please take a look at the Tsg3DDrawingNavigator.OnPickObject event.

Kind regards,
Svetlana
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support


Post Reply