switch on/off layer by code
Moderators: SDS, support, admin
switch on/off layer by code
Hallo,
how can i switch layers on/off by code using Delphi 7 ?
how can i switch layers on/off by code using Delphi 7 ?
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:
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
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>;
Sergey.
Please post questions to the forum or write to support@cadsofttools.com