Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to remove layer pair in Altium 21

Status
Not open for further replies.

udhay_cit

Full Member level 6
Full Member level 6
Joined
May 16, 2008
Messages
346
Helped
37
Reputation
74
Reaction score
37
Trophy points
1,318
Activity points
3,895
I've created a mechanical layer pair for a project in Altium designer 21, but there is no option to remove the layer pair again. Only available option is to edit the layer pair where you can modify the layers, but now way to completely delete the layer pair.
I did a google search but can't find any solution to delete the layer pair. Is there any option?
 

Attachments

  • Layer pair.png
    Layer pair.png
    67.3 KB · Views: 343
  • Layer pair edit.png
    Layer pair edit.png
    59.4 KB · Views: 270

This is from Brett on the official Altium forum. What you do is to set up a custom toolbar button and copy the data in that he shows.

Then when you are actively on one of the layers of the mechanical pair (the tab is selected on the tabs along the bottom) and you run this tool bar button you just created, it will separate the pair but NOT delete any primitives (lines arcs, etc) on those layers. It works like the Old Altium AD17

Post ID: 779076
Right click on the toobar and select Customize

Create or copy a toolbar button and set:

Process :ScriptingSystem:RunScriptText

then paste the below text into Parameters:
Text=Var B;C;I;P;M; begin B:=PCBServer.GetCurrentPCBBoard;P:=B.MechanicalPairs;C:=B.CurrentLayer;for I:=1 To 1024 do begin M:=LayerUtils.MechanicalLayer(I);if P.PairDefined(C, M) then begin P.RemovePair(C, M);ShowInfo('UnPaired Mech Layers :' + Layer2String(C) + ' & ' + Layer2String(M));break;end; end;B.ViewManager_UpdateLayerTabs;end;

Youcan then find some icon to use or just leave it as a text on the toolbar

This will unpair any selected mechanical layer with NO loss of primitives.

Thanks Brett!!!
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top