switch on/off layer by code

If you have any comments or questions about our CADViewX, please do not hesitate to contact us at this forum

Moderators: admin, SDS, support

switch on/off layer by code

Postby alfons » 20 Jun 2007, 07:47

Hallo,
how can i switch layers on/off by code using Delphi 7 ?
alfons
 
Posts: 6
Joined: 19 Jun 2007, 19:22
Location: Germany

Postby support » 21 Jun 2007, 07:33

Hello!

Demo <b>Delphi</b> contains <b>unit</b> fLayers, where managing with layers is released. Calling <b>Layers</b> dialog is implemented by <b>btnLayers</b> SpeedButton. Please find in the demo the following lines:
Code: Select all
<b>procedure</b> TfmMain.btnLayersClick(Sender: TObject);
<b>begin
  if</b> FCADViewX.DXFImage <> <b>nil then
  begin</b>
    LayersDialogExecute(DXFImageSrv.DefaultInterface, FCADViewX);
    FCADViewX.RefreshAfterRotate;
  <b>end</b>;
<b>end</b>;


Demo <b>Delphi</b> is available in the ..\CADViewX\Demos\Delphi\.. folder after installation of <b>CADViewX Component</b> package.

Sergey.


Please post questions to the forum or write to support@cadsofttools.com
support
 
Posts: 2230
Joined: 30 Mar 2005, 08:36
Location: Russia

Postby alfons » 21 Jun 2007, 09:14

Thanks for fast reply.
alfons
 
Posts: 6
Joined: 19 Jun 2007, 19:22
Location: Germany


Return to CADViewX

Who is online

Users browsing this forum: No registered users and 0 guests