Use of CADimport editor control API functions in background

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
Khyati
Posts: 34
Joined: 08 Feb 2011, 08:55

Use of CADimport editor control API functions in background

Post by Khyati » 08 Feb 2011, 09:16

I want to use only black gridboard / canvas(cad picture box), as in CADimport editor.
But i do not want to use any of its visible controls, shown on editor window.

with the help of cadimport editor control methods & api functions, i want to develop a new drawing board for custom application.
I want to draw points, lines, polylines etc. shapes and edit them also, but not straight away as in ABViewer GUI.
My software is going to be used as drawing software for a further application.
For my user, it is required to have regulated drawing tools and fully free as in GUI.

I am using Delphi Prism (.Net language running in Microsoft Visual Studio 2010).
cadimport could be integrated in it.
But it included as an editor, it is not giving control to developer/programmer.

How can i move ahead?
Any suggestion?

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

Re: Use of CADimport editor control API functions in backgro

Post by support » 08 Feb 2011, 14:11

Hello.
CADImport.CADEditorControl class provides functional buttons, TreeView and PropertyGrid windows. You can either use CADPictureBox control that doesn't include all these elements or switch them off in CADEditorControl:

Code: Select all

            cadEditorControl.EntityPropertyGridVisible = false;
            cadEditorControl.EntityTreeVisible = false;
            cadEditorControl.ToolsPanelVisible = false;
Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Khyati
Posts: 34
Joined: 08 Feb 2011, 08:55

Re: Use of CADimport editor control API functions in backgro

Post by Khyati » 09 Feb 2011, 03:58

Hello,
Thanks for your reply.

I tried that.
It gives error of unknown identifier for cadEditorControl.
I think there is some initialization or including of library is missing.

My program can recognize CADImport.CADImportControls.CADEditorControl.
But then if i wrote following, it gives error:
CADEditorControl.EntityPropertyGridVisible = false;
CADEditorControl.EntityTreeVisible = false;
CADEditorControl.ToolsPanelVisible = false;

I am using Delphi Prism (.Net language running of Microsoft Visual Studio 2010).

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

Re: Use of CADimport editor control API functions in backgro

Post by support » 09 Feb 2011, 13:33

Hello.
My program can recognize CADImport.CADImportControls.CADEditorControl.
But then if i wrote following, it gives error:
CADEditorControl.EntityPropertyGridVisible = false;
CADEditorControl.EntityTreeVisible = false;
CADEditorControl.ToolsPanelVisible = false;
CADEditorControl is the class name. You must create object of the class to access any properties. For example the code from our demo:

Code: Select all

	public class MainForm : System.Windows.Forms.Form
	{	
		private CADImport.CADImportControls.CADEditorControl cadEditorControl;
                ...
		
		private void InitializeComponent()
		{
			this.cadEditorControl = new CADImport.CADImportControls.CADEditorControl();
			...
		}

		cadEditorControl.EntityPropertyGridVisible = false;		
		...
	}
Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply