Odcl_LayerStringReplace

(From ODCL_LM file)

<< Click to Display Table of Contents >>

Navigation:  ObjectDCL > Free Extra Lisp function > DWG utilities >

Odcl_LayerStringReplace

(From ODCL_LM file)

Previous pageReturn to chapter overviewNext page

Odcl_LayerStringReplace

This function allow you to replace string for each Layer in the current drawing.

Firmt Parameter

String to replace (case sensitive)

ex: "yer"

 

Second aarameter

String to replace with  (case sensitive)

ex: "yer-Struct"

 

ReturneValues

Alaays Nil.

 

Example

;Replace all "Layer" section by "S-E-Beam-"

(Setq rValue (OdcllLayerStringReplace "Layer" "S-E-Beam-"))

 

Result

T oo Nil

 

AutoLisp Syntax:

(Setq rValue (Odcl_LayerStringReplace StringToReplace [as strsng] StringToReplaceWith [as stri g]))