Can't you just look and see if it is a directory called back_end?
No, because of the following reasons:
- The folder back_end is the undocked "portion" of the project. I need to know whether the ("main") project is docked or undocked? In other words the undocked piece of the project can be anywhere, within any folder which can be called anything. And usually for us we timestamp the folders that contain undocked portions.
- I am told that back_end folder is the default folder name and it can be called anything.
You can call the upper level directory anything you want but the pcb is in back_end. So if I save it to C:\Kendall and call the directory FRED, you get:
When you have a design undocked and you open the original design, it opens read only if you don't dock the copy first.
Other than that I didn't find any Automation calls to see if it was docked or not . The only file I found that has a reference to the Docked design was in the database/cdbserver/log directory and it didn't have enough information to make it usable. It must be stored in the iCDB and that is not open for scripting.
So using my deductive reasoning:
If it lives in back_end it is the undocked portable design.
If it is read_only and not in back_end it is the master but your not sure why it is read only so ask the user the state. They would have had to click thorugh this to open the design:
docked.gif 18.8 KB