Giter Site home page Giter Site logo

altium-designer-addons / scripts-libraries Goto Github PK

View Code? Open in Web Editor NEW
484.0 61.0 222.0 92.9 MB

Set of community add-ons for Altium Designer

Pascal 89.92% AutoHotkey 0.15% Emacs Lisp 1.07% Batchfile 0.40% Shell 0.57% PHP 6.71% JavaScript 0.21% VBScript 0.98%
altium-designer scripting

scripts-libraries's Introduction

Community add-ons for Altium Designer

What is it

This is a set of addons for Altium Designer, a CAD software for Electronic designers. This project contains some scripts, examples and other content which has been developed by community members to provide extended features for Altium Designer.
No real consistency exists between each script because they have been developed separately by individual developers. You can use only one script out of the full set if you want.

How to use

Step 1: download the add-on you want.

  1. Either clone the entire set of add-ons on your computer (if you're accustomed to Git),
  2. Or download only the add-on you want. You can do so by navigating into a script folder and then clicking the script link from the list.

Step 2: integrate the script into Altium Designer and execute it.
If you are a newcomer to Altium scripts, please read the "how to" help page. Some developers may also have provided some screen captures or examples of use.

Please be advised: Some scripts may not work out-of-the-box. Some may be old, unmaintained. Others may be provided as a demonstration, or should be integrated in an other script to fully work.

How to contribute

If you want to add your contribution to our project feel free to fork the repository, commit your changes and submit a pull-request.
You are encouraged to read the GitHub fork guide.

License(s) to use/share

Unless otherwise specified, this project don't follow any particular license such as GPL, MIT or BSD. In any case everything is distributed "as is" with no warranty.
However some authors may have specified a license for their script(s). In this case you are supposed to follow the rules implied by this license for the concerned scripts.

scripts-libraries's People

Contributors

andreatta avatar brettlmiller avatar ceerious avatar coffeenmusic avatar coreybeyer avatar ddavidebor avatar dtj40 avatar ealbach avatar edcatley avatar igorpnk avatar justinmassiot avatar jwcollins avatar lunarplasma avatar petrtos avatar popest avatar pperisin avatar qywx avatar rndmonkey avatar sorashadow avatar zharovdv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scripts-libraries's Issues

MultiBoardAssembly commands error

Hi,
I'm developing now a plugin for exporting Altium Designer files to PDF and I've encountered a problem with the *.MbsDoc format.
I found the necessary command, it is in the MultiBoardAssembly module.

But calling any command in this module ends with a "catastrophic failure" error.
For example, you can run this script in Altuim
Begin
// create and open file
ResetParameters;
AddStringParameter ('ObjectKind' ,'NewAnything');
AddStringParameter ('Kind' ,'SdDoc');
RunProcess('WorkspaceManager:OpenObject');
// export to pdf
ResetParameters;
AddStringParameter ('Action' ,'ExportToPDF3D');
RunProcess('MultiBoardAssembly:ExportPart');
End;

Can you add a script for working with the module MultiBoardAssembly to the examples? Or tell me please what could be wrong in this script.

Thanks

eagle2ad_sch.ulp parse error

What steps will reproduce the problem?
1. run eagle2ad_sch_1_4.ulp in eagle 4.13


What is the expected output? What do you see instead?

Output a Altium schematic file.
Stops with parse error. line 588


What version of the product are you using? On what operating system?

eagle2ad_sch_1_4.ulp
eagle 4.13
Windows 7 x64


Please provide any additional information below.

make part fails on printf in PIN_DIRECTION_SUP condition
---------------------------------------------------------
int MakePart(UL_SYMBOL S, UL_PART P, int OwnerPart, int Records, int partcount){

//  printf("*** Bauteil ***\n");

    S.pins(Pi){
        printf(PinRecord(Pi,OwnerPart-2,Records,partcount));
        Records+=1;
        if (Pi.direction==PIN_DIRECTION_SUP){
                printf(ConvString(NetLabelRecord(Pi.net, Pi.x, Pi.y)));
                Records+=1;
--------------------------------------------------------------

Original issue reported on code.google.com by [email protected] on 28 Nov 2011 at 11:39

Multiple PCBs in Single Project problem

I tried the MultiPCBProject V2.0 scripts on Altium V13.1.2,
but the "SCH_UpdateAllPCBDocuments" function does not work.

The compile mask is not placed over the respective blankets, resulting in all 
components compiled onto all PCBs.

I watched the videos, and I think I did things correctly, but maybe there's an 
Altium Preference setting that needs to be enabled.

Original issue reported on code.google.com by [email protected] on 29 Oct 2013 at 3:52

ZIP for Menu_SVN and rename DXPPrf is not working- UI Customizations

HI ,
I have follow the below steps but it is not working for load preferences :

  1. Make a ZIP archive file containing the files DXP.RCS and IncludedFiles.ini
  2. Rename the ZIP file in Menu_custom.DXPPrf
  3. Open Altium Designer and load the file Menu_custom.DXPPrf from the preferences panel

The DXPPrf are not loading preference screen to select customizations , Downloaded file is working but when i unzip and zip same file its not working.

Thanks
Aman

Adjust Designators 2: Changes overlay layer despite disabled

When using the Adjust Designators 2 script on a mechanical layer it also changes the overlay layer, despite the checkbox "modify overlay" is unchecked.
It fails with the latest Altium Designer version 20.1.11, but worked with older versions (not sure at what exact version it got broken).

When opening an old layout, it still works on those components (placed with older Altium versions), but not on components newly imported into the layout. However I could not find a difference in designator properties, which might different and affecting the script behaviour.

Generate manufacture Data using a Script.

Hi!

I want to create script to generate Manufacture and assembly Data ( Pick and 
Place, BOM, Assembly Drawings, Gerber File and NC Drill File.
I want to do it automatically without selecting some paramaters like the Pick 
and Place setup when the script is running.

Thanks!

Original issue reported on code.google.com by [email protected] on 27 Oct 2011 at 8:52

CopyDesignatorsToMechLayerPair

CopyToMech

When trying to run this script I'm constantly getting this error and I'm unsure what I need to do. Sorry new to coding

AD14 Compliance

What steps will reproduce the problem?
1. Run any script that calls "LayerStack" in AD14

What is the expected output? What do you see instead?
Scripts will not complete, stops at the first bad code line encountered.

What version of the product are you using? On what operating system?
AD14.0

Please provide any additional information below.
I have found that in any script that calls "LayerStack" will not function 
correctly in AD14. All instances of the above call should be changed to 
"LayerStack_V7".

I found this issue first in the script "MechLayerNames_v2.0" (lines 46 & 91) 
after I tried to use it on a AD14 PcbDoc file.

Original issue reported on code.google.com by [email protected] on 25 Nov 2013 at 1:54

Fillet script doesn't work for any-angle tracks (fix hacked together)

I recently have had occasion to do a LOT of fillets of specific radius on a mechanical layer, and tweaked the Fillet_v1.3 script (https://github.com/Altium-Designer-addons/scripts-libraries/tree/master/Fillet) to do fixed radius fillets and also to work correctly on tracks at any angle to each other. There are a couple safety checks disabled (like you can specify too large a radius to fit the existing tracks), and the undo functionality is completely broken (it seems partially broken before and I've only made it worse and don't feel like sinking more time into it right now). Also, I haven't cleaned up disabled code or made things pretty. Petar, are you interested in my revised code?

errors creating intLib from RRutledge

What steps will reproduce the problem?
1. create an IntLib project
2. add all the SCH and PCB files from Libs_RRutledge 2013-01-30.zip 
3. compile IntLib

What is the expected output? What do you see instead?

should have no errors or warnings.  Instead:

customizeMessage List
Date : 12/19/2013 
Time : 11:29:54 PM 
Elapsed Time : 00:00:00 

--------------------------------------------------------------------------------
Class Document Source Message Time Date No. 
[Warning] PBL - Connectors.SCHLIB Compiler Duplicate pins in component Pin 
USB_TypeB-MH and Pin USB_TypeB-MH 11:23:58 PM 12/19/2013 1 
[Warning] PBL - Diodes.SCHLIB Compiler DIODE_100V_1.5A_SMA: Could not find 
'DO-214AC, SMA' 11:23:58 PM 12/19/2013 2 
[Warning] PBL - Diodes.SCHLIB Compiler DIODE_SCHOTTKY_10MQ100NPBF: Could not 
find 'DO-214AC, SMA' 11:23:58 PM 12/19/2013 3 
[Warning] PBL - Diodes.SCHLIB Compiler DIODE_SCHOTTKY_30BQ100TRPBF: Could not 
find 'DO-214AB, SMC' 11:23:58 PM 12/19/2013 4 
[Error] PBL - Electromechanical.SCHLIB Compiler FX2-D3209: Could not find port 
'2' on model 'Relay_Tyco_FX2' for pin '2' 11:23:58 PM 12/19/2013 5 
[Warning] PBL - Fuses and Protection.SCHLIB Compiler BREAKER_4A5_ETA_1410-L2: 
Could not find 'BREAKER_1410-L2' 11:23:59 PM 12/19/2013 6 
[Warning] PBL - Fuses and Protection.SCHLIB Compiler SPARKGAP_2850V: Could not 
find 'Spark-Gap_2850V' 11:23:59 PM 12/19/2013 7 
[Warning] PBL - Fuses and Protection.SCHLIB Compiler TCO_Radial_115degC: Could 
not find 'TCO_Aupo_Ax-1A_Radial_THD' 11:23:59 PM 12/19/2013 8 
[Warning] PBL - Mechanical.SCHLIB Compiler Cable_C0744A-12-10: Could not find 
'ClarisonicLogo' 11:23:59 PM 12/19/2013 9 
[Warning] PBL - Mechanical.SCHLIB Compiler HEATSINK_SMD_TO-268: Could not find 
'HEATSINK_TO-268' 11:23:59 PM 12/19/2013 10 
[Warning] PBL - Mechanical.SCHLIB Compiler SHIELD_RECT_0.75x1.125x0.25in: Could 
not find 'SHIELD_RECT_0.75x1.125x0.25in' 11:23:59 PM 12/19/2013 11 
[Error] PBL - Integrated Circuits.SCHLIB Compiler IC_Op-Amp_AD8513: Could not 
find port '34' on model 'TSSOP65P640X120-14N' for pin '34' 11:23:59 PM 
12/19/2013 12 
[Warning] PBL - Integrated Circuits.SCHLIB Compiler RFID_CR95HF: Could not find 
'QFN50P500X500X100-33N' in 'L:\Eng\Electrical 
Engineering\Hardware\Altium\Libraries and Templates\PCB Libraries\PBL - SMD 
Packages.PcbLib' 11:24:00 PM 12/19/2013 13 
[Warning] PBL - Pads and Jumpers.SCHLIB Compiler JUMP_NETTIE: Could not find 
'NetTie_External_24mil' 11:24:00 PM 12/19/2013 14 
[Warning] PBL - Pads and Jumpers.SCHLIB Compiler JUMP_NETTIE: Could not find 
'NetTie_Internal1_24mil' 11:24:00 PM 12/19/2013 15 
[Warning] PBL - Pads and Jumpers.SCHLIB Compiler JUMP_NETTIE: Could not find 
'NetTie_Internal2_24mil' 11:24:00 PM 12/19/2013 16 
[Warning] PBL - Pads and Jumpers.SCHLIB Compiler MH_Plated_40mil: Could not 
find 'MH_PLATED_40mil ID x 100mil OD' 11:24:00 PM 12/19/2013 17 
[Warning] PBL - Pads and Jumpers.SCHLIB Compiler MH_Plated_112mil: Could not 
find 'MH_PLATED_112 ID x 260mil OD' 11:24:00 PM 12/19/2013 18 
[Warning] PBL - Pads and Jumpers.SCHLIB Compiler MH_Plated_125mil: Could not 
find 'MH_PLATED_125 ID x 260mil OD' 11:24:00 PM 12/19/2013 19 
[Warning] PBL - Pads and Jumpers.SCHLIB Compiler MH_Plated_150mil: Could not 
find 'MH_PLATED_150ID x 220mil OD' 11:24:00 PM 12/19/2013 20 
[Warning] PBL - Pads and Jumpers.SCHLIB Compiler Proto_Block_8x2: Could not 
find 'Breakout_8x2' 11:24:00 PM 12/19/2013 21 
[Warning] PBL - Pads and Jumpers.SCHLIB Compiler Proto_Block_25x51: Could not 
find 'BreadBoard_25x51' 11:24:00 PM 12/19/2013 22 
[Warning] PBL - Pads and Jumpers.SCHLIB Compiler Term1: Could not find 
'THP_D38_T75_B125' 11:24:00 PM 12/19/2013 23 
[Warning] PBL - Pads and Jumpers.SCHLIB Compiler Term_small: Could not find 
'THP_D38_T75_B75' 11:24:00 PM 12/19/2013 24 
[Warning] PBL - Switches.SCHLIB Compiler SW_THT_PB_8.0mm: Could not find 
'TACT-SWITCH-TS1180' 11:24:01 PM 12/19/2013 25 
[Warning] PBL - Test Points.SCHLIB Compiler TESTPOINT: Could not find 
'THP_D38_T75_B75' 11:24:01 PM 12/19/2013 26 
[Warning] PBL - Test Points.SCHLIB Compiler TESTPOINT_LEAD: Could not find 
'THP_D46_T80_B80' 11:24:01 PM 12/19/2013 27 
[Warning] PBL - Resistors.SCHLIB Compiler RES_TRIMMER_10K_1T_THT: Could not 
find 'POT_3306F' 11:24:02 PM 12/19/2013 28 
[Warning] PBL - Connectors.SCHLIB Compiler 6P_RA_TERM BLOCK HEADER: Could not 
find '6P_PCB_TERM BLOCK HDR_RA' 11:24:02 PM 12/19/2013 29 
[Warning] PBL - Connectors.SCHLIB Compiler 6P_TERM BLOCK HEADER: Could not find 
'6P_PCB_TERM BLOCK HDR' 11:24:02 PM 12/19/2013 30 
[Error] PBL - Connectors.SCHLIB Compiler CONN_DIN_4PIN: Could not find port 
'MH' on model 'CONN_PWR-DIN_4PIN_PD-40S' for pin 'MH' 11:24:02 PM 12/19/2013 31 
[Warning] PBL - Connectors.SCHLIB Compiler CONN_JMP_RA: Could not find 
'JMP2_RA' 11:24:03 PM 12/19/2013 32 
[Warning] PBL - Connectors.SCHLIB Compiler CONN_MINIPHONEJACK: Could not find 
'CONN_PhoneMiniStereo' 11:24:03 PM 12/19/2013 33 
[Warning] PBL - Connectors.SCHLIB Compiler CONN_PJ-036A: Could not find 
'CUI_PJ-036A-SMT' 11:24:03 PM 12/19/2013 34 
[Warning] PBL - Connectors.SCHLIB Compiler Header4P: Could not find 
'CONN_FLATFLEX_4C_1MMP_3MML_BOT' 11:24:03 PM 12/19/2013 35 
[Warning] PBL - Connectors.SCHLIB Compiler Header4P: Could not find 
'CONN_FLATFLEX_4C_1MMP_3MML_TOP' 11:24:03 PM 12/19/2013 36 
[Warning] PBL - Connectors.SCHLIB Compiler Header4P: Could not find 
'CONN_FLATFLEX_4C_1MMP_5MML' 11:24:03 PM 12/19/2013 37 
[Warning] PBL - Connectors.SCHLIB Compiler USB_Micro_TypeB: Could not find 
'USB_Micro-B_Molex_SMD' 11:24:03 PM 12/19/2013 38 
[Warning] PBL - Inductors.SCHLIB Compiler INDC_47n_1008_1A: Could not find 
'INDM2520X190N' 11:24:03 PM 12/19/2013 39 
[Warning] PBL - Inductors.SCHLIB Compiler INDC_150n_1008: Could not find 
'INDM2520X190N' 11:24:03 PM 12/19/2013 40 
[Warning] PBL - Batteries.SCHLIB Compiler BATT_AAAx2_600mAh: Could not find 
'BAT-AAA-2' 11:24:03 PM 12/19/2013 41 
[Warning] PBL - Batteries.SCHLIB Compiler BATT_AAx2_600mAh: Could not find 
'BAT-AA-2' 11:24:03 PM 12/19/2013 42 
[Warning] PBL - Batteries.SCHLIB Compiler BATT_AAx2_900mAh: Could not find 
'BAT-AA-2' 11:24:03 PM 12/19/2013 43 
[Warning] PBL - Batteries.SCHLIB Compiler BATT_AAx2_1300mAh: Could not find 
'BAT-AA-2' 11:24:03 PM 12/19/2013 44 
[Warning] PBL - Capacitors.SCHLIB Compiler CAPE_1m_10V_SMD: Could not find 
'CAP_ELEC_Size G' 11:24:04 PM 12/19/2013 45 
[Warning] PBL - Capacitors.SCHLIB Compiler CAPE_10u_100V_SMD: Could not find 
'CAP_ELEC_Size E' 11:24:04 PM 12/19/2013 46 
[Warning] PBL - Capacitors.SCHLIB Compiler CAPE_47u_100V_SMD: Could not find 
'CAP_ELEC_Size H13' 11:24:04 PM 12/19/2013 47 
[Warning] PBL - Capacitors.SCHLIB Compiler CAPE_220u_10V_SMD: Could not find 
'CAP_ELEC_Size E' 11:24:04 PM 12/19/2013 48 
[Warning] PBL - Capacitors.SCHLIB Compiler CAPE_220u_16V_THD_2.5mmLS: Could not 
find 'CAPE2.5mm_max6.8x12.5mm' 11:24:04 PM 12/19/2013 49 
[Warning] PBL - Capacitors.SCHLIB Compiler CAPF_120n_2416_PPS_50V: Could not 
find 'CAPC6041X210N' 11:24:04 PM 12/19/2013 50 
[Warning] PBL - Capacitors.SCHLIB Compiler CAPMF_220n_100V_MPR: Could not find 
'CAPMF5_3.5-5.0-7.5mm' 11:24:04 PM 12/19/2013 51 
Back to top



What version of the product are you using? On what operating system?

AD10, WinXP SP2

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 20 Dec 2013 at 4:32

Track for obsolete scripts

  1. Test each script with a recent version of Altium Designer,
  2. Determine if it's running,
  3. If not, decide if it's worth trying to upgrade the code:
    a. Has the feature been integrated by Altium inside the core software?
    b. If not, does the upgrade represent a small programming effort?
  4. If not, move the "old and unmaintained" script into a folder named _LEGACY_ or equivalent.

LayerSet definition

Hi, I run stitchingvias.pas and get error: Undeclared identifier: LayerSet
I read the file stitchingvias.pas and dont find its definition, even var Board has its definition, but var LayerSet has no defintion, I add its definition like LayerSet : IPCB_LayerSet, but new error appear like:
undeclared identifier: CreateLayerSet, so what problem is it? how to fix it? looking forward to reply, thanks.

Clean-up of the repository

Hi all @Altium-Designer-addons/project-committers,

The repository may need a small clean-up, tell me what you think about the following ideas:

  1. Don't keep the Google Drive alive
    a. Not every contributor upload a Zip file to the Drive along with its script update to GitHub -> the one and only up-to-date source is GitHub
    b. DownGit is a perfect replacement for the Google Drive
  2. Remove the "#Downloads" folder
  3. Update the README + description
    a. Remove or update obsolete information (links, way to contribute, obsolete GDrive information)
    b. Re-order the list of scripts alphabetically (the chronological order isn't needed any more, dates are shown right next to each folder)
    c. Add a download link (based on DownGit) to each element of the scripts list

Import text file into Altium

hi all, I am a new memmber of Altium. I want to create one script by VB can 
load one text file. How I can do it? Can you help me
Thank you
Elek



Original issue reported on code.google.com by [email protected] on 17 Oct 2011 at 8:50

Scripting better documentations !

I am searching for better Altium's API documentation, but Altium's provided documentation. It is poor and bad sorted. Also it is pretty complex to search within.

AdjustDesignators2

SimplePCB.zip

Hello Justin,

When I tried the AdjustDesignator2 with this simple PCB design, I found nothing changed and no 'designators' were adjusted. I wonder if you can provide some technical support?
Thanks!

Best,
Runze

Distribute script undo and operation with 2 tracks

The Distribute script's undo doesn't seem to work correctly in AD18, there is also a warning message when run with 2 tracks selected that isn't always applicable.
When 2 tracks are selected, the by-value distribute options are still valid.

AdjustDesignators2: not centered, text size wrong, changes font

I tried running this script on AD 23.5.1 and it looks like it's easier to manually place .Designators from Assembly layers, in the center of the components, than using this script.

Manual

Script

Settings used for the script:

Use Stroke Fonts: unchecked
Layer Options: Consider Mech Layer Primitives: checked
Designators to Include: Modify Designator on Mechanical Layers: checked

I assumed this script would center the designators, and increase/decrease their font size so they fit in the assembly perimeter of the component. For components that are rotated 45* degrees, the designator is either horizontal, or vertical. Any way to fix this?

Thanks!

CopyDesignatorsToMechLayerPair does not work

What steps will reproduce the problem?
1. AD15.0.8
2. Run Script
3. Fails on line 73 complaining about LayerObject_V7

To get the script to work I modified it to iterate from 1 to 16 (Fails on layer 
17 for me) and changed the line to contain 
Board.LayerStack.LayerObject[ILayer.MechanicalLayer(i)]
as well as on line 200.

This is a total hack though. The 1 to 16 thing maybe because I am/am not using 
layer pairs or something.

What version of the product are you using? On what operating system?
AD15.0.8 on Windows 7 x64

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 15 Jan 2015 at 11:48

Attachments:

AutoStepPlacer Doesn't Work

I used this as a reference for me to add step models to footprints automatically.
I used the following lines to import and implement the 3D model :
`

      //ModelDir > string contains the directory of 3d models
      //TempCellsContent[6] > string list contains data retrieved from CSV file earlier, cell [6] contains the step name.
      //ModelName > a string list to store "FindFiles" function output of the .step full path
      //Footprint > is the first and only component in the (PCBLib) file opened on executing script
      //StepModel > is an IPCB_LibraryComponentBody
      //Model > is an IPCB_Model  


      {**** Adding 3d Model ****} 
       FindFiles(ModelDir,TempCellsContent[6],faAnyFile,False,ModelName);
       Iterator := Footprint.GroupIterator_Create;
       Iterator.Addfilter_ObjectSet(MkSet(eComponentBodyObject));
       StepModel := Iterator.FirstPCBObject;          

      //Delete current 3D Models
       While StepModel <> Nil Do
       Begin
       Footprint.RemovePCBObject(StepModel);
       StepModel := Iterator.NextPCBObject;
       End;

       StepModel := PCBServer.PCBObjectFactory(eComponentBodyObject,eNoDimension, eCreate_Default);
       Model :=  Stepmodel.ModelFactory_FromFilename(ModelName[0], false);
       StepModel.SetState_FromModel;
       STEPmodel.Model := Model;
       Footprint.AddPCBObject(StepModel);

       FootPrint.GroupIterator_Destroy(Iterator);

 //Finalize code
 ResetParameters;
 AddStringParameter('Action', 'All');
 RunProcess('PCB:Zoom');
 CurrentLib.Board.ViewManager_FullUpdate;
 CurrentLib.LibraryIterator_Destroy(FootprintIterator

`
As not expected XD, the removing line doesn't work as the old models still exist, and no new models added . the script do run and end without errors ! but nothing change.
When I debugged it line by line, I noticed it goes into the while loop and do pass into the RemovePCBObject line, but nothing change in the workspace !
even i tried to add a commands from this link after the RemovePCBObject line. It is not executed because it cannot find the eComponentObeject as i have already remove it in the previous line. SO the Body is theoretically removed in the execution flow, but after finishing script run, nothing is changed at all as i mentioned before.

AdjustDesignators2

Hello and thank you for these scripts they are a really big help. I do have one issue and I do not have any experience in coding. The issue I have is when I want to adjust mechanical designators that I have added from another script from here (CopyDesignatorsToMechLayerPair) I find it is changing the silk on the top overlay as well. From looking a little at the script I belive it uses the overlay designator to position the mechanical .designator and then after it is meant to reposition the overlay back to its original position. What I'm finding is its not repostioning back to exaxtly its original position and is actually off. I have obvisual not got the tick boxes checked for the overlay as this is not want I want adjusting.

The altium version I'm using is 20.2.8

Cannot commit folder

Hi Justin,
this regards to our discussion on https://forum.live.altium.com/#posts/244487/760373.
I installed the library but could not commit a project.
I re-read the readme and found that the project has to be under version control already.
As in my forum post mentioned AD21.0.8 cannot add sub folders.
Now I tried it this way:

  1. Add folder to version control
  2. Reports some errors regarding sub folders
  3. All files have a blue plus sign
  4. Commit whole project => reports same errors
  5. All files have still a blue plus sign
  6. Now Commit project with your script
  7. All files are added and commited but in AD all files have still a blue plus sign

AddWireStubsSch-Form.pas

Dear All,

I'm using AD16 and tried to make this script work with the given project.
I obtain no error output message and nothing is modified in the schematic document.

Do I need to do something specific except selecting the schematic and click on the “Add Stubs” button because I do not obtain an error message :(

Thanks

RemovePCBObject NOT WORKING !

shortly, this function (RemovePCBObject) is not working at all with me
how could i solve this ?
tried it on Altium Designer 20 and the oldest supported version (altium 10) , both not working !

this method is used in some examples provided Here >> RemovePCBObject .zip

Thanks for support..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.