COM Interface: IPCBDesign
This class provides access to all PCB data for a specific design file in eCADSTAR PCB Editor. This includes PCB containers such as parts, components and layers.
Members
Functions
Function | Description |
---|---|
void AddComponent(ComponentType type, BSTR reference, BSTR name, BSTR alternate, PlacementSide side, long xPos, long yPos, float angle) |
Adds a new component to the design. |
void Close() | Closes the design. |
void ReplacePart(BSTR oldPartName, BSTR newPartName) | Replaces all instances of part oldPartName in a design with part newPartName. |
void Save() | Saves the design. |
void SetSelection(SelectOpType opType, SelectObjectType objectType, BSTR identifier, BSTR identifier2) | Selects or deselects the object specified by identifier and identifier2. Identifier2 may be omitted for component and net object types. |
IPCBSelection GetSelectionInterface | Returns the selection interface to query selected objects. |
void ExportData(ExportDataType exportType, BSTR parameterFile, BSTR outputDirectory, BSTR outputFilename, ExportFileTyp exportFileType, ExportVariantType exportVariantType, BSTR variantName) |
Exports data from the design.
The exportType must always be set.
The parameter file must be set for all export types other than parts list and pick and place report.
The outputDirectory must be set for parts list and pick and place report.
The outputFilename must be set for parts list and pick and place report. It must also be set for IPC2581 and IPCD356 if the outputDirectory is set. ExportFiletype must be set for parts list and pick and place report. exportVariantType must be set for parts list and pick and place report. VariantName must be set if the export variant type is set to ExportVariantType_Selected See: COM Interface: ExportData examples |
Properties
Property | Description |
---|---|
BSTR Name {get} | Returns the design name. |
BSTR Path {get} | Returns the design path. |
VARIANT_BOOL Active {get} {set} | Checks if the design is currently selected. |
IPCBComponents Components {get} | Returns a list of the components in the design. |
BSTR CurrentVariant {get} | Returns the name of the currently selected variant. |
long DesignOriginX {get} | Returns the value of the design origin X coordinate. |
long DesignOriginY {get} | Returns the value of the design origin Y coordinate. |
IPCBHoles Holes {get} | Returns a collection of all holes in the design that are not related to a component pin. |
INets Nets {get} | Returns the design nets collection. |
IPCBPadstacks Padstacks {get} | Returns a collection of all padstacks in the design that are not related to a component pin. |
IParts Parts {get} | Returns a list of the parts in the design. |
IPropertyDefinitionContainer PropertyDefinitions {get} | Returns the design property definitions. |
IRule Rule {get} | Returns the rule set for the design. |
ITechnology Technology {get} | Returns the technology for the design. |
IVariants Variants {get} | Returns the variants in the design. |
IAreaFills BoardOutline {get} | Returns the board outline. |
ICopperShapes CopperShapes {get} | Returns the board copper shapes. |
IFigures Figures {get} | Returns the board figure shapes. |
IPCBTemplateSettings TemplateSettings {get} | Returns the board template settings. |
Related Topics
COM Interface: ExportDataType
COM Interface: ExportFileType
COM Interface: ExportVariantType
COM Interface: ComponentType
COM Interface: PlacementSide
COM Interface: SelectObjectType
COM Interface: IAreaFills
COM Interface: IPCBComponents
COM Interface: IPCBParts
COM Interface: IRule
COM Interface: IPCBPropertyDefinitionContainer
COM Interface: ITechnology
COM Interface: IPCBVariants
COM Interface: IPCBHoles
COM Interface: IPCBNets
COM Interface: IPCBPadstacks
COM Interface: IPCBDesigns
COM Interface: IPCBSelection
COM Interface: ICopperShapes
COM Interface: IFigures
COM Interface: IPCBTemplateSettings
COM Interface: IPCBApplication
Class Diagram for eCADSTAR PCB Editor
COM Interface: ExportDataType
COM Interface: ExportFileType
COM Interface: ExportVariantType
COM Interface: ComponentType
COM Interface: PlacementSide
COM Interface: SelectObjectType
COM Interface: IAreaFills
COM Interface: IPCBComponents
COM Interface: IPCBParts
COM Interface: IRule
COM Interface: IPCBPropertyDefinitionContainer
COM Interface: ITechnology
COM Interface: IPCBVariants
COM Interface: IPCBHoles
COM Interface: IPCBNets
COM Interface: IPCBPadstacks
COM Interface: IPCBDesigns
COM Interface: IPCBSelection
COM Interface: ICopperShapes
COM Interface: IFigures
COM Interface: IPCBTemplateSettings
COM Interface: IPCBApplication
Class Diagram for eCADSTAR PCB Editor