Schematic API Types reference

Note: The Altium Designer SDK is currently in the Beta phase and therefore evolving along with its documentation. This reference document, derived from the Altium Designer RTL documentation, is a work in progress and includes some aspects that are different to the new SDK.

The enumerated types are used for many of the schematic interfaces methods which are covered in this section.

For example the ISch_Port interface has a ConnectedEnd property which returns a TPortConnectedEnd type. You can use this Enumerated Types section to check what the range is for the TPortConnectedEnd type.

TAngle Copy Link Copied

TAngle = TReal;

TAutoPanStyle Copy Link Copied

TAutoPanStyle = (
eAutoPanOff,
eAutoPanFixedJump,
eAutoPanReCenter
);

TCrossSheetConnectorStyle Copy Link Copied

TCrossSheetConnectorStyle = (
eCrossSheetLeft,
eCrossSheetRight
);

TCoordRect Copy Link Copied

TCoordRect = Record
Case Integer of
0 :(left, bottom, right, top : TCoord);
1 :(x1, y1, x2, y2 : TCoord);
2 :(Location1, Location2 : TLocation);
End;

TCoord Copy Link Copied

TCoord = Integer;

TConnectivityScope Copy Link Copied

TConnectivityScope = (eConnectivity_ConnectionOnly, eConnectivity_WholeNet);

TConnectionNodeType Copy Link Copied

TConnectionNodeType = (eConnectionNode_IntraSheetLink, eConnectionNode_InterSheetLink, eConnectionNode_Hidden);

TComponentDisplay Copy Link Copied

TComponentDisplay = (
eCompBlock,
eCompDevice,
eCompPower,
eCompSymbol
);

TColor Copy Link Copied

Syntax
TColor = Graphics.TColor;
Notes
The TColor value specifies a 6 digit hexadecimal number of the $FFFFFF format. For example the color blue would be RGB:0,0,255 and Hex:FF0000 therefore the converted decimal value would be 16711680. The following formula may be used to calculate the required value, R+256*(G+(256*B)).
This TColor value is defined from the Graphics Unit of the Borland Delphi's VCL library.

Examples
Color=0 is black, Color=255 is red, Color=65280 is green Color=16711680 is blue Color=16777215 is white. Decimal or hexadecimal values can be assigned.
See also
ISch_Preferences
IComponentPainterView
ISch_GraphicalObject
ISch_TextFrame
ISch_SheetEntry
ISch_HarnessEntry
ISch_Component

TChosenDocumentScope Copy Link Copied

TChosenDocumentScope = (eScope_None, eScope_SingleDocument, eScope_ProjectDocuments, eScope_OpenDocuments);

TCursorMove Copy Link Copied

TCursorMove = (
eCursorLeft,
eCursorRight,
eCursorTop,
eCursorBottom);

TCursorShape Copy Link Copied

TCursorShape = (
eLargeCursor90,
eSmallCursor90,
eSmallCursor45,
eTinyCursor45);

TDistance Copy Link Copied

TDistance = Integer;

TDrawMode Copy Link Copied

TDrawMode = (
eDrawFull,
eDrawDraft,
eDrawHidden);

TDrawQuality Copy Link Copied

TDrawQuality = (eFullQuality,eDraftQuality);

TDynamicStirng Copy Link Copied

TDynamicString = AnsiString;

TIeeeSymbol Copy Link Copied

TIeeeSymbol = (
eNoSymbol,
eDot,
eRightLeftSignalFlow,
eClock,
eActiveLowInput,
eAnalogSignalIn,
eNotLogicConnection,
eShiftRight,
ePostPonedOutput,
eOpenCollector,
eHiz,
eHighCurrent,
ePulse,
eSchmitt,
eDelay,
eGroupLine,
eGroupBin,
eActiveLowOutput,
ePiSymbol,
eGreaterEqual,
eLessEqual,
eSigma,
eOpenCollectorPullUp,
eOpenEmitter,
eOpenEmitterPullUp,
eDigitalSignalIn,
eAnd,
eInvertor,
eOr,
eXor,
eShiftLeft,
eInputOutput,
eOpenCircuitOutput,
eLeftRightSignalFlow,
eBidirectionalSignalFlow);

