Drawing 2D Rectangle

Technical discussions
Post Reply
Dino R
Posts: 4
Joined: Tue Jun 27, 2017 1:19 am

Drawing 2D Rectangle

Post by Dino R »

Hello
I am trying to find a function allowing me to draw a 2D Rectangle on the KCad control. Any such method available ?
I would appreciate any suggestion
Thank you
Dino

nickz
Site Admin
Posts: 236
Joined: Fri Jul 26, 2013 3:58 am

Re: Drawing 2D Rectangle

Post by nickz »

Hi Dino
The easiest way is probably to use overlays: http://www.dynoinsight.com/Help/Geom/View/Overlay.aspx see also the Overlay example
This kind of object by default is aligned to the screen, but its plane it can be moved/rotated

If you need a flat rectangle in 3D line strips are easy too: http://www.dynoinsight.com/Help/Geom/LineStrips.aspx

There is also a pure 2D mode as demonstrated by the TwoD sample. Select Help > Show Topic to see the relevant documentation

If you need to show it briefly, like for selection, without hassle of creating objects you could use ClientDraw event: http://www.dynoinsight.com/Help/KernCAD ... ClientDraw There are many examples in samples like Pick

Nick

Post Reply