AnyCAD 3D Controls (turn)

In WinForm it can be easily integrated AnyCAD.Net three-dimensional control, just to complete the following section.

 

First, add the DLL assembly

AnyCAD.Foundation.Net.dll

AnyCAD.Presentation.Net.dll

AnyCAD.Exchange.Net.dll

 

Second, initialize control

1. Start by creating a form

2. Place a Panel on the form used to place the 3D Controls

3. initialize control

 

The complete code is as follows:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
   public partial class MainForm : Form
   {
       private RenderWindow3d m_RenderView = null ;
 
       public AnyCAD.Presentation.RenderWindow3d RenderView
       {
           get { return m_RenderView; }
           set { m_RenderView = value; }
       }
 
       public MainForm()
       {
           InitializeComponent();
 
           // Add 3D RenderView to container.
           var container = this .splitContainer1.Panel2;
 
           m_RenderView = new RenderWindow3d();
 
           m_RenderView.Size = container.ClientSize;
           m_RenderView.Dock = System.Windows.Forms.DockStyle.Fill;
           container.Controls.Add(m_RenderView);
       }
}

  

Compile and run, the effect is as follows:

 

Third, pay attention

1. Make sure to copy the dll sdk directory program to exe files.

2. Please pay attention to the SDK Update: http: //pan.baidu.com/share/home uk = 3474438112?

 

https://www.cnblogs.com/anycad/p/4888012.html

Guess you like

Origin www.cnblogs.com/xihong2014/p/11022838.html