T FindReplaceIdentifierScope Copy Link Copied

TFindReplaceIdentifierScope = (
eFindReplace_AllIdentifiers,
eFindReplace_NetIdentifiersOnly,
eFindReplace_DesignatorsOnly);

THorizontalAlign Copy Link Copied

THorizontalAlign = (
eHorizontalCentreAlign, // eVerticalCentreAlign
eLeftAlign, // eTopAlign
eRightAlign // eBottomAlign
);

THitTestResult Copy Link Copied

THitTestResult = (eHitTest_Fail,
eHitTest_NoAction,
eHitTest_Move,
eHitTest_InPlaceEdit,
eHitTest_CopyPaste,
eHitTest_Resize_Any,
eHitTest_Resize_EndAngle,
eHitTest_Resize_StartAngle,
eHitTest_Resize_SecondaryRadius,
eHitTest_Resize_Radius,
eHitTest_Resize_CornerTopLeft,
eHitTest_Resize_CornerTopRight,
eHitTest_Resize_CornerBottomRight,
eHitTest_Resize_CornerBottomLeft,
eHitTest_Resize_SideLeft,
eHitTest_Resize_SideRight,
eHitTest_Resize_SideTop ,
eHitTest_Resize_SideBottom,
eHitTest_Resize_Vertical,
eHitTest_Resize_Horizontal,
eHitTest_Resize_SE_NW,
eHitTest_Resize_SW_NE);

THitTestMode Copy Link Copied

THitTestMode = (
eHitTest_AllObjects,
eHitTest_OnlyAccessible
);

TEditingAction Copy Link Copied

TEditingAction = (eEditAction_DontCare, eEditAction_Move, eEditAction_Change,eEditAction_Delete,eEditAction_Select);

TFontName Copy Link Copied

TFontName = String lf_FaceSize + 1;

TFontID Copy Link Copied

TFontID = Integer;

TFileName Copy Link Copied

TFileName = TString;

TGridPreset Copy Link Copied

TGridPreset = (eDXPPreset, eCoarse2, eCoarse3, eFine2, eFine3, eElectrical);

TIterationDepth Copy Link Copied

TIterationDepth = (eIterateFirstLevel, eIterateFilteredLevels, eIterateAllLevels);

TLeftRightSide Copy Link Copied

TLeftRightSide = (
eLeftSide,
eRightSide,
eTopSide,
eBottomSide
);

TLibraryAutoZoom Copy Link Copied

TLibraryAutoZoom = (lazNoZoomChange, lazRememberLast, lazCenter);

TLibraryScope Copy Link Copied

TLibraryScope = (lsCurrentComponnet, lsAllComponents);

TLinePlaceMode Copy Link Copied

TLinePlaceMode = (eLineAnyAngle,
eLine90Start,
eLine90End,
eLine45Start,
eLine45End,
eLineArcStart,
eLineArcEnd,
eAutoWire );

TLineShape Copy Link Copied

TLineShape = (
eLineShapeNone,
eLineShapeArrow,
eLineShapeSolidArrow,
eLineShapeTail,
eLineShapeSolidTail,
eLineShapeCircle,
eLineShapeSquare
);

TLineStyle Copy Link Copied

TLineStyle = (
eLineStyleSolid,
eLineStyleDashed,
eLineStyleDotted
);

TLocation Copy Link Copied

Type
TLocation = TPoint;
Description
The TLocation type is used to define a point in X,Y coordinates for a design object.
Where the TPoint = packed record X: Longint; Y: Longint;end;
See also
ISch_GraphicalObject interface
ISch_Line
ISch_Rectangle
ISch_HarnessConnector
ISch_Polygon
IConnection
IConnectionArray

TMyRect Copy Link Copied

TMyRect = Record
Left,Right,Top, Bottom, Width, Height : Integer;
End;

