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.

Altium script for placing a footprint to PCB

Status
Not open for further replies.

boxa

Newbie level 3
Joined
Mar 2, 2013
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,296
Does someone can write script which places a footprint "AXIAL-0.4" from "Miscellaneous Devices.IntLib" library to the active pcb document?
 

Hi,
Why you need script for the placement of footprint to active pcb, you can directly browse library and place it to pcb.
 

Thanks for the interest in my problem!

This script should be part of the bigger program which will read coordinates and footprints of the component from the text file and place them on the active pcb document.
My problem is that part of the program and my question is about it.
 

This is a script to place a component from library to SCH document:

Code:
{..............................................................................}
{ Summary Demo how to place a component                                        }
{ Copyright (c) 2004 by Altium Limited                                         }
{..............................................................................}

{..............................................................................}
Procedure PlaceAPartProgrammatically;
Begin
    If SchServer = Nil Then Exit;
    If SchServer.GetCurrentSchDocument = Nil Then Exit;

    If IntegratedLibraryManager = Nil Then Exit;

    // Integrated Library object model is used to place a
    // component from the library onto the scehamtic sheet.
    IntegratedLibraryManager.PlaceLibraryComponent(
        'Res2',
        'Miscellaneous Devices.IntLib',
        'ModelType=SIM|ModelParameterName0=Value|' +
        'ModelParameterValue0=1K|Orientation=1|Location.X=10000000|Location.Y=20000000');

     // Refresh screen
    SchServer.GetCurrentSchDocument.GraphicallyInvalidate;
End;
{..............................................................................}

{..............................................................................}


I need a script to place a footprint from library to the PCB document.

Any help?
 
Last edited:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top