Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Mass color invertion for .cal and .GP4 files

1 REPLY 1
Reply
Message 1 of 2
jean-baptiste_britto
172 Views, 1 Reply

Mass color invertion for .cal and .GP4 files

Hello,

I have several thousand plans in .cal and .GP4 whose colors I need to invert (switch to "positive" mode when they are in "negative"). I know it is possible to do it in autocad but I am looking for a mass processing method for obvious reasons of saving time.

I created a Python program in order to perform the operation but a priori there are no libraries that allow to easily manipulate the .cal and .GP4 files. I also looked at a solution of parsing the .cal and .GP4 files to find the parameter to modify, but that did not give anything either.

Does anyone have an idea to solve this problem?

Thank you

Tags (4)
Labels (4)
1 REPLY 1
Message 2 of 2

a low code way would be to create a script (.scr) in AutoCAD to do what you need and then batch the script. I have never worked with your file types so I couldn't say for certain that a script can get it done. If the process can be done from the command line, it very likely can be done with a script. 

 

There are a few ways you can batch scripts. there are some app, but you can also do it with a .bat file and AutoCAD core console. 

CADnoob

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report