Hi,I try to change a couple of texts an data fields by batch processing and if possible also change the element class for these texts from construction to primary.If it could be important to know, the texts are grouped!
Changing text and data fields works well with this batch command:
MDL SILENTLOAD FINDREPLACETEXT,CHNGTXT CHANGE DIALOGTEXT
FIND DIALOG SEARCHSTRING [old text]FIND DIALOG REPLACESTRING [new text]CHANGE TEXT ALLFILTERED
but I could not change the class in any way... :(
Is there a possibility to to that?
I tried also to do it by a macro.The rename part works well again, but not the part for the element class :(
The additional code (red) for the class changing seems not to work
Sub mainDim startPoint As MbePointDim point As MbePoint, point2 As MbePoint' Start a commandMbeSendCommand "MDL KEYIN FINDREPLACETEXT,CHNGTXT CHANGE DIALOGTEXT"' Send a keyin that can be a command stringMbeSendKeyin "FIND DIALOG PAN True"MbeSendKeyin "FIND DIALOG ZOOM True"MbeSendKeyin "FIND DIALOG ZOOMLEVEL 14"MbeSendKeyin "FIND DIALOG SEARCHSTRING "MbeSendKeyin "FIND DIALOG SEARCHSTRING old Text"MbeSendKeyin "FIND DIALOG REPLACESTRING new Text"MbeSendKeyin "CHANGE TEXT ALLFILTERED"
MbeSendKeyin "FIND DIALOG SEARCHSTRING "MbeSendKeyin "FIND DIALOG SEARCHSTRING new Text"MbeSendCommand "ACTIVE CLASS PRIMARY "MbeSendCommand "CHANGE CLASS "
End Sub
I have to change the content and class for 10 textes (always the same) on a lot of drawings.....perhaps another idea to do that?
ThanksRegards, Raphael