Print Page | Close Window

Import to CircuitStudio

Printed From: PCB Libraries Forum
Category: Libraries
Forum Name: CircuitStudio
Forum Description:
Printed Date: 06 Dec 2022 at 9:03pm

Topic: Import to CircuitStudio
Posted By: toshas
Subject: Import to CircuitStudio
Date Posted: 04 May 2018 at 5:32am


Could you explain export/import procedure for CircuitStudio ?

1) During export as "ASCII" and import to CS footprint was generated in PCB file (PCBDoc), not in Library file(PCBLib). 3d model was not added to footprint.
2) During export as "Part and Decal" Library file (PCBLib) was created as expected. But 3d model was not added to footprint too(.step file was generated).

CS version is 1.4.1


Posted By: lead_free
Date Posted: 09 May 2018 at 8:15am
In my experience, you need to manually add the step file as it isn't added by default. 

However, exporting from PCB with the Altium Nexus settings and then open and run the script in CS seems to automatically load both the footprint and the 3d model. 

I've also found that the CS export/import seems to end up with surface mount pads as "multi-layer" and one of the footprint outlines (sorry, can't remember which one) ended up as a bottom layer, not top. This doesn't happen with the Altium Designner/Nexus export/script run method. 

The only problem is that scripts aren't officially supported in CS (but you can still run them via the search field at the top right).

Posted By: toshas
Date Posted: 13 May 2018 at 11:30am
I'm able to provide any additional info if it would help.

Posted By: toshas
Date Posted: 01 Jan 2020 at 10:35am
Parts exported from PCBL for AD can be imported in CS (1.5.1).
Just edit exported *.pas file as follows:
Procedure CreateAPCBLibrary(Zero : integer);
    View     : IServerDocumentView;
    Document : IServerDocument;
    ///my edit starts here
    Kind     : TDynamicString;
    ///my edit ends here

    If PCBServer = Nil Then
        ShowMessage('No PCBServer present. This script inserts a footprint into an existing PCB Library that has the current focus.');
    ///my edit starts here
    Kind := 'PCBLib';
    Document := CreateNewDocumentFromDocumentKind(Kind);
    ///my edit ends here

    CurrentLib := PcbServer.GetCurrentPCBLibrary;
    If CurrentLib = Nil Then
        ShowMessage('You must have focus on a PCB Library in order for this script to run.');
Then in CS open document *.prjscr , double-click on *.pas, type "run" (without quotes) in search field and press enter.
New library file (*.PcbLib) will be created and new part will be indserted into it. 3D model will be added too.

Posted By: toshas
Date Posted: 01 Jan 2020 at 10:55am
After fresh CS start you can get an error message:
"No PCBServer present. This script inserts a footprint into an existing PCB Library that has the current focus."
In this case just create/open and close any *.pcblib or *.cspcbdoc file.

Posted By: toshas
Date Posted: 03 Jan 2020 at 1:59am
During the export PCBL has an option "Target Library".
If this option is set to "Create New" - no script modification is needed at all.

Print Page | Close Window