TOrcadFootprint Copy Link Copied

TOrcadFootPrint = (
ePartfield1,
ePartfield2,
ePartfield3,
ePartfield4,
ePartfield5,
ePartfield6,
ePartfield7,
ePartfield8,
eIgnore);

TObjectAttribute Copy Link Copied

TObjectAttribute = (eObjectAttribute_ObjectId,
eObjectAttribute_DocumentName,
eObjectAttribute_Color,
eObjectAttribute_TextColor,
eObjectAttribute_AreaColor,
eObjectAttribute_LocationX,
eObjectAttribute_LocationY,
eObjectAttribute_CornerLocationX,
eObjectAttribute_CornerLocationY,
eObjectAttribute_OwnerPartId,
eObjectAttribute_OwnerPartDisplayMode,
eObjectAttribute_Width,
eObjectAttribute_Radius,
eObjectAttribute_Solid,
eObjectAttribute_Transparent,
eObjectAttribute_StartAngle,
eObjectAttribute_EndAngle,
eObjectAttribute_SecondaryRadius,
eObjectAttribute_StringText,
eObjectAttribute_LongStringText,
eObjectAttribute_LineStyle,
eObjectAttribute_StartLineShape,
eObjectAttribute_EndLineShape,
eObjectAttribute_LineShapeSize,
eObjectAttribute_IsHidden,
eObjectAttribute_FontId,
eObjectAttribute_Orientation,
eObjectAttribute_HorizontalJustification,
eObjectAttribute_VerticalJustification,
eObjectAttribute_TextHorizontalAnchor,
eObjectAttribute_TextVerticalAnchor,
eObjectAttribute_Alignment,
eObjectAttribute_BorderWidth,
eObjectAttribute_LineWidth,
eObjectAttribute_JunctionSize,
eObjectAttribute_Locked,
eObjectAttribute_Accessible,
eObjectAttribute_Name,
eObjectAttribute_OwnerName,
eObjectAttribute_Description,
eObjectAttribute_ShowName,
eObjectAttribute_IsMirrored,
eObjectAttribute_DesignatorLocked,
eObjectAttribute_PartIdLocked,
eObjectAttribute_PinsMoveable,
eObjectAttribute_FileName,
eObjectAttribute_TargetFileName,
eObjectAttribute_ImageKeepAspect,
eObjectAttribute_ImageEmbed,
eObjectAttribute_ParametersList,
eObjectAttribute_ParameterValue,
eObjectAttribute_ParameterName,
eObjectAttribute_ParameterType,
eObjectAttribute_ParameterReadOnlyState,
eObjectAttribute_ParameterAllowLibrarySynchronize,
eObjectAttribute_ParameterAllowDatabaseSynchronize,
eObjectAttribute_TextAutoposition,
eObjectAttribute_PinWidth,
eObjectAttribute_PinFormalType,
eObjectAttribute_PinDefaultValue,
eObjectAttribute_PinDesignator,
eObjectAttribute_PinHiddenNetName,
eObjectAttribute_PinShowDesignator,
eObjectAttribute_PinElectrical,
eObjectAttribute_PinLength,
eObjectAttribute_PinIeeeSymbolInner,
eObjectAttribute_PinIeeeSymbolOuter,
eObjectAttribute_PinIeeeSymbolInnerEdge,
eObjectAttribute_PinIeeeSymbolOuterEdge,
eObjectAttribute_PinSwapId_Pin,
eObjectAttribute_PinSwapId_Part,
eObjectAttribute_PinSwapId_PartPin,
eObjectAttribute_PortArrowStyle,
eObjectAttribute_PortIOType,
eObjectAttribute_PowerObjectStyle,
eObjectAttribute_PowerObjectShowNetName,
eObjectAttribute_CrossSheetConnectorStyle,
eObjectAttribute_RoundRectangleCornerRadiusX,
eObjectAttribute_RoundRectangleCornerRadiusY,
eObjectAttribute_SchComponentLibraryName,
eObjectAttribute_SchComponentLibReference,
eObjectAttribute_SchComponentDesignator,
eObjectAttribute_SchComponentDisplayMode,
eObjectAttribute_SchComponentPartId,
eObjectAttribute_SchComponentComment,
eObjectAttribute_SchComponentFootprint,
eObjectAttribute_SchComponentKind,
eObjectAttribute_ShowHiddenFields,
eObjectAttribute_ShowHiddenPins,
eObjectAttribute_ShowDesignator,
eObjectAttribute_SheetFileName,
eObjectAttribute_SheetName,
eObjectAttribute_SheetEntrySide,
eObjectAttribute_SheetEntryDistanceFromTop,
eObjectAttribute_IeeeSymbol,
eObjectAttribute_SymbolScaleFactor,
eObjectAttribute_TaskHolderProcess,
eObjectAttribute_TaskHolderInstanceName,
eObjectAttribute_TaskHolderConfiguration,
eObjectAttribute_TextFrameWordWrap,
eObjectAttribute_TextFrameShowBorder,
eObjectAttribute_TextFrameClipToRect,
eObjectAttribute_Author,
eObjectAttribute_Collapsed,
eObjectAttribute_ErrorKind,
eObjectAttribute_SelectedVertex_X,
eObjectAttribute_SelectedVertex_Y,
eObjectAttribute_SelectedVertex2_X,
eObjectAttribute_SelectedVertex2_Y,
eObjectAttribute_UnionIndex,
eObjectAttribute_DatabaseTableName,
eObjectAttribute_SchComponentUseLibraryName,
eObjectAttribute_SchComponentUseDBTableName,
eObjectAttribute_DesignItemID,
eObjectAttribute_OpenBusComponentKind,
eobjectAttribute_PrimaryConnectionPosition,
eObjectAttribute_HarnessConnectorSide,
eObjectAttribute_HarnessType,
eObjectAttribute_HideHarnessConnectorType,
eObjectAttribute_BusTextStyle,
eObjectAttribute_ArrowKind,
eObjectAttribute_OpenBusPortType,
eObjectAttribute_OpenBusPortLink,
eObjectAttribute_OpenBusLinkMasterPort,
eObjectAttribute_OpenBusLinkSlavePort
);

