Print Page | Close Window

Create Component Layers with Layer Type

Printed From: PCB Libraries Forum
Category: Libraries
Forum Name: Altium
Forum Description:
URL: https://www.PCBLibraries.com/forum/forum_posts.asp?TID=3575
Printed Date: 13 Nov 2025 at 6:07pm


Topic: Create Component Layers with Layer Type
Posted By: mwachs
Subject: Create Component Layers with Layer Type
Date Posted: 13 Nov 2025 at 1:09am
Hi,

at the moment i am modifying the *.pas file from the export to add the component layer:

LayerPairs.AddPair(ILayer.MechanicalLayer(17),ILayer.MechanicalLayer(18));
LayerPairs.AddPair(ILayer.MechanicalLayer(19),ILayer.MechanicalLayer(20));
LayerPairs.AddPair(ILayer.MechanicalLayer(21),ILayer.MechanicalLayer(22));
LayerPairs.AddPair(eMechanical11,eMechanical12);
LayerPairs.AddPair(eMechanical13,eMechanical14);
LayerPairs.AddPair(eMechanical15,eMechanical16);

In Altium it looks like this:


And in the edit:


How can i modify my code so it will just do the correct assignment:


Thanks,

Marian




Print Page | Close Window