Skip to content

[mxcad_2d API documentation] (../README. md)/[2d] (../modules/2d. md)/MxCADTempForbidden IntelliSelect

Class: MxCADTempForbiddenIntelliSelect ​

2d.MxCADTempForbiddenIntelliSelect

MxCADTempForbiddenIntelSelect is used to temporarily disable the intelligent selection function.

Description

Suitable for scenarios where it is necessary to avoid objects being automatically and intelligently selected in specific processes, such as custom interactions When recording operations or performing batch drawing.

Example

ts
import { MxCpp, MxCADTempForbiddenIntelliSelect } from "mxcad";

   let forbiddenIntelliSelect: MxCADTempForbiddenIntelliSelect | undefined;
  
   if (forbiddenIntelliSelect) {
       (forbiddenIntelliSelect as MxCADTempForbiddenIntelliSelect).restoreSettings();
       forbiddenIntelliSelect = undefined;
   }
   else {
       forbiddenIntelliSelect = new MxCADTempForbiddenIntelliSelect(true);
   }

Table of contents ​

Constructors ​

Methods ​

Constructors ​

constructor ​

• new MxCADTempForbiddenIntelliSelect(isForbidden?)

Parameters ​

NameTypeDefault value
isForbiddenbooleantrue

Methods ​

restoreSettings ​

▸ restoreSettings(): void

Restore the previously saved smart selection settings.

Returns ​

void