TObjectCreationMode Copy Link Copied

TObjectCreationMode = (eCreate_Default, eCreate_GlobalCopy);

TObjectId Copy Link Copied

TObjectId = (eFirstObjectID,
eClipBoardContainer,
eNote,
eProbe,
eRectangle,
eLine,
eConnectionLine,
eBusEntry,
eArc,
eEllipticalArc,
eRoundRectangle,
eImage,
ePie,
eTextFrame,
eEllipse,
eJunction,
ePolygon,
ePolyline,
eWire,
eBus,
eBezier,
eLabel,
eNetLabel,
eDesignator,
eSchComponent,
eParameter,
eParameterSet,
eParameterList,
eSheetName,
eSheetFileName,
eSheet,
eSchLib,
eSymbol,
eNoERC,
eErrorMarker,
ePin,
ePort,
ePowerObject,
eSheetEntry,
eSheetSymbol,
eTemplate,
eTaskHolder,
eMapDefiner,
eImplementationMap,
eImplementation,
eImplementationsList,
eCrossSheetConnector,
eCompileMask,
eOpenBusComponent,
eOpenBusLink,
eOpenBusDesignator,
eHarnessConnector,
eHarnessEntry,
eHarnessConnectorType,
eSignalHarness,
eOpenBusPort,
eLastObjectId
);

TObjectSet Copy Link Copied

TObjectSet = Set Of TObjectID;

TOpenBusPortType Copy Link Copied

TOpenBusPortType = (obptUnspecified, obptMaster, obptSlave);

TOpenBusComponentKind Copy Link Copied

TOpenBusComponentKind = (obckProcessor, obckArbiter, obckInterconnect, obckPeripheral, obckMemory, obckConnector, obckTerminator);

TOpenBusPortKind Copy Link Copied

