Author Topic: Mechanical layers save?  (Read 7043 times)

0 Members and 1 Guest are viewing this topic.

Offline ChristopherTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Mechanical layers save?
« on: June 21, 2015, 03:52:15 pm »
I've setup my mechanical layers how I want them... is there a way to save this as a default so all pcblib & pcbdoc files use this scheme?

 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22347
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Mechanical layers save?
« Reply #1 on: June 21, 2015, 09:15:15 pm »
I suspect not (anyone who knows better??).  Layer names are another one of those poorly programmed not-objects.  Also changes basic commands, e.g. OnLayer('Mechanical 13') becomes invalid.

I just leave them default (unnamed, except for inner layers which I usually shorten to something handy e.g. 'GND', 'VCC', etc.).  Then it bothers me when importing other boards (e.g. from PADS) and all the names are automatically different...

Also nowhere in the documentation that suggests that layer names can be changed, or if there's a comprehensive way to do it, or reset them, or... ::)

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline tboy

  • Contributor
  • Posts: 14
  • Country: ca
Re: Mechanical layers save?
« Reply #2 on: June 21, 2015, 10:34:22 pm »
I think you can just save your .pcbdoc file with your customized layer names in some convenient location.
It is saved as a .pcbdoc but really is just a template file for future projects.
Next time you want to use this layer structure you just open the template as a pcb and then save it with a new name in your project.
Seemed to work fine for me.
 

Offline DerekG

  • Frequent Contributor
  • **
  • Posts: 883
  • Country: nf
Re: Mechanical layers save?
« Reply #3 on: June 21, 2015, 10:44:12 pm »
... is there a way to save this as a default so all pcblib & pcbdoc files use this scheme?

It can be done with a small work around.

Save all the layers exactly how you want them in an empty project.

Open this empty project & save with a new name whenever you begin a new design.
I also sat between Elvis & Bigfoot on the UFO.
 

Offline ajb

  • Super Contributor
  • ***
  • Posts: 2720
  • Country: us
Re: Mechanical layers save?
« Reply #4 on: June 22, 2015, 01:02:51 am »
There's a user script example out there that will save and restore layer settings.  I ran across it a while ago and tried it out, but annoyingly the path where the settings are saved and recalled from is hard coded.  I tried to modify it to be able to browse for and select a file only to find that the Delphi functions to invoke a save/open dialog crash Altium--which I guess is why the path was hard coded  :palm:


I belive this is the one:
http://wiki.altium.com/pages/viewpage.action?pageId=11240008
 

Offline Niklas

  • Frequent Contributor
  • **
  • Posts: 397
  • Country: se
Re: Mechanical layers save?
« Reply #5 on: June 22, 2015, 05:51:51 am »
There was a script available for earlier versions of AD, but the compatibility broke somewhere around AD14. Tried to rewrite it but it only worked for mech layers 1-16, not 17-32. Now I use a template PCB file instead.
 

Offline defter

  • Newbie
  • Posts: 4
Re: Mechanical layers save?
« Reply #6 on: June 22, 2015, 03:34:22 pm »
You can save the name of the layers with desktop-eda's Altium utility. Link: http://www.desktop-eda.com.au/free-pcb-utilities-for-altium-designer/
 

Offline Zman

  • Contributor
  • Posts: 25
  • Country: au
Re: Mechanical layers save?
« Reply #7 on: June 23, 2015, 09:57:29 am »
PCB template file is the way to do this!

1) create empty PCB, change everything as you like (this includes rules, layers, PCB options, size etc). I even have a few special "project parameter strings" placed, like ".ProjectTitle"
2) save it as some "myPCBtemplate.PcbDoc"
3) change settings in "new PCB document template" to point to that file.

from now on, each time when you click "add new to PCB project/PCB document" you will have the same nicely prepared setup

Information wants to be FREE!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf