Layers and selection

Discuss and ask questions about CAD DLL (CAD Image DLL, CAD Importer DLL).

Moderators: SDS, support, admin

Post Reply
zebiya
Posts: 27
Joined: 14 Feb 2007, 22:45
Location: Spain

Layers and selection

Post by zebiya » 14 Feb 2007, 22:48

Hi

With cadimporter.dll demo in VB I can see all entities from my dwgs Ñ—how can I select them using the mouse?

Another question: with dxfexport.dll Ñ—how can I make different layers in my dxf output?

Thanks in advance for your help

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

Post by support » 21 Feb 2007, 09:20

Hello!

<blockquote id="quote"><font size="2" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">With cadimporter.dll demo in VB I can see all entities from my dwgs Ñ—how can I select them using the mouse?<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">
This functionality is not implemented in <b>CAD Importer DLL</b> and we have no such plans for the moment.
<blockquote id="quote"><font size="2" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">Another question: with dxfexport.dll Ñ—how can I make different layers in my dxf output?<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">
This functionality is not implemented in <b>DXF Exporter DLL</b> and we have no such plans for the moment.

Please contact us to info@cadsofttools.com in needs of solving urgent tasks.

Sergey.

Please post questions to the forum or write to support@cadsofttools.com

zebiya
Posts: 27
Joined: 14 Feb 2007, 22:45
Location: Spain

Post by zebiya » 21 Feb 2007, 21:03

I will remake my first question: When using cadimporter.dll Ñ—how can i know which entity is the nearest to the mouse cursor? I am sure there is a function for that purpose.

Regarding my second question, I simply cannot believe that it is IMPOSSIBLE for me to make a dxf with several layers using your software. Ñ—Is this (those) features implemented in .NET or VCL?

I kindly ask you to answer a bit more quickly than the other message. I really need your support to be good

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

Post by support » 22 Feb 2007, 10:12

Hello!

Sorry for the misunderstanding.
We would like you to pay attention on <b>CAD Import .NET</b>: http://www.cadsofttools.com/download/cadimportnet.zip

Extended version of this library allows:
<ul><li>selecting an entity of the <b>CAD image</b> at the specified point - CADImage.SelectExt Method.</li>
<li>creating new layers:

Code: Select all

<font color="blue">private void</font id="blue"> btnAddLayer_Click(<font color="blue">object</font id="blue"> sender, System.EventArgs e)
{
	CADLayer lay1 = <font color="blue">new</font id="blue"> CADLayer();
	lay1.Name = "MyLayer";
	lay1.Color = Color.RoyalBlue;
	lay1.Visibility = <font color="blue">true</font id="blue">;
	<font color="blue">this</font id="blue">.FCADImage.Converter.Layers.Add(lay1);
	<font color="blue">this</font id="blue">.FCADImage.Converter.OnCreate(lay1);
	<font color="blue">this</font id="blue">.FCADImage.Converter.Loads(lay1);

	//Add circle
	DPoint pt1 = <font color="blue">this</font id="blue">.GetRealPointUsingsgImagePoint(100, 100);
	DPoint pt2 = <font color="blue">this</font id="blue">.GetRealPointUsingsgImagePoint(200, 200);		
	double dX = (pt2.X - pt1.X) / 2;
	double dY = (pt2.Y - pt1.Y) / 2;
	CADEllipse ell = <font color="blue">new</font id="blue"> CADEllipse();
	ell.Point = <font color="blue">new</font id="blue"> DPoint(pt1.X + dX, pt1.Y + dY, 0);
	ell.RadPt = <font color="blue">new</font id="blue"> DPoint((pt2.X - pt1.X) / 2, (pt2.Y - pt2.Y) / 2, 0);
	ell.Ratio = dY / dX;
	ell.Color = Color.Aqua;
	ell.Layer = lay1;
	ell.Loaded(<font color="blue">this</font id="blue">.FCADImage.Converter);

	<font color="blue">this</font id="blue">.FCADImage.CurrentLayout.Entities.Add(ell);
	<font color="blue">this</font id="blue">.FCADImage.Converter.OnCreate(ell);

	SaveAsDXF("c:\\NewLayer.dxf");		
}
</li></ul>

Example above is based on Viewer demo. Please find it in the ..\sources\Viewer\.. of the package.

To get extended version please write us to info@cadsofttools.com with a reference to this topic.

Sergey.

Please post questions to the forum or write to support@cadsofttools.com

zebiya
Posts: 27
Joined: 14 Feb 2007, 22:45
Location: Spain

Post by zebiya » 24 Feb 2007, 21:56

Thanks a lot for your quick answer, Sergey.

So, as I have understood, these features you commented are not implemented in cadimporter.dll nor in dxfexport.dll, and are only available in .NET Ñ—is this correct?

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

Post by support » 26 Feb 2007, 09:46

Hello Zebiya!

Yes, it is.

<b>CAD Import .NET</b> (http://www.cadsofttools.com/download/cadimportnet.zip) allows selecting entities by mouse and creating new layers.
<br />
<b>CAD Importer DLL</b> (http://www.cadsofttools.com/download/cadimporterdll.zip) does not allow selecting entities by mouse.
<br />
<b>DXF Exporter DLL</b> (http://www.cadsofttools.com/download/dxfexportdll.zip) does not allow creating new layers.
<br />
Sergey.

Please post questions to the forum or write to support@cadsofttools.com

Post Reply