TOpenBusPortKind = (obpkPeripheralMaster, obpkPeripheralSlave,
obpkArbiterMaster , obpkArbiterSlave,
obpkInterconMaster , obpkInterconSlave,
obpkConnectorMaster , obpkConnectorSlave)

TOpenBusInternalPinType Copy Link Copied

TOpenBusInternalPinType = (iptInterrupt, iptReset, iptClock);

TParameter_ReadOnlyState Copy Link Copied

TParameter_ReadOnlyState = (
eReadOnly_None,
eReadOnly_Name,
eReadOnly_Value,
eReadOnly_NameAndValue
);

TParameterType Copy Link Copied

TParameterType = (eParameterType_String,
eParameterType_Boolean,
eParameterType_Integer,
eParameterType_Float);

TPinElectrical Copy Link Copied

TPinElectrical = (
eElectricInput,
eElectricIO,
eElectricOutput,
eElectricOpenCollector,
eElectricPassive,
eElectricHiZ,
eElectricOpenEmitter,
eElectricPower);

TPlacementMode Copy Link Copied

TPlacementMode = (ePlacementMode_Single, ePlacementMode_Multiple);

TPolylineCutterMode Copy Link Copied

TPolylineCutterMode = (eCutterSnapToSegment, eCutterGridSize, eCutterFixedLength);

TPortArrowStyle Copy Link Copied

TPortArrowStyle = (
ePortNone,
ePortLeft,
ePortRight,
ePortLeftRight,
ePortNoneVertical,
ePortTop,
ePortBottom,
ePortTopBottom
);

TPortConnectedEnd Copy Link Copied

TPortConnectedEnd = (
ePortConnectedEnd_None,
ePortConnectedEnd_Origin, //connected at port Location
ePortConnectedEnd_Extremity, //connected at the other end
ePortConnectedEnd_Both //connected at both ends
);

TPortIO Copy Link Copied

TPortIO = (
ePortUnspecified,
ePortOutput,
ePortInput,
ePortBidirectional
);

TPowerObjectStyle Copy Link Copied

TPowerObjectStyle = (
ePowerCircle,
ePowerArrow,
ePowerBar,
ePowerWave,
ePowerGndPower,
ePowerGndSignal,
ePowerGndEarth
);

TProbeMethod Copy Link Copied

TProbeMethod = (
eProbeMethodAllNets,
eProbeMethodProbedNetsOnly
);

TRotationBy90 Copy Link Copied

TRotationBy90 =
eRotate0,
eRotate90,
eRotate180,
eRotate270
);

TPrintKind Copy Link Copied

TPrintKind = (ePrintKind_FullColor,ePrintKind_GrayScale,ePrintKind_Monochrome);

TPlacementResult Copy Link Copied

TPlacementResult = (eSingleObjectPlacementProcessAborted,eWholeObjectPlacementAborted, eObjectPlacementSuccessfull);

TReal Copy Link Copied

TReal = Double;

TRectangleStyle Copy Link Copied

TRectangleStyle = (
eRectangleHollow,
eRectangleSolid
);

TSchDropAction Copy Link Copied

TSchDropAction = (eDropAction_None,
eDropAction_AskOpenOrInsertText,
eDropAction_WarnBinaryAsText,
eDropAction_OpenInEditor,
eDropAction_OpenAsText,
eDropAction_Insert);

TSelectionState Copy Link Copied

TSelectionState = (eSelectionState_None,
eSelectionState_FirstSelected,
eSelectionState_MultiSelected,
eSelectionState_VerticesSelected);

TSelectionMatch Copy Link Copied

TypeTSelectionMatch = (
eMatchSelected,
eMatchedNotSelected,
eMatchAnySelection
);

TSheetDocumentBorderStyle Copy Link Copied

TSheetDocumentBorderStyle = (
eSheetStandard,
eSheetAnsi
);

TSheetOrientation Copy Link Copied

TSheetOrientation = (eLandscape, ePortrait);

TSheetStyle Copy Link Copied

