Quickly convert code files from AutoCAD .NET to BricsCAD .NET
Hello everyone.
My first project converted from AutoCAD to BricsCAD started nearly 2 years ago. The old code files have changed a lot so I decided to convert again.
This time, I don't manually find/replace any more. I found a more efficient way:
*
Step 1: Find the old but good TextCrawler 2.5 software. (Must be V2.5 because it is free and has the Batch Editor feature. You can support the author of TextCrawler by using V3.x Pro paid version)
Step 2: Prepare a list of Find - Replace strings and save it to reuse later
I have prepared a sample file for VB.net in the attachment below.
Click the Load button to load the TextCrawler_Replace_Dictionary.txc dictionary file.
Step 3: Add files from a folder or multi folders
Step 4: Let TextCrawler find/replace multi string pairs in multi code files for you
*
Now, you can add the processed code files to previous BricsCAD project or new BricsCAD project
Comments
-
The reason I don't use same file code for AutoCAD and BricsCAD with compile directives as someone's best practice is:
- AutoCAD 2025 now use Net 8.0 while BricsCAD still use Net 4.8
- I already had tons of compile directives in my code
- I don't want to take risks with my AutoCAD projects. It's better to separate 2 type of projects
Therefore, a multi find/replace tool which supports multi string pairs and multi files is my choice.
Hope this tip may help.
0