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.

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.