COM Interface: ISchComponent
This class provides access to the component instance in the schematic design.
Members
Functions
Property | Description |
---|---|
void ChangePart(BSTR newPartName, BSTR alternate = "", long gateNumber = 1) | Changes the part of the component to the specified part. Uses an alternate symbol if specified. |
void ChangeSymbol(BSTR symbolName, BSTR alternate = "") | Changes the symbol of the component to the specified one. Uses an alternate symbol if specified. |
void Delete() | Deletes the component. |
Properties
Property | Description |
---|---|
double Angle {get} {set} | Returns or sets the angle of the component. |
long BitCount {get} | Returns the bit count for the component. |
long BitNumber {get} | Returns the bit number of the component. |
ISchBlock Block {get} | Returns the block for the component. If the component is not a block, then a null value is returned. |
ISchComponents BundledComponents {get} | Returns a list of bundled components associated with a component. |
ISchComponent Bundle {get} | Returns the parent component which the component is bundled with. If the pin is not bundled, then this command fails. |
VARIANT_BOOL Bundled {get} | If the component is bundled, then the value "true" is returned. |
OLE_COLOR Color {get} {set} | Returns or sets the color of the component. |
long CoodinateX {get} {set} | Returns or sets the X coordinate of the component's position. |
long CoodinateY {get} {set} | Returns or sets the Y coordinate of the component's position. |
VARIANT_BOOL Fitted {get} {set} | If the component is fitted, then the value "true" is returned. |
VARIANT_BOOL HasVariant {get} | If the component has a variant, then the value "true" is returned. |
VARIANT_BOOL Mirror {get} | If the component is mirrored, then the value "true" is returned. |
BSTR PartName {get} | Returns the system-defined property Part Name for the component. |
ISchPins Pins {get} | Returns the pins on the component. |
IProperties Properties {get} | Returns the collection of properties for the component, including part properties and symbol properties. These are copied to the component in the schematic design. |
BSTR ReferenceDesignator {get} {set} | Returns or sets the system-defined property Reference Designator. |
double Scale {get} {set} | Returns or sets the scale of the component. |
ISchSheet Sheet {get} | Returns the sheet that contains this component. |
ISymbol Symbol {get} | Returns the symbol for the component. |
BSTR SymbolAlternate {get} | Returns the Symbol().Alternate() value for the component. |
BSTR SymbolName {get} | Returns the Symbol().Name() value for the component. |
BSTR Type {get} | Returns the type of the component. |
ISchVariationType VariationType {get} | Returns the variation type for the component. |
BSTR VariationType {set} | Sets the name of the variation type for the component. |
BSTR ObjectId {get} | Returns the Object ID for the component. |