TSheetStyle = (
eSheetA4,
eSheetA3,
eSheetA2,
eSheetA1,
eSheetA0,
eSheetA,
eSheetB,
eSheetC,
eSheetD,
eSheetE,
eSheetLetter,
eSheetLegal,
eSheetTabloid,
eSheetOrcadA,
eSheetOrcadB,
eSheetOrcadC,
eSheetOrcadD,
eSheetOrcadE
);

TShowCutterMarkersMode Copy Link Copied

TShowCutterMarkersMode = (eMarkersNever, eMarkersAlways, eMarkersOnPolyline);

TShowCutterBoxMode Copy Link Copied

TShowCutterBoxMode = (eBoxNever, eBoxAlways, eBoxOnPolyline);

TSide Copy Link Copied

TSide = (
eLeft,
eBottom,
eRight,
eTop
);

TSize Copy Link Copied

TSize = (
eZeroSize,
eSmall,
eMedium,
eLarge
);

TSignalLayer Copy Link Copied

TSignalLayer = (
eNoSignalLayer,
eTopSignalLayer,
eMidSignalLayer1,
eMidSignalLayer2,
eMidSignalLayer3,
eMidSignalLayer4,
eMidSignalLayer5,
eMidSignalLayer6,
eMidSignalLayer7,
eMidSignalLayer8,
eMidSignalLayer9,
eMidSignalLayer10,
eMidSignalLayer11,
eMidSignalLayer12,
eMidSignalLayer13,
eMidSignalLayer14,
eBottomSignalLayer,
eMultiSignalLayer,
ePowerLayer1,
ePowerLayer2,
ePowerLayer3,
ePowerLayer4
);

TStdLogicState Copy Link Copied

TStdLogicState = (eStdLogic_Unitialized,
eStdLogic_ForcingUnknown,
eStdLogic_Forcing0,
eStdLogic_Forcing1,
eStdLogic_HiZ,
eStdLogic_WeakUnknown,
eStdLogic_Weak0,
eStdLogic_Weak1,
eStdLogic_DontCare);

TStringIncrementStyle Copy Link Copied

TStringIncrementStyle = (eSIS_None, eSIS_HorizontalFirst, eSIS_VerticalFirst);

TTextHorzAnchor Copy Link Copied

TTextHorzAnchor = (
eTextHorzAnchor_None,
eTextHorzAnchor_Both,
eTextHorzAnchor_Left,
eTextHorzAnchor_Right
);

TTextJustification Copy Link Copied

TTextJustification = (
eJustify_BottomLeft,
eJustify_BottomCenter,
eJustify_BottomRight,
eJustify_CenterLeft,
eJustify_Center,
eJustify_CenterRight,
eJustify_TopLeft,
eJustify_TopCenter,
eJustify_TopRight
);

TTextVertAnchor Copy Link Copied

TTextVertAnchor = (
eTextVertAnchor_None,
eTextVertAnchor_Both,
eTextVertAnchor_Top,
eTextVertAnchor_Bottom
);

TUpperLowerCase Copy Link Copied

TUpperLowerCase = (eUpperCase, eLowerCase, eAnyCase);

TUnit Copy Link Copied

TUnit = (eMil, eMM, eIN, eCM, eDXP, eM, eAutoImperial, eAutoMetric);

TUnitSet Copy Link Copied

TUnitSet = Set Of TUnit;

TUnitSystem Copy Link Copied

TUnitSystem = (eImperial, eMetric);

TVerticalAlign Copy Link Copied

TVerticalAlign = (
eVerticalCentreAlign,
eTopAlign,
eBottomAlign
);

TVisibleGrid Copy Link Copied

TVisibleGrid = (
eDotGrid,
eLineGrid
);

TVHOrientation Copy Link Copied

THVOrientation = (
eHorizontal,
eVertical
);

TWidthArray Copy Link Copied

TWidthArray = Array [TSize] of Integer;

If you find an issue, select the text/image and pressCtrl + Enterto send us your feedback.