How to create a viewport control for a top view associated with rhino

I searched for relevant information about eto.forms, but I couldn’t achieve it, please help me

1 Like

Hi @kai_gift, try this example script: ETO_ViewportControl.py (1.2 KB)

_
c.

thanks lots.

I have studied this code, but I don’t quite understand the main usage of the vpc attribute, and I hope you can help me. Many thanks

Hi @kai_gift, the self.vpc is the Eto control, you can access it’s Viewport property which basically has the features listed for RhinoViewport

What do you need help with ?

_
c.

My dear friend,thanks a lot . can you help me how can I do this ?


can I use eto.forms tools to create this beatuiful dialog ?

Hi @kai_gift, you might start with simple examples first and learn about controls and layouts:

good luck :smile:

_
c.

thanks my dear teacher。Teacher, there are 5 styles in the layouts part of the URL you gave me, and only one is introduced in the example, and there are no URLs for the guidelines of the other four styles. Can you give me some help?

Hi @kai_gift,

It is probably asumed that once you understood one of these layout examples, you’re able to grasp all others on your own. Best is to start with simple layouts using DynamicLayout. Note that you can nest multiple dynamic layouts within each other to build more complex arrangements.

If you have a specific dialog layout in your mind you want to build, it might be helpful to draw it on paper first and then build the required contents one by one. This way you’ll probably learn most and can ask questions effectively.

_
c.

OK thanks so much