@windypro-rourou/dsh-eda 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/backend.js +49 -0
- package/lib/capabilities.js +6 -2
- package/lib/client.js +33 -0
- package/lib/index.js +197 -3
- package/package.json +10 -1
- package/skill/INDEX.md +10 -8
- package/skill/README.md +125 -0
- package/skill/README.zh-Hans.md +125 -0
- package/skill/SKILL.md +746 -746
- package/skill/format/index.md +152 -152
- package/skill/format/pcb/3d.md +166 -166
- package/skill/format/pcb/attr.md +63 -63
- package/skill/format/pcb/common.md +306 -306
- package/skill/format/pcb/component.md +132 -132
- package/skill/format/pcb/dimension.md +58 -58
- package/skill/format/pcb/index.md +17 -17
- package/skill/format/pcb/obj.md +43 -43
- package/skill/format/pcb/pad_via.md +151 -151
- package/skill/format/pcb/panel.md +64 -64
- package/skill/format/pcb/partition.md +43 -43
- package/skill/format/pcb/primitive.md +196 -196
- package/skill/format/pcb/rule.md +71 -71
- package/skill/format/pcb/shape.md +441 -441
- package/skill/format/pcb/text.md +62 -62
- package/skill/format/project/blob.md +30 -30
- package/skill/format/project/common.md +42 -42
- package/skill/format/project/group.md +62 -62
- package/skill/format/project/index.md +12 -12
- package/skill/format/project/instance.md +32 -32
- package/skill/format/project/meta.md +189 -189
- package/skill/format/project/variant.md +30 -30
- package/skill/format/schematic/attr.md +41 -41
- package/skill/format/schematic/common.md +47 -47
- package/skill/format/schematic/component.md +91 -91
- package/skill/format/schematic/index.md +14 -14
- package/skill/format/schematic/obj.md +41 -41
- package/skill/format/schematic/pin.md +59 -59
- package/skill/format/schematic/shape.md +231 -231
- package/skill/format/schematic/structure.md +53 -53
- package/skill/format/schematic/table.md +109 -109
- package/skill/format/schematic/text.md +47 -47
- package/skill/format/schematic/wire.md +132 -132
- package/skill/guide/ancillary-projects/easyeda-api-sdk.md +1 -0
- package/skill/guide/ancillary-projects/pro-api-types.md +5 -5
- package/skill/guide/ancillary-projects.md +10 -10
- package/skill/guide/cli.md +1510 -0
- package/skill/guide/error-handling.md +38 -38
- package/skill/guide/extension-json.md +135 -135
- package/skill/guide/extensions-marketplace.md +61 -61
- package/skill/guide/how-to-start.md +316 -301
- package/skill/guide/i18n.md +57 -57
- package/skill/guide/index.md +7 -7
- package/skill/guide/inline-frame.md +20 -20
- package/skill/guide/invoke-apis.md +81 -81
- package/skill/guide/stability.md +37 -37
- package/skill/references/_index.md +471 -398
- package/skill/references/_quick-reference.md +3103 -3028
- package/skill/references/classes/DMT_Board.md +537 -533
- package/skill/references/classes/DMT_EditorControl.md +1736 -1736
- package/skill/references/classes/DMT_Event.md +356 -356
- package/skill/references/classes/DMT_Folder.md +775 -775
- package/skill/references/classes/DMT_Panel.md +531 -531
- package/skill/references/classes/DMT_Pcb.md +579 -575
- package/skill/references/classes/DMT_Project.md +734 -573
- package/skill/references/classes/DMT_Schematic.md +1482 -1477
- package/skill/references/classes/DMT_SelectControl.md +96 -96
- package/skill/references/classes/DMT_Team.md +172 -172
- package/skill/references/classes/DMT_Workspace.md +198 -198
- package/skill/references/classes/EDA.md +1001 -961
- package/skill/references/classes/IPCB_ComplexPolygon.md +299 -299
- package/skill/references/classes/IPCB_Polygon.md +175 -175
- package/skill/references/classes/IPCB_PrimitiveArc.md +1901 -1901
- package/skill/references/classes/IPCB_PrimitiveAttribute.md +2993 -2993
- package/skill/references/classes/IPCB_PrimitiveComponent.md +2624 -2627
- package/skill/references/classes/IPCB_PrimitiveComponentPad.md +410 -410
- package/skill/references/classes/IPCB_PrimitiveDimension.md +1419 -1419
- package/skill/references/classes/IPCB_PrimitiveFill.md +1325 -1325
- package/skill/references/classes/IPCB_PrimitiveImage.md +1461 -1461
- package/skill/references/classes/IPCB_PrimitiveLine.md +1639 -1639
- package/skill/references/classes/IPCB_PrimitiveObject.md +1700 -1700
- package/skill/references/classes/IPCB_PrimitivePad.md +3155 -3155
- package/skill/references/classes/IPCB_PrimitivePolyline.md +1193 -1193
- package/skill/references/classes/IPCB_PrimitivePour.md +1858 -1858
- package/skill/references/classes/IPCB_PrimitivePoured.md +556 -556
- package/skill/references/classes/IPCB_PrimitiveRegion.md +1332 -1332
- package/skill/references/classes/IPCB_PrimitiveString.md +2315 -2315
- package/skill/references/classes/IPCB_PrimitiveVia.md +1588 -1588
- package/skill/references/classes/ISCH_PrimitiveArc.md +1676 -1676
- package/skill/references/classes/ISCH_PrimitiveAttribute.md +2541 -2541
- package/skill/references/classes/ISCH_PrimitiveBus.md +973 -973
- package/skill/references/classes/ISCH_PrimitiveCbbSymbolComponent.md +260 -260
- package/skill/references/classes/ISCH_PrimitiveCircle.md +1392 -1392
- package/skill/references/classes/ISCH_PrimitiveComponent.md +2910 -2913
- package/skill/references/classes/ISCH_PrimitiveComponentPin.md +155 -155
- package/skill/references/classes/ISCH_PrimitiveObject.md +960 -960
- package/skill/references/classes/ISCH_PrimitivePin.md +2402 -2402
- package/skill/references/classes/ISCH_PrimitivePolygon.md +1028 -1028
- package/skill/references/classes/ISCH_PrimitiveRectangle.md +1777 -1777
- package/skill/references/classes/ISCH_PrimitiveText.md +1771 -1771
- package/skill/references/classes/ISCH_PrimitiveWire.md +973 -973
- package/skill/references/classes/LIB_3DModel.md +782 -780
- package/skill/references/classes/LIB_Cbb.md +957 -957
- package/skill/references/classes/LIB_Classification.md +969 -965
- package/skill/references/classes/LIB_Device.md +1222 -1221
- package/skill/references/classes/LIB_Footprint.md +1298 -1153
- package/skill/references/classes/LIB_LibrariesList.md +361 -329
- package/skill/references/classes/LIB_PanelLibrary.md +855 -855
- package/skill/references/classes/LIB_SelectControl.md +89 -89
- package/skill/references/classes/LIB_SimulationModel.md +807 -821
- package/skill/references/classes/LIB_Symbol.md +1341 -1195
- package/skill/references/classes/PCB_Document.md +1770 -1754
- package/skill/references/classes/PCB_Drc.md +3379 -3375
- package/skill/references/classes/PCB_Event.md +1166 -1081
- package/skill/references/classes/PCB_ImageTool.md +363 -0
- package/skill/references/classes/PCB_Layer.md +1915 -1911
- package/skill/references/classes/PCB_ManufactureData.md +2968 -2968
- package/skill/references/classes/PCB_MathPolygon.md +916 -785
- package/skill/references/classes/PCB_Net.md +1128 -1128
- package/skill/references/classes/PCB_Primitive.md +217 -217
- package/skill/references/classes/PCB_PrimitiveArc.md +820 -894
- package/skill/references/classes/PCB_PrimitiveAttribute.md +635 -717
- package/skill/references/classes/PCB_PrimitiveComponent.md +1050 -1050
- package/skill/references/classes/PCB_PrimitiveDimension.md +789 -833
- package/skill/references/classes/PCB_PrimitiveFill.md +783 -861
- package/skill/references/classes/PCB_PrimitiveImage.md +803 -875
- package/skill/references/classes/PCB_PrimitiveLine.md +787 -858
- package/skill/references/classes/PCB_PrimitiveObject.md +796 -800
- package/skill/references/classes/PCB_PrimitivePad.md +947 -944
- package/skill/references/classes/PCB_PrimitivePolyline.md +744 -819
- package/skill/references/classes/PCB_PrimitivePour.md +808 -845
- package/skill/references/classes/PCB_PrimitivePoured.md +363 -363
- package/skill/references/classes/PCB_PrimitiveRegion.md +765 -799
- package/skill/references/classes/PCB_PrimitiveString.md +828 -910
- package/skill/references/classes/PCB_PrimitiveVia.md +761 -765
- package/skill/references/classes/PCB_RayTracerEngine.md +603 -263
- package/skill/references/classes/PCB_SelectControl.md +495 -495
- package/skill/references/classes/PCB_Tool.md +9 -0
- package/skill/references/classes/PNL_Document.md +83 -83
- package/skill/references/classes/SCH_Document.md +797 -809
- package/skill/references/classes/SCH_Drc.md +246 -242
- package/skill/references/classes/SCH_Event.md +583 -583
- package/skill/references/classes/SCH_ManufactureData.md +1209 -1205
- package/skill/references/classes/SCH_Net.md +200 -200
- package/skill/references/classes/SCH_Netlist.md +191 -191
- package/skill/references/classes/SCH_Primitive.md +337 -337
- package/skill/references/classes/SCH_PrimitiveArc.md +686 -692
- package/skill/references/classes/SCH_PrimitiveAttribute.md +579 -590
- package/skill/references/classes/SCH_PrimitiveBus.md +618 -624
- package/skill/references/classes/SCH_PrimitiveCircle.md +667 -683
- package/skill/references/classes/SCH_PrimitiveComponent.md +2256 -2240
- package/skill/references/classes/SCH_PrimitiveObject.md +666 -666
- package/skill/references/classes/SCH_PrimitivePin.md +737 -754
- package/skill/references/classes/SCH_PrimitivePolygon.md +621 -627
- package/skill/references/classes/SCH_PrimitiveRectangle.md +715 -731
- package/skill/references/classes/SCH_PrimitiveText.md +736 -746
- package/skill/references/classes/SCH_PrimitiveWire.md +701 -703
- package/skill/references/classes/SCH_SelectControl.md +520 -520
- package/skill/references/classes/SCH_SimulationEngine.md +133 -133
- package/skill/references/classes/SCH_Utils.md +121 -121
- package/skill/references/classes/SYS_ClientUrl.md +173 -173
- package/skill/references/classes/SYS_Dialog.md +825 -825
- package/skill/references/classes/SYS_Environment.md +640 -502
- package/skill/references/classes/SYS_ExternalApi.md +246 -0
- package/skill/references/classes/SYS_FileManager.md +1664 -1686
- package/skill/references/classes/SYS_FileSystem.md +1366 -1171
- package/skill/references/classes/SYS_FontManager.md +224 -224
- package/skill/references/classes/SYS_FormatConversion.md +349 -349
- package/skill/references/classes/SYS_HeaderMenu.md +480 -479
- package/skill/references/classes/SYS_Help.md +141 -0
- package/skill/references/classes/SYS_I18n.md +861 -861
- package/skill/references/classes/SYS_IFrame.md +541 -535
- package/skill/references/classes/SYS_LoadingAndProgressBar.md +246 -246
- package/skill/references/classes/SYS_Log.md +422 -424
- package/skill/references/classes/SYS_Math.md +1565 -1565
- package/skill/references/classes/SYS_Message.md +363 -363
- package/skill/references/classes/SYS_MessageBox.md +285 -285
- package/skill/references/classes/SYS_MessageBus.md +1618 -1618
- package/skill/references/classes/SYS_PanelControl.md +696 -696
- package/skill/references/classes/SYS_RightClickMenu.md +175 -175
- package/skill/references/classes/SYS_Setting.md +134 -85
- package/skill/references/classes/SYS_ShortcutKey.md +623 -623
- package/skill/references/classes/SYS_Storage.md +484 -484
- package/skill/references/classes/SYS_Timer.md +447 -447
- package/skill/references/classes/SYS_ToastMessage.md +194 -194
- package/skill/references/classes/SYS_Tool.md +317 -241
- package/skill/references/classes/SYS_Unit.md +594 -594
- package/skill/references/classes/SYS_WebSocket.md +401 -401
- package/skill/references/classes/SYS_Window.md +849 -850
- package/skill/references/enums/EDMT_EditorDocumentType.md +324 -278
- package/skill/references/enums/EDMT_EditorSplitScreenDirection.md +51 -47
- package/skill/references/enums/EDMT_EditorTabEventType.md +68 -62
- package/skill/references/enums/EDMT_IndicatorMarkerType.md +90 -80
- package/skill/references/enums/EDMT_ItemType.md +181 -157
- package/skill/references/enums/EDMT_ProjectCollaborationMode.md +51 -47
- package/skill/references/enums/EDMT_ProjectFileFormat.md +60 -0
- package/skill/references/enums/EDMT_ProjectReadyState.md +82 -0
- package/skill/references/enums/ELIB_DeviceJlcLibraryCategory.md +51 -47
- package/skill/references/enums/ELIB_LibraryType.md +129 -113
- package/skill/references/enums/ELIB_PreviewType.md +77 -69
- package/skill/references/enums/ELIB_SimulationModelType.md +51 -47
- package/skill/references/enums/ELIB_SymbolType.md +142 -124
- package/skill/references/enums/EPCB_AutoRoutingCornerStyle.md +51 -47
- package/skill/references/enums/EPCB_AutoRoutingExistingPrimitiveMode.md +51 -47
- package/skill/references/enums/EPCB_AutoRoutingOptimization.md +51 -47
- package/skill/references/enums/EPCB_DocumentCanvasUpdateCalculationActiveStatus.md +51 -47
- package/skill/references/enums/EPCB_DocumentRatlineCalculatingActiveStatus.md +55 -51
- package/skill/references/enums/EPCB_InactiveLayerDisplayMode.md +64 -58
- package/skill/references/enums/EPCB_LayerColorConfiguration.md +90 -80
- package/skill/references/enums/EPCB_LayerId.md +1169 -881
- package/skill/references/enums/EPCB_LayerStatus.md +64 -58
- package/skill/references/enums/EPCB_LayerType.md +129 -113
- package/skill/references/enums/EPCB_MouseEventType.md +64 -58
- package/skill/references/enums/EPCB_NetEventType.md +64 -58
- package/skill/references/enums/EPCB_PcbPlateType.md +51 -47
- package/skill/references/enums/EPCB_PdfOutputMethod.md +64 -58
- package/skill/references/enums/EPCB_PrimitiveArcInteractiveMode.md +51 -47
- package/skill/references/enums/EPCB_PrimitiveDimensionType.md +64 -58
- package/skill/references/enums/EPCB_PrimitiveEventType.md +64 -58
- package/skill/references/enums/EPCB_PrimitiveFillMode.md +68 -62
- package/skill/references/enums/EPCB_PrimitivePadHeatWeldingConnectionMethod.md +64 -58
- package/skill/references/enums/EPCB_PrimitivePadHoleType.md +64 -58
- package/skill/references/enums/EPCB_PrimitivePadShapeType.md +90 -80
- package/skill/references/enums/EPCB_PrimitivePadType.md +64 -58
- package/skill/references/enums/EPCB_PrimitivePourFillMethod.md +64 -58
- package/skill/references/enums/EPCB_PrimitiveRegionRuleType.md +107 -95
- package/skill/references/enums/EPCB_PrimitiveStringAlignMode.md +142 -124
- package/skill/references/enums/EPCB_PrimitiveType.md +233 -201
- package/skill/references/enums/EPCB_PrimitiveViaType.md +64 -58
- package/skill/references/enums/ESCH_DynamicSimulationEnginePullEventType.md +116 -102
- package/skill/references/enums/ESCH_DynamicSimulationEnginePushEventType.md +90 -80
- package/skill/references/enums/ESCH_ExportDocumentFileType.md +64 -58
- package/skill/references/enums/ESCH_MouseEventType.md +51 -47
- package/skill/references/enums/ESCH_PrimitiveComponentType.md +142 -124
- package/skill/references/enums/ESCH_PrimitiveEventType.md +77 -69
- package/skill/references/enums/ESCH_PrimitiveFillStyle.md +129 -113
- package/skill/references/enums/ESCH_PrimitiveLineType.md +77 -69
- package/skill/references/enums/ESCH_PrimitivePinShape.md +77 -69
- package/skill/references/enums/ESCH_PrimitivePinType.md +168 -146
- package/skill/references/enums/ESCH_PrimitiveTextAlignMode.md +142 -124
- package/skill/references/enums/ESCH_PrimitiveType.md +207 -179
- package/skill/references/enums/ESCH_SimulationNetlistType.md +38 -36
- package/skill/references/enums/ESCH_SpiceSimulationEnginePullEventType.md +51 -47
- package/skill/references/enums/ESCH_SpiceSimulationEnginePushEventType.md +77 -69
- package/skill/references/enums/ESYS_BottomPanelTab.md +94 -80
- package/skill/references/enums/ESYS_HeaderMenuEnvironment.md +181 -157
- package/skill/references/enums/ESYS_ImportProjectBoardOutlineSource.md +55 -51
- package/skill/references/enums/ESYS_ImportProjectImportOption.md +64 -58
- package/skill/references/enums/ESYS_ImportProjectSchematicObjectStyle.md +51 -47
- package/skill/references/enums/ESYS_ImportProjectViaSolderMaskExpansion.md +55 -51
- package/skill/references/enums/ESYS_JobState.md +95 -0
- package/skill/references/enums/ESYS_LeftPanelTab.md +94 -80
- package/skill/references/enums/ESYS_LogType.md +77 -102
- package/skill/references/enums/ESYS_NetlistType.md +129 -113
- package/skill/references/enums/ESYS_PanelPosition.md +69 -0
- package/skill/references/enums/ESYS_PanelTab.md +368 -0
- package/skill/references/enums/ESYS_RightPanelTab.md +237 -201
- package/skill/references/enums/ESYS_ShortcutKeyEffectiveEditorRange.md +220 -190
- package/skill/references/enums/ESYS_ShortcutKeyEffectiveEditorScene.md +103 -91
- package/skill/references/enums/ESYS_StartPageQuickStartItem.md +237 -205
- package/skill/references/enums/ESYS_Theme.md +51 -47
- package/skill/references/enums/ESYS_ToastMessageType.md +90 -80
- package/skill/references/enums/ESYS_Unit.md +116 -102
- package/skill/references/enums/ESYS_WindowEventType.md +64 -47
- package/skill/references/enums/ESYS_WindowOpenTarget.md +51 -47
- package/skill/references/enums/NetportDeviceName.md +146 -146
- package/skill/references/enums/SchToolBarDeviceName.md +278 -278
- package/skill/references/interfaces/BoardProps.md +169 -169
- package/skill/references/interfaces/BorderConfig.md +109 -0
- package/skill/references/interfaces/ButtonProps.md +196 -169
- package/skill/references/interfaces/CellClickInfo.md +142 -0
- package/skill/references/interfaces/CellCoord.md +88 -0
- package/skill/references/interfaces/CheckBoxProps.md +223 -196
- package/skill/references/interfaces/CheckChangeDetail.md +88 -0
- package/skill/references/interfaces/CheckboxEditConfig.md +159 -0
- package/skill/references/interfaces/ClipboardCellData.md +142 -0
- package/skill/references/interfaces/ClipboardConfig.md +115 -0
- package/skill/references/interfaces/ColorPickerProps.md +169 -0
- package/skill/references/interfaces/ColumnDef.md +605 -0
- package/skill/references/interfaces/ColumnEditTrigger.md +57 -0
- package/skill/references/interfaces/ColumnGroupDef.md +192 -0
- package/skill/references/interfaces/ColumnResizeConfig.md +142 -0
- package/skill/references/interfaces/ComponentPropsMap.md +517 -448
- package/skill/references/interfaces/CustomHeaderConfig.md +169 -0
- package/skill/references/interfaces/DialogProps.md +385 -385
- package/skill/references/interfaces/DragSortConfig.md +115 -0
- package/skill/references/interfaces/EditingConfig.md +196 -0
- package/skill/references/interfaces/FilteringConfig.md +250 -0
- package/skill/references/interfaces/FixedColumnConfig.md +88 -0
- package/skill/references/interfaces/FlexItemProps.md +116 -116
- package/skill/references/interfaces/FlexProps.md +224 -224
- package/skill/references/interfaces/GridItemProps.md +143 -143
- package/skill/references/interfaces/GridProps.md +143 -143
- package/skill/references/interfaces/IDMT_BoardItem.md +171 -171
- package/skill/references/interfaces/IDMT_BriefProjectItem.md +171 -171
- package/skill/references/interfaces/IDMT_EditorDocumentItem.md +169 -169
- package/skill/references/interfaces/IDMT_EditorSplitScreenItem.md +173 -173
- package/skill/references/interfaces/IDMT_EditorTabItem.md +169 -169
- package/skill/references/interfaces/IDMT_FolderItem.md +225 -225
- package/skill/references/interfaces/IDMT_IndicatorMarkerShape.md +393 -393
- package/skill/references/interfaces/IDMT_PanelItem.md +144 -144
- package/skill/references/interfaces/IDMT_PcbItem.md +171 -171
- package/skill/references/interfaces/IDMT_ProjectItem.md +143 -143
- package/skill/references/interfaces/IDMT_SchematicItem.md +225 -225
- package/skill/references/interfaces/IDMT_SchematicPageItem.md +198 -198
- package/skill/references/interfaces/IDMT_TeamItem.md +144 -144
- package/skill/references/interfaces/IDMT_WorkspaceItem.md +117 -117
- package/skill/references/interfaces/IDesignPortal.md +103 -103
- package/skill/references/interfaces/ILIB_3DModelItem.md +198 -198
- package/skill/references/interfaces/ILIB_3DModelSearchItem.md +277 -277
- package/skill/references/interfaces/ILIB_CbbItem.md +225 -225
- package/skill/references/interfaces/ILIB_CbbSearchItem.md +277 -277
- package/skill/references/interfaces/ILIB_ClassificationIndex.md +150 -150
- package/skill/references/interfaces/ILIB_ClassificationNode.md +98 -0
- package/skill/references/interfaces/ILIB_DeviceAssociationItem.md +210 -210
- package/skill/references/interfaces/ILIB_DeviceExtendPropertyItem.md +304 -304
- package/skill/references/interfaces/ILIB_DeviceItem.md +279 -279
- package/skill/references/interfaces/ILIB_DevicePropertiesForSearch.md +250 -250
- package/skill/references/interfaces/ILIB_DeviceSearchItem.md +521 -521
- package/skill/references/interfaces/ILIB_ExtendLibrary3DModelFunctions.md +64 -64
- package/skill/references/interfaces/ILIB_ExtendLibraryCbbFunctions.md +93 -99
- package/skill/references/interfaces/ILIB_ExtendLibraryClassificationIndex.md +150 -150
- package/skill/references/interfaces/ILIB_ExtendLibraryDeviceFunctions.md +143 -157
- package/skill/references/interfaces/ILIB_ExtendLibraryFootprintFunctions.md +63 -63
- package/skill/references/interfaces/ILIB_ExtendLibraryFunctions.md +123 -123
- package/skill/references/interfaces/ILIB_ExtendLibraryItem.md +97 -97
- package/skill/references/interfaces/ILIB_ExtendLibraryItemIndex.md +98 -98
- package/skill/references/interfaces/ILIB_ExtendLibrarySearchProperty.md +115 -115
- package/skill/references/interfaces/ILIB_ExtendLibrarySearchResult.md +169 -169
- package/skill/references/interfaces/ILIB_ExtendLibrarySearchResultDataLine.md +234 -234
- package/skill/references/interfaces/ILIB_ExtendLibrarySymbolFunctions.md +91 -105
- package/skill/references/interfaces/ILIB_ExtendLibraryUserIndex.md +96 -96
- package/skill/references/interfaces/ILIB_FootprintItem.md +256 -198
- package/skill/references/interfaces/ILIB_FootprintPropertiesForSearch.md +61 -61
- package/skill/references/interfaces/ILIB_FootprintSearchItem.md +277 -277
- package/skill/references/interfaces/ILIB_LibraryInfo.md +92 -92
- package/skill/references/interfaces/ILIB_LibraryItem.md +115 -115
- package/skill/references/interfaces/ILIB_PanelLibraryItem.md +198 -198
- package/skill/references/interfaces/ILIB_PanelLibrarySearchItem.md +277 -277
- package/skill/references/interfaces/ILIB_RegisterExtendLibraryProps.md +71 -0
- package/skill/references/interfaces/ILIB_SimulationModelItem.md +306 -306
- package/skill/references/interfaces/ILIB_SimulationModelSearchItem.md +304 -304
- package/skill/references/interfaces/ILIB_SymbolItem.md +306 -279
- package/skill/references/interfaces/ILIB_SymbolPropertiesForSearch.md +61 -61
- package/skill/references/interfaces/ILIB_SymbolSearchItem.md +304 -304
- package/skill/references/interfaces/IPCB_AutoLayoutResult.md +169 -169
- package/skill/references/interfaces/IPCB_AutoRoutingProps.md +220 -220
- package/skill/references/interfaces/IPCB_AutoRoutingResult.md +169 -169
- package/skill/references/interfaces/IPCB_BomPropertiesTableColumns.md +169 -169
- package/skill/references/interfaces/IPCB_DifferentialPairItem.md +115 -115
- package/skill/references/interfaces/IPCB_DiscretizeOptions.md +65 -65
- package/skill/references/interfaces/IPCB_DiscretizedPoint.md +88 -88
- package/skill/references/interfaces/IPCB_EqualLengthNetGroupItem.md +115 -115
- package/skill/references/interfaces/IPCB_LayerItem.md +277 -277
- package/skill/references/interfaces/IPCB_NetClassItem.md +115 -115
- package/skill/references/interfaces/IPCB_NetInfo.md +115 -115
- package/skill/references/interfaces/IPCB_PadPairGroupItem.md +88 -88
- package/skill/references/interfaces/IPCB_PadPairMinWireLengthItem.md +88 -88
- package/skill/references/interfaces/IPCB_PhysicalStackingConfiguration.md +115 -115
- package/skill/references/interfaces/IPCB_Primitive.md +218 -218
- package/skill/references/interfaces/IPCB_PrimitiveAPI.md +174 -175
- package/skill/references/interfaces/IPCB_PrimitivePadHeatWelding.md +151 -151
- package/skill/references/interfaces/IPCB_PrimitivePouredPourFill.md +142 -142
- package/skill/references/interfaces/IPCB_PrimitiveSolderMaskAndPasteMaskExpansion.md +154 -154
- package/skill/references/interfaces/IPCB_RayTracerBackgroundConfig.md +223 -0
- package/skill/references/interfaces/IPCB_RayTracerLightConfig.md +412 -0
- package/skill/references/interfaces/IPCB_RayTracerMaterialConfig.md +547 -0
- package/skill/references/interfaces/IPCB_RayTracerPcbMaterialConfig.md +196 -0
- package/skill/references/interfaces/IPCB_RayTracerRenderConfigurations.md +200 -0
- package/skill/references/interfaces/IPCB_RayTracerRendererConfig.md +196 -0
- package/skill/references/interfaces/IPCB_RayTracerSceneElement.md +115 -0
- package/skill/references/interfaces/IPCB_RayTracerSceneElementTransform.md +123 -0
- package/skill/references/interfaces/IPCB_RayTracerTexture.md +88 -0
- package/skill/references/interfaces/IPCB_SubstratePhysicalProperties.md +88 -88
- package/skill/references/interfaces/IRawNet.md +103 -103
- package/skill/references/interfaces/IRawPureSchematic.md +80 -80
- package/skill/references/interfaces/IRawSchematic.md +103 -103
- package/skill/references/interfaces/IRawWire.md +149 -149
- package/skill/references/interfaces/ISCH_DrcError.md +142 -142
- package/skill/references/interfaces/ISCH_DrcErrorPrimitive.md +142 -142
- package/skill/references/interfaces/ISCH_ExportPngResolution.md +94 -94
- package/skill/references/interfaces/ISCH_NetInfo.md +88 -88
- package/skill/references/interfaces/ISCH_Primitive.md +218 -219
- package/skill/references/interfaces/ISCH_PrimitiveAPI.md +174 -175
- package/skill/references/interfaces/ISCH_ProjectNetInfo.md +142 -142
- package/skill/references/interfaces/ISCH_WireInfo.md +169 -169
- package/skill/references/interfaces/ISYS_ComparisonResponse.md +115 -0
- package/skill/references/interfaces/ISYS_ExtensionExternalApiIndex.md +13 -0
- package/skill/references/interfaces/ISYS_ExtensionRegisteredExternalApis.md +13 -0
- package/skill/references/interfaces/ISYS_ExternalApiHelp.md +173 -0
- package/skill/references/interfaces/ISYS_ExternalApiRegistration.md +146 -0
- package/skill/references/interfaces/ISYS_FileSystemFileList.md +169 -169
- package/skill/references/interfaces/ISYS_HeaderMenuSub1MenuItem.md +205 -174
- package/skill/references/interfaces/ISYS_HeaderMenuSub2MenuItem.md +178 -147
- package/skill/references/interfaces/ISYS_HeaderMenuTopMenuItem.md +115 -115
- package/skill/references/interfaces/ISYS_HeaderMenus.md +408 -408
- package/skill/references/interfaces/ISYS_HelpAudienceEntry.md +92 -0
- package/skill/references/interfaces/ISYS_HelpClassSummary.md +205 -0
- package/skill/references/interfaces/ISYS_HelpData.md +92 -0
- package/skill/references/interfaces/ISYS_HelpMethodDetail.md +310 -0
- package/skill/references/interfaces/ISYS_JobHandle.md +65 -0
- package/skill/references/interfaces/ISYS_JobLogEntry.md +142 -0
- package/skill/references/interfaces/ISYS_JobStatus.md +176 -0
- package/skill/references/interfaces/ISYS_LogLine.md +115 -115
- package/skill/references/interfaces/ISYS_MathBBox.md +142 -142
- package/skill/references/interfaces/ISYS_MathPoint.md +88 -88
- package/skill/references/interfaces/ISYS_MathPolygonWithHoles.md +92 -92
- package/skill/references/interfaces/ISYS_MessageBusTask.md +115 -115
- package/skill/references/interfaces/ISYS_MultilingualLanguagesData.md +12 -12
- package/skill/references/interfaces/ISYS_RightClickMenuItem.md +174 -174
- package/skill/references/interfaces/ISYS_ShortcutKeyData.md +169 -169
- package/skill/references/interfaces/ISYS_ShortcutKeyDataWithCallFn.md +62 -62
- package/skill/references/interfaces/ISYS_ShortcutKeyDataWithUserDefinedShortcutKey.md +62 -62
- package/skill/references/interfaces/ISYS_WindowEventListenerRemovableObject.md +109 -109
- package/skill/references/interfaces/IconProps.md +88 -88
- package/skill/references/interfaces/ImageProps.md +115 -115
- package/skill/references/interfaces/InputEditConfig.md +182 -0
- package/skill/references/interfaces/InputProps.md +547 -520
- package/skill/references/interfaces/KeyboardConfig.md +61 -0
- package/skill/references/interfaces/ListChildren.md +223 -223
- package/skill/references/interfaces/ListProps.md +250 -223
- package/skill/references/interfaces/ModalProps.md +358 -358
- package/skill/references/interfaces/NumberEditConfig.md +234 -0
- package/skill/references/interfaces/RadioGroupProps.md +196 -196
- package/skill/references/interfaces/RadioItem.md +115 -115
- package/skill/references/interfaces/RichTableProps.md +1357 -0
- package/skill/references/interfaces/RowMetaConfig.md +142 -0
- package/skill/references/interfaces/ScrollerProps.md +169 -169
- package/skill/references/interfaces/SelectEditConfig.md +211 -0
- package/skill/references/interfaces/SelectListItem.md +142 -142
- package/skill/references/interfaces/SelectOption.md +142 -0
- package/skill/references/interfaces/SelectProps.md +169 -169
- package/skill/references/interfaces/SelectionConfig.md +358 -0
- package/skill/references/interfaces/SliderProps.md +142 -0
- package/skill/references/interfaces/SlotProps.md +88 -88
- package/skill/references/interfaces/SortState.md +88 -0
- package/skill/references/interfaces/SortingConfig.md +169 -0
- package/skill/references/interfaces/StyleProps.md +439 -385
- package/skill/references/interfaces/TextAreaProps.md +196 -196
- package/skill/references/interfaces/TextProps.md +169 -169
- package/skill/references/interfaces/TextareaEditConfig.md +182 -0
- package/skill/references/interfaces/ValidationRule.md +223 -0
- package/skill/references/interfaces/VirtualScrollConfig.md +115 -0
- package/skill/references/types/Align.md +9 -0
- package/skill/references/types/CellContentType.md +9 -0
- package/skill/references/types/ColumnDefOrGroup.md +12 -0
- package/skill/references/types/ColumnEditConfig.md +13 -0
- package/skill/references/types/ColumnType.md +9 -0
- package/skill/references/types/DataChangeType.md +9 -0
- package/skill/references/types/FilterMatchMode.md +9 -0
- package/skill/references/types/RichTableRow.md +12 -0
- package/skill/references/types/Serializable.md +10 -0
- package/skill/references/types/SerializablePrimitive.md +9 -0
- package/skill/references/types/SortOrder.md +9 -0
- package/skill/references/types/TPCB_LayerTypesOfInnerLayer.md +11 -11
- package/skill/references/types/TPCB_LayersInTheSelectable.md +42 -42
- package/skill/references/types/TPCB_LayersOfComponent.md +11 -11
- package/skill/references/types/TPCB_LayersOfCopper.md +15 -15
- package/skill/references/types/TPCB_LayersOfCustom.md +41 -41
- package/skill/references/types/TPCB_LayersOfDimension.md +16 -16
- package/skill/references/types/TPCB_LayersOfFill.md +28 -28
- package/skill/references/types/TPCB_LayersOfImage.md +22 -22
- package/skill/references/types/TPCB_LayersOfInner.md +41 -41
- package/skill/references/types/TPCB_LayersOfLine.md +25 -25
- package/skill/references/types/TPCB_LayersOfObject.md +12 -12
- package/skill/references/types/TPCB_LayersOfPad.md +11 -11
- package/skill/references/types/TPCB_LayersOfRegion.md +11 -11
- package/skill/references/types/TPCB_NumberOfCopperLayers.md +9 -9
- package/skill/references/types/TPCB_PolygonSourceArray.md +85 -83
- package/skill/references/types/TPCB_PrimitiveDimensionCoordinateSet.md +66 -66
- package/skill/references/types/TPCB_PrimitivePadHole.md +30 -30
- package/skill/references/types/TPCB_PrimitivePadShape.md +61 -61
- package/skill/references/types/TPCB_PrimitiveSpecialPadShape.md +19 -19
- package/skill/references/types/TSYS_ComparisonErrorCode.md +15 -0
- package/skill/references/types/TSYS_LanguageKeyValuePairs.md +13 -0
- package/skill/references/types/TSYS_MathPolygonGroup.md +15 -15
- package/skill/references/types/TSYS_MathPolygonInput.md +20 -20
- package/skill/references/types/TSYS_ShortcutKeys.md +96 -96
- package/skill/user-guide/using-extension.md +47 -47
- package/src/json-gen.test.js +430 -0
- package/skill/guide/ancillary-projects/pro-api-sdk.md +0 -1
- package/skill/references/interfaces/ISYS_PcbComparisonResponse.md +0 -115
- package/skill/references/types/ISYS_LanguageKeyValuePairs.md +0 -13
- package/skill/references/types/TSYS_PcbComparisonErrorCode.md +0 -10
|
@@ -1,2240 +1,2256 @@
|
|
|
1
|
-
# SCH\_PrimitiveComponent class
|
|
2
|
-
|
|
3
|
-
Schematic & symbol / device primitive class
|
|
4
|
-
|
|
5
|
-
## Signature
|
|
6
|
-
|
|
7
|
-
```typescript
|
|
8
|
-
class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI
|
|
9
|
-
```
|
|
10
|
-
**Implements:** [ISCH\_PrimitiveAPI](../interfaces/ISCH_PrimitiveAPI.md)
|
|
11
|
-
|
|
12
|
-
## Remarks
|
|
13
|
-
|
|
14
|
-
## Methods
|
|
15
|
-
|
|
16
|
-
<table><thead><tr><th>
|
|
17
|
-
|
|
18
|
-
Method
|
|
19
|
-
|
|
20
|
-
</th><th>
|
|
21
|
-
|
|
22
|
-
Modifiers
|
|
23
|
-
|
|
24
|
-
</th><th>
|
|
25
|
-
|
|
26
|
-
Description
|
|
27
|
-
|
|
28
|
-
</th></tr></thead>
|
|
29
|
-
<tbody><tr><td>
|
|
30
|
-
|
|
31
|
-
[create(component, x, y, subPartName, rotation, mirror, addIntoBom, addIntoPcb)](./SCH_PrimitiveComponent.md)
|
|
32
|
-
|
|
33
|
-
</td><td>
|
|
34
|
-
|
|
35
|
-
</td><td>
|
|
36
|
-
|
|
37
|
-
**_(BETA)_** Create Device
|
|
38
|
-
|
|
39
|
-
</td></tr>
|
|
40
|
-
<tr><td>
|
|
41
|
-
|
|
42
|
-
[createCbbSymbol(cbbSymbol, x, y, rotation, mirror)](./SCH_PrimitiveComponent.md)
|
|
43
|
-
|
|
44
|
-
</td><td>
|
|
45
|
-
|
|
46
|
-
</td><td>
|
|
47
|
-
|
|
48
|
-
**_(BETA)_** Create Reuse block symbol
|
|
49
|
-
|
|
50
|
-
</td></tr>
|
|
51
|
-
<tr><td>
|
|
52
|
-
|
|
53
|
-
[createNetFlag(identification, net, x, y, rotation, mirror)](./SCH_PrimitiveComponent.md)
|
|
54
|
-
|
|
55
|
-
</td><td>
|
|
56
|
-
|
|
57
|
-
</td><td>
|
|
58
|
-
|
|
59
|
-
**_(BETA)_** Create Net flag
|
|
60
|
-
|
|
61
|
-
</td></tr>
|
|
62
|
-
<tr><td>
|
|
63
|
-
|
|
64
|
-
[createNetPort(direction, net, x, y, rotation, mirror)](./SCH_PrimitiveComponent.md)
|
|
65
|
-
|
|
66
|
-
</td><td>
|
|
67
|
-
|
|
68
|
-
</td><td>
|
|
69
|
-
|
|
70
|
-
**_(BETA)_** Create Net port
|
|
71
|
-
|
|
72
|
-
</td></tr>
|
|
73
|
-
<tr><td>
|
|
74
|
-
|
|
75
|
-
[createShortCircuitFlag(x, y, rotation, mirror)](./SCH_PrimitiveComponent.md)
|
|
76
|
-
|
|
77
|
-
</td><td>
|
|
78
|
-
|
|
79
|
-
</td><td>
|
|
80
|
-
|
|
81
|
-
**_(BETA)_** Create a short circuit flag
|
|
82
|
-
|
|
83
|
-
</td></tr>
|
|
84
|
-
<tr><td>
|
|
85
|
-
|
|
86
|
-
[delete(primitiveIds)](./SCH_PrimitiveComponent.md)
|
|
87
|
-
|
|
88
|
-
</td><td>
|
|
89
|
-
|
|
90
|
-
</td><td>
|
|
91
|
-
|
|
92
|
-
**_(BETA)_** Delete Device
|
|
93
|
-
|
|
94
|
-
</td></tr>
|
|
95
|
-
<tr><td>
|
|
96
|
-
|
|
97
|
-
[get(primitiveIds)](./SCH_PrimitiveComponent.md)
|
|
98
|
-
|
|
99
|
-
</td><td>
|
|
100
|
-
|
|
101
|
-
</td><td>
|
|
102
|
-
|
|
103
|
-
**_(BETA)_** Get Device
|
|
104
|
-
|
|
105
|
-
</td></tr>
|
|
106
|
-
<tr><td>
|
|
107
|
-
|
|
108
|
-
[get(primitiveIds)](./SCH_PrimitiveComponent.md)
|
|
109
|
-
|
|
110
|
-
</td><td>
|
|
111
|
-
|
|
112
|
-
</td><td>
|
|
113
|
-
|
|
114
|
-
**_(BETA)_** Get Device
|
|
115
|
-
|
|
116
|
-
</td></tr>
|
|
117
|
-
<tr><td>
|
|
118
|
-
|
|
119
|
-
[getAll(componentType, allSchematicPages)](./SCH_PrimitiveComponent.md)
|
|
120
|
-
|
|
121
|
-
</td><td>
|
|
122
|
-
|
|
123
|
-
</td><td>
|
|
124
|
-
|
|
125
|
-
**_(BETA)_** Get all Device
|
|
126
|
-
|
|
127
|
-
</td></tr>
|
|
128
|
-
<tr><td>
|
|
129
|
-
|
|
130
|
-
[getAllPinsByPrimitiveId(primitiveId)](./SCH_PrimitiveComponent.md)
|
|
131
|
-
|
|
132
|
-
</td><td>
|
|
133
|
-
|
|
134
|
-
</td><td>
|
|
135
|
-
|
|
136
|
-
**_(BETA)_** Get all pins associated with the device
|
|
137
|
-
|
|
138
|
-
</td></tr>
|
|
139
|
-
<tr><td>
|
|
140
|
-
|
|
141
|
-
[getAllPrimitiveId(componentType, allSchematicPages)](./SCH_PrimitiveComponent.md)
|
|
142
|
-
|
|
143
|
-
</td><td>
|
|
144
|
-
|
|
145
|
-
</td><td>
|
|
146
|
-
|
|
147
|
-
**_(BETA)_** Get all Device primitive IDs
|
|
148
|
-
|
|
149
|
-
</td></tr>
|
|
150
|
-
<tr><td>
|
|
151
|
-
|
|
152
|
-
[getAllPropertyNames()](./SCH_PrimitiveComponent.md)
|
|
153
|
-
|
|
154
|
-
</td><td>
|
|
155
|
-
|
|
156
|
-
</td><td>
|
|
157
|
-
|
|
158
|
-
**_(BETA)_** Get The set of all property names of all devices
|
|
159
|
-
|
|
160
|
-
</td></tr>
|
|
161
|
-
<tr><td>
|
|
162
|
-
|
|
163
|
-
[modify(primitiveId, property)](./SCH_PrimitiveComponent.md)
|
|
164
|
-
|
|
165
|
-
</td><td>
|
|
166
|
-
|
|
167
|
-
</td><td>
|
|
168
|
-
|
|
169
|
-
**_(BETA)_** Modify Device
|
|
170
|
-
|
|
171
|
-
</td></tr>
|
|
172
|
-
<tr><td>
|
|
173
|
-
|
|
174
|
-
[placeCbbSchematicPage(cbbSchematicPage, x, y, props)](./SCH_PrimitiveComponent.md)
|
|
175
|
-
|
|
176
|
-
</td><td>
|
|
177
|
-
|
|
178
|
-
</td><td>
|
|
179
|
-
|
|
180
|
-
**_(BETA)_** Place reuse block schematic sheet
|
|
181
|
-
|
|
182
|
-
</td></tr>
|
|
183
|
-
<tr><td>
|
|
184
|
-
|
|
185
|
-
[placeComponentWithMouse(component, subPartName)](./SCH_PrimitiveComponent.md)
|
|
186
|
-
|
|
187
|
-
</td><td>
|
|
188
|
-
|
|
189
|
-
</td><td>
|
|
190
|
-
|
|
191
|
-
**_(BETA)_** Place with the mouse device
|
|
192
|
-
|
|
193
|
-
</td></tr>
|
|
194
|
-
<tr><td>
|
|
195
|
-
|
|
196
|
-
[placeSymbolWithMouse(symbol, subPartName, properties)](./SCH_PrimitiveComponent.md)
|
|
197
|
-
|
|
198
|
-
</td><td>
|
|
199
|
-
|
|
200
|
-
</td><td>
|
|
201
|
-
|
|
202
|
-
**_(BETA)_** Place with the mouse symbol
|
|
203
|
-
|
|
204
|
-
</td></tr>
|
|
205
|
-
<tr><td>
|
|
206
|
-
|
|
207
|
-
[setNetFlagComponentUuid\_AnalogGround(component)](./SCH_PrimitiveComponent.md)
|
|
208
|
-
|
|
209
|
-
</td><td>
|
|
210
|
-
|
|
211
|
-
</td><td>
|
|
212
|
-
|
|
213
|
-
**_(BETA)_** Set the device UUID associated with the AnalogGround net flag in the extension API
|
|
214
|
-
|
|
215
|
-
</td></tr>
|
|
216
|
-
<tr><td>
|
|
217
|
-
|
|
218
|
-
[setNetFlagComponentUuid\_Ground(component)](./SCH_PrimitiveComponent.md)
|
|
219
|
-
|
|
220
|
-
</td><td>
|
|
221
|
-
|
|
222
|
-
</td><td>
|
|
223
|
-
|
|
224
|
-
**_(BETA)_** Set the device UUID associated with the Ground net flag in the extension API
|
|
225
|
-
|
|
226
|
-
</td></tr>
|
|
227
|
-
<tr><td>
|
|
228
|
-
|
|
229
|
-
[setNetFlagComponentUuid\_Power(component)](./SCH_PrimitiveComponent.md)
|
|
230
|
-
|
|
231
|
-
</td><td>
|
|
232
|
-
|
|
233
|
-
</td><td>
|
|
234
|
-
|
|
235
|
-
**_(BETA)_** Set the device UUID associated with the Power net flag in the extension API
|
|
236
|
-
|
|
237
|
-
</td></tr>
|
|
238
|
-
<tr><td>
|
|
239
|
-
|
|
240
|
-
[setNetFlagComponentUuid\_ProtectGround(component)](./SCH_PrimitiveComponent.md)
|
|
241
|
-
|
|
242
|
-
</td><td>
|
|
243
|
-
|
|
244
|
-
</td><td>
|
|
245
|
-
|
|
246
|
-
**_(BETA)_** Set the device UUID associated with the ProtectGround net flag in the extension API
|
|
247
|
-
|
|
248
|
-
</td></tr>
|
|
249
|
-
<tr><td>
|
|
250
|
-
|
|
251
|
-
[setNetPortComponentUuid\_BI(component)](./SCH_PrimitiveComponent.md)
|
|
252
|
-
|
|
253
|
-
</td><td>
|
|
254
|
-
|
|
255
|
-
</td><td>
|
|
256
|
-
|
|
257
|
-
**_(BETA)_** Set the device UUID associated with the BI net port in the extension API
|
|
258
|
-
|
|
259
|
-
</td></tr>
|
|
260
|
-
<tr><td>
|
|
261
|
-
|
|
262
|
-
[setNetPortComponentUuid\_IN(component)](./SCH_PrimitiveComponent.md)
|
|
263
|
-
|
|
264
|
-
</td><td>
|
|
265
|
-
|
|
266
|
-
</td><td>
|
|
267
|
-
|
|
268
|
-
**_(BETA)_** Set the device UUID associated with the IN net port in the extension API
|
|
269
|
-
|
|
270
|
-
</td></tr>
|
|
271
|
-
<tr><td>
|
|
272
|
-
|
|
273
|
-
[setNetPortComponentUuid\_OUT(component)](./SCH_PrimitiveComponent.md)
|
|
274
|
-
|
|
275
|
-
</td><td>
|
|
276
|
-
|
|
277
|
-
</td><td>
|
|
278
|
-
|
|
279
|
-
**_(BETA)_** Set the device UUID associated with the OUT net port in the extension API
|
|
280
|
-
|
|
281
|
-
</td></tr>
|
|
282
|
-
</tbody></table>
|
|
283
|
-
|
|
284
|
-
---
|
|
285
|
-
|
|
286
|
-
## 方法详情
|
|
287
|
-
|
|
288
|
-
### create
|
|
289
|
-
|
|
290
|
-
# SCH\_PrimitiveComponent.create() method
|
|
291
|
-
|
|
292
|
-
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
293
|
-
|
|
294
|
-
Create Device
|
|
295
|
-
|
|
296
|
-
## Signature
|
|
297
|
-
|
|
298
|
-
```typescript
|
|
299
|
-
function create(
|
|
300
|
-
component:
|
|
301
|
-
| { libraryType?:
|
|
302
|
-
| ILIB_DeviceItem
|
|
303
|
-
| ILIB_DeviceSearchItem
|
|
304
|
-
| { libraryType: ELIB_LibraryType.SYMBOL; libraryUuid: string; uuid: string }
|
|
305
|
-
| ILIB_SymbolItem
|
|
306
|
-
| ILIB_SymbolSearchItem,
|
|
307
|
-
x: number,
|
|
308
|
-
y: number,
|
|
309
|
-
subPartName?: string,
|
|
310
|
-
rotation?: number,
|
|
311
|
-
mirror?: boolean,
|
|
312
|
-
addIntoBom?: boolean,
|
|
313
|
-
addIntoPcb?: boolean,
|
|
314
|
-
): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
315
|
-
```
|
|
316
|
-
|
|
317
|
-
## Parameters
|
|
318
|
-
|
|
319
|
-
<table><thead><tr><th>
|
|
320
|
-
|
|
321
|
-
Parameter
|
|
322
|
-
|
|
323
|
-
</th><th>
|
|
324
|
-
|
|
325
|
-
Type
|
|
326
|
-
|
|
327
|
-
</th><th>
|
|
328
|
-
|
|
329
|
-
Description
|
|
330
|
-
|
|
331
|
-
</th></tr></thead>
|
|
332
|
-
<tbody><tr><td>
|
|
333
|
-
|
|
334
|
-
component
|
|
335
|
-
|
|
336
|
-
</td><td>
|
|
337
|
-
|
|
338
|
-
{ libraryType?:
|
|
339
|
-
|
|
340
|
-
</td><td>
|
|
341
|
-
|
|
342
|
-
Associate library device
|
|
343
|
-
|
|
344
|
-
</td></tr>
|
|
345
|
-
<tr><td>
|
|
346
|
-
|
|
347
|
-
x
|
|
348
|
-
|
|
349
|
-
</td><td>
|
|
350
|
-
|
|
351
|
-
number
|
|
352
|
-
|
|
353
|
-
</td><td>
|
|
354
|
-
|
|
355
|
-
X coordinate
|
|
356
|
-
|
|
357
|
-
</td></tr>
|
|
358
|
-
<tr><td>
|
|
359
|
-
|
|
360
|
-
y
|
|
361
|
-
|
|
362
|
-
</td><td>
|
|
363
|
-
|
|
364
|
-
number
|
|
365
|
-
|
|
366
|
-
</td><td>
|
|
367
|
-
|
|
368
|
-
Y coordinate
|
|
369
|
-
|
|
370
|
-
</td></tr>
|
|
371
|
-
<tr><td>
|
|
372
|
-
|
|
373
|
-
subPartName
|
|
374
|
-
|
|
375
|
-
</td><td>
|
|
376
|
-
|
|
377
|
-
string
|
|
378
|
-
|
|
379
|
-
</td><td>
|
|
380
|
-
|
|
381
|
-
_(Optional)_ Sub-part name
|
|
382
|
-
|
|
383
|
-
</td></tr>
|
|
384
|
-
<tr><td>
|
|
385
|
-
|
|
386
|
-
rotation
|
|
387
|
-
|
|
388
|
-
</td><td>
|
|
389
|
-
|
|
390
|
-
number
|
|
391
|
-
|
|
392
|
-
</td><td>
|
|
393
|
-
|
|
394
|
-
_(Optional)_ Rotation angle
|
|
395
|
-
|
|
396
|
-
</td></tr>
|
|
397
|
-
<tr><td>
|
|
398
|
-
|
|
399
|
-
mirror
|
|
400
|
-
|
|
401
|
-
</td><td>
|
|
402
|
-
|
|
403
|
-
boolean
|
|
404
|
-
|
|
405
|
-
</td><td>
|
|
406
|
-
|
|
407
|
-
_(Optional)_ Whether it is mirrored
|
|
408
|
-
|
|
409
|
-
</td></tr>
|
|
410
|
-
<tr><td>
|
|
411
|
-
|
|
412
|
-
addIntoBom
|
|
413
|
-
|
|
414
|
-
</td><td>
|
|
415
|
-
|
|
416
|
-
boolean
|
|
417
|
-
|
|
418
|
-
</td><td>
|
|
419
|
-
|
|
420
|
-
_(Optional)_ Whether Add to BOM
|
|
421
|
-
|
|
422
|
-
</td></tr>
|
|
423
|
-
<tr><td>
|
|
424
|
-
|
|
425
|
-
addIntoPcb
|
|
426
|
-
|
|
427
|
-
</td><td>
|
|
428
|
-
|
|
429
|
-
boolean
|
|
430
|
-
|
|
431
|
-
</td><td>
|
|
432
|
-
|
|
433
|
-
_(Optional)_ Whether Transfer to PCB
|
|
434
|
-
|
|
435
|
-
</td></tr>
|
|
436
|
-
</tbody></table>
|
|
437
|
-
|
|
438
|
-
## Returns
|
|
439
|
-
|
|
440
|
-
Promise<[ISCH\_PrimitiveComponent](./ISCH_PrimitiveComponent.md) \| undefined>
|
|
441
|
-
|
|
442
|
-
Device primitive object
|
|
443
|
-
|
|
444
|
-
##
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
const
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
0, //
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
//
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
</th><th>
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
</th
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
</td><td>
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
</td
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
</td><td>
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
</td
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
</td><td>
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
</td
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
</td><td>
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
</td
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
</td><td>
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
</td
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
//
|
|
587
|
-
const
|
|
588
|
-
const
|
|
589
|
-
|
|
590
|
-
//
|
|
591
|
-
const
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
//
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
</th><th>
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
</th
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
</td><td>
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
</td
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
</td><td>
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
</td
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
</td><td>
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
</td
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
</td><td>
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
</td
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
</td><td>
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
</td
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
</td><td>
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
</td
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
//
|
|
738
|
-
const
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
//
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
</th><th>
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
</th
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
</td><td>
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
</td
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
</td><td>
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
</td
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
</td><td>
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
</td
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
</td><td>
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
</td
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
</td><td>
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
</td
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
</td><td>
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
</td
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
//
|
|
883
|
-
const
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
//
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
</th><th>
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
</th
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
</td><td>
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
</td
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
</td><td>
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
</td
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
</td><td>
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
</td
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
</td><td>
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
</td
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
//
|
|
1000
|
-
const
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
//
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
</th><th>
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
</th
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
</td><td>
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
</td
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
const
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
const
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
const
|
|
1079
|
-
|
|
1080
|
-
//
|
|
1081
|
-
const
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
</th><th>
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
</th
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
</td><td>
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
</td
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
const
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
const
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
</th><th>
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
</th
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
</td><td>
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
</td
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
</th><th>
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
</th
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
</td><td>
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
</td
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
</td><td>
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
</td
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
const
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
await eda.sch_PrimitiveComponent.
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
//
|
|
1376
|
-
await eda.
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
</
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
const
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
1
|
+
# SCH\_PrimitiveComponent class
|
|
2
|
+
|
|
3
|
+
Schematic & symbol / device primitive class
|
|
4
|
+
|
|
5
|
+
## Signature
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI
|
|
9
|
+
```
|
|
10
|
+
**Implements:** [ISCH\_PrimitiveAPI](../interfaces/ISCH_PrimitiveAPI.md)
|
|
11
|
+
|
|
12
|
+
## Remarks
|
|
13
|
+
|
|
14
|
+
## Methods
|
|
15
|
+
|
|
16
|
+
<table><thead><tr><th>
|
|
17
|
+
|
|
18
|
+
Method
|
|
19
|
+
|
|
20
|
+
</th><th>
|
|
21
|
+
|
|
22
|
+
Modifiers
|
|
23
|
+
|
|
24
|
+
</th><th>
|
|
25
|
+
|
|
26
|
+
Description
|
|
27
|
+
|
|
28
|
+
</th></tr></thead>
|
|
29
|
+
<tbody><tr><td>
|
|
30
|
+
|
|
31
|
+
[create(component, x, y, subPartName, rotation, mirror, addIntoBom, addIntoPcb)](./SCH_PrimitiveComponent.md)
|
|
32
|
+
|
|
33
|
+
</td><td>
|
|
34
|
+
|
|
35
|
+
</td><td>
|
|
36
|
+
|
|
37
|
+
**_(BETA)_** Create Device
|
|
38
|
+
|
|
39
|
+
</td></tr>
|
|
40
|
+
<tr><td>
|
|
41
|
+
|
|
42
|
+
[createCbbSymbol(cbbSymbol, x, y, rotation, mirror)](./SCH_PrimitiveComponent.md)
|
|
43
|
+
|
|
44
|
+
</td><td>
|
|
45
|
+
|
|
46
|
+
</td><td>
|
|
47
|
+
|
|
48
|
+
**_(BETA)_** Create Reuse block symbol
|
|
49
|
+
|
|
50
|
+
</td></tr>
|
|
51
|
+
<tr><td>
|
|
52
|
+
|
|
53
|
+
[createNetFlag(identification, net, x, y, rotation, mirror)](./SCH_PrimitiveComponent.md)
|
|
54
|
+
|
|
55
|
+
</td><td>
|
|
56
|
+
|
|
57
|
+
</td><td>
|
|
58
|
+
|
|
59
|
+
**_(BETA)_** Create Net flag
|
|
60
|
+
|
|
61
|
+
</td></tr>
|
|
62
|
+
<tr><td>
|
|
63
|
+
|
|
64
|
+
[createNetPort(direction, net, x, y, rotation, mirror)](./SCH_PrimitiveComponent.md)
|
|
65
|
+
|
|
66
|
+
</td><td>
|
|
67
|
+
|
|
68
|
+
</td><td>
|
|
69
|
+
|
|
70
|
+
**_(BETA)_** Create Net port
|
|
71
|
+
|
|
72
|
+
</td></tr>
|
|
73
|
+
<tr><td>
|
|
74
|
+
|
|
75
|
+
[createShortCircuitFlag(x, y, rotation, mirror)](./SCH_PrimitiveComponent.md)
|
|
76
|
+
|
|
77
|
+
</td><td>
|
|
78
|
+
|
|
79
|
+
</td><td>
|
|
80
|
+
|
|
81
|
+
**_(BETA)_** Create a short circuit flag
|
|
82
|
+
|
|
83
|
+
</td></tr>
|
|
84
|
+
<tr><td>
|
|
85
|
+
|
|
86
|
+
[delete(primitiveIds)](./SCH_PrimitiveComponent.md)
|
|
87
|
+
|
|
88
|
+
</td><td>
|
|
89
|
+
|
|
90
|
+
</td><td>
|
|
91
|
+
|
|
92
|
+
**_(BETA)_** Delete Device
|
|
93
|
+
|
|
94
|
+
</td></tr>
|
|
95
|
+
<tr><td>
|
|
96
|
+
|
|
97
|
+
[get(primitiveIds)](./SCH_PrimitiveComponent.md)
|
|
98
|
+
|
|
99
|
+
</td><td>
|
|
100
|
+
|
|
101
|
+
</td><td>
|
|
102
|
+
|
|
103
|
+
**_(BETA)_** Get Device
|
|
104
|
+
|
|
105
|
+
</td></tr>
|
|
106
|
+
<tr><td>
|
|
107
|
+
|
|
108
|
+
[get(primitiveIds)](./SCH_PrimitiveComponent.md)
|
|
109
|
+
|
|
110
|
+
</td><td>
|
|
111
|
+
|
|
112
|
+
</td><td>
|
|
113
|
+
|
|
114
|
+
**_(BETA)_** Get Device
|
|
115
|
+
|
|
116
|
+
</td></tr>
|
|
117
|
+
<tr><td>
|
|
118
|
+
|
|
119
|
+
[getAll(componentType, allSchematicPages)](./SCH_PrimitiveComponent.md)
|
|
120
|
+
|
|
121
|
+
</td><td>
|
|
122
|
+
|
|
123
|
+
</td><td>
|
|
124
|
+
|
|
125
|
+
**_(BETA)_** Get all Device
|
|
126
|
+
|
|
127
|
+
</td></tr>
|
|
128
|
+
<tr><td>
|
|
129
|
+
|
|
130
|
+
[getAllPinsByPrimitiveId(primitiveId)](./SCH_PrimitiveComponent.md)
|
|
131
|
+
|
|
132
|
+
</td><td>
|
|
133
|
+
|
|
134
|
+
</td><td>
|
|
135
|
+
|
|
136
|
+
**_(BETA)_** Get all pins associated with the device
|
|
137
|
+
|
|
138
|
+
</td></tr>
|
|
139
|
+
<tr><td>
|
|
140
|
+
|
|
141
|
+
[getAllPrimitiveId(componentType, allSchematicPages)](./SCH_PrimitiveComponent.md)
|
|
142
|
+
|
|
143
|
+
</td><td>
|
|
144
|
+
|
|
145
|
+
</td><td>
|
|
146
|
+
|
|
147
|
+
**_(BETA)_** Get all Device primitive IDs
|
|
148
|
+
|
|
149
|
+
</td></tr>
|
|
150
|
+
<tr><td>
|
|
151
|
+
|
|
152
|
+
[getAllPropertyNames()](./SCH_PrimitiveComponent.md)
|
|
153
|
+
|
|
154
|
+
</td><td>
|
|
155
|
+
|
|
156
|
+
</td><td>
|
|
157
|
+
|
|
158
|
+
**_(BETA)_** Get The set of all property names of all devices
|
|
159
|
+
|
|
160
|
+
</td></tr>
|
|
161
|
+
<tr><td>
|
|
162
|
+
|
|
163
|
+
[modify(primitiveId, property)](./SCH_PrimitiveComponent.md)
|
|
164
|
+
|
|
165
|
+
</td><td>
|
|
166
|
+
|
|
167
|
+
</td><td>
|
|
168
|
+
|
|
169
|
+
**_(BETA)_** Modify Device
|
|
170
|
+
|
|
171
|
+
</td></tr>
|
|
172
|
+
<tr><td>
|
|
173
|
+
|
|
174
|
+
[placeCbbSchematicPage(cbbSchematicPage, x, y, props)](./SCH_PrimitiveComponent.md)
|
|
175
|
+
|
|
176
|
+
</td><td>
|
|
177
|
+
|
|
178
|
+
</td><td>
|
|
179
|
+
|
|
180
|
+
**_(BETA)_** Place reuse block schematic sheet
|
|
181
|
+
|
|
182
|
+
</td></tr>
|
|
183
|
+
<tr><td>
|
|
184
|
+
|
|
185
|
+
[placeComponentWithMouse(component, subPartName)](./SCH_PrimitiveComponent.md)
|
|
186
|
+
|
|
187
|
+
</td><td>
|
|
188
|
+
|
|
189
|
+
</td><td>
|
|
190
|
+
|
|
191
|
+
**_(BETA)_** Place with the mouse device
|
|
192
|
+
|
|
193
|
+
</td></tr>
|
|
194
|
+
<tr><td>
|
|
195
|
+
|
|
196
|
+
[placeSymbolWithMouse(symbol, subPartName, properties)](./SCH_PrimitiveComponent.md)
|
|
197
|
+
|
|
198
|
+
</td><td>
|
|
199
|
+
|
|
200
|
+
</td><td>
|
|
201
|
+
|
|
202
|
+
**_(BETA)_** Place with the mouse symbol
|
|
203
|
+
|
|
204
|
+
</td></tr>
|
|
205
|
+
<tr><td>
|
|
206
|
+
|
|
207
|
+
[setNetFlagComponentUuid\_AnalogGround(component)](./SCH_PrimitiveComponent.md)
|
|
208
|
+
|
|
209
|
+
</td><td>
|
|
210
|
+
|
|
211
|
+
</td><td>
|
|
212
|
+
|
|
213
|
+
**_(BETA)_** Set the device UUID associated with the AnalogGround net flag in the extension API
|
|
214
|
+
|
|
215
|
+
</td></tr>
|
|
216
|
+
<tr><td>
|
|
217
|
+
|
|
218
|
+
[setNetFlagComponentUuid\_Ground(component)](./SCH_PrimitiveComponent.md)
|
|
219
|
+
|
|
220
|
+
</td><td>
|
|
221
|
+
|
|
222
|
+
</td><td>
|
|
223
|
+
|
|
224
|
+
**_(BETA)_** Set the device UUID associated with the Ground net flag in the extension API
|
|
225
|
+
|
|
226
|
+
</td></tr>
|
|
227
|
+
<tr><td>
|
|
228
|
+
|
|
229
|
+
[setNetFlagComponentUuid\_Power(component)](./SCH_PrimitiveComponent.md)
|
|
230
|
+
|
|
231
|
+
</td><td>
|
|
232
|
+
|
|
233
|
+
</td><td>
|
|
234
|
+
|
|
235
|
+
**_(BETA)_** Set the device UUID associated with the Power net flag in the extension API
|
|
236
|
+
|
|
237
|
+
</td></tr>
|
|
238
|
+
<tr><td>
|
|
239
|
+
|
|
240
|
+
[setNetFlagComponentUuid\_ProtectGround(component)](./SCH_PrimitiveComponent.md)
|
|
241
|
+
|
|
242
|
+
</td><td>
|
|
243
|
+
|
|
244
|
+
</td><td>
|
|
245
|
+
|
|
246
|
+
**_(BETA)_** Set the device UUID associated with the ProtectGround net flag in the extension API
|
|
247
|
+
|
|
248
|
+
</td></tr>
|
|
249
|
+
<tr><td>
|
|
250
|
+
|
|
251
|
+
[setNetPortComponentUuid\_BI(component)](./SCH_PrimitiveComponent.md)
|
|
252
|
+
|
|
253
|
+
</td><td>
|
|
254
|
+
|
|
255
|
+
</td><td>
|
|
256
|
+
|
|
257
|
+
**_(BETA)_** Set the device UUID associated with the BI net port in the extension API
|
|
258
|
+
|
|
259
|
+
</td></tr>
|
|
260
|
+
<tr><td>
|
|
261
|
+
|
|
262
|
+
[setNetPortComponentUuid\_IN(component)](./SCH_PrimitiveComponent.md)
|
|
263
|
+
|
|
264
|
+
</td><td>
|
|
265
|
+
|
|
266
|
+
</td><td>
|
|
267
|
+
|
|
268
|
+
**_(BETA)_** Set the device UUID associated with the IN net port in the extension API
|
|
269
|
+
|
|
270
|
+
</td></tr>
|
|
271
|
+
<tr><td>
|
|
272
|
+
|
|
273
|
+
[setNetPortComponentUuid\_OUT(component)](./SCH_PrimitiveComponent.md)
|
|
274
|
+
|
|
275
|
+
</td><td>
|
|
276
|
+
|
|
277
|
+
</td><td>
|
|
278
|
+
|
|
279
|
+
**_(BETA)_** Set the device UUID associated with the OUT net port in the extension API
|
|
280
|
+
|
|
281
|
+
</td></tr>
|
|
282
|
+
</tbody></table>
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
## 方法详情
|
|
287
|
+
|
|
288
|
+
### create
|
|
289
|
+
|
|
290
|
+
# SCH\_PrimitiveComponent.create() method
|
|
291
|
+
|
|
292
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
293
|
+
|
|
294
|
+
Create Device
|
|
295
|
+
|
|
296
|
+
## Signature
|
|
297
|
+
|
|
298
|
+
```typescript
|
|
299
|
+
function create(
|
|
300
|
+
component:
|
|
301
|
+
| { libraryType?: ELIB_LibraryType.DEVICE; libraryUuid: string; uuid: string }
|
|
302
|
+
| ILIB_DeviceItem
|
|
303
|
+
| ILIB_DeviceSearchItem
|
|
304
|
+
| { libraryType: ELIB_LibraryType.SYMBOL; libraryUuid: string; uuid: string }
|
|
305
|
+
| ILIB_SymbolItem
|
|
306
|
+
| ILIB_SymbolSearchItem,
|
|
307
|
+
x: number,
|
|
308
|
+
y: number,
|
|
309
|
+
subPartName?: string,
|
|
310
|
+
rotation?: number,
|
|
311
|
+
mirror?: boolean,
|
|
312
|
+
addIntoBom?: boolean,
|
|
313
|
+
addIntoPcb?: boolean,
|
|
314
|
+
): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
## Parameters
|
|
318
|
+
|
|
319
|
+
<table><thead><tr><th>
|
|
320
|
+
|
|
321
|
+
Parameter
|
|
322
|
+
|
|
323
|
+
</th><th>
|
|
324
|
+
|
|
325
|
+
Type
|
|
326
|
+
|
|
327
|
+
</th><th>
|
|
328
|
+
|
|
329
|
+
Description
|
|
330
|
+
|
|
331
|
+
</th></tr></thead>
|
|
332
|
+
<tbody><tr><td>
|
|
333
|
+
|
|
334
|
+
component
|
|
335
|
+
|
|
336
|
+
</td><td>
|
|
337
|
+
|
|
338
|
+
{ libraryType?: [ELIB\_LibraryType.DEVICE](../enums/ELIB_LibraryType.md)<!-- -->; libraryUuid: string; uuid: string } \| [ILIB\_DeviceItem](../interfaces/ILIB_DeviceItem.md) \| [ILIB\_DeviceSearchItem](../interfaces/ILIB_DeviceSearchItem.md) \| { libraryType: [ELIB\_LibraryType.SYMBOL](../enums/ELIB_LibraryType.md)<!-- -->; libraryUuid: string; uuid: string } \| [ILIB\_SymbolItem](../interfaces/ILIB_SymbolItem.md) \| [ILIB\_SymbolSearchItem](../interfaces/ILIB_SymbolSearchItem.md)
|
|
339
|
+
|
|
340
|
+
</td><td>
|
|
341
|
+
|
|
342
|
+
Associate library device
|
|
343
|
+
|
|
344
|
+
</td></tr>
|
|
345
|
+
<tr><td>
|
|
346
|
+
|
|
347
|
+
x
|
|
348
|
+
|
|
349
|
+
</td><td>
|
|
350
|
+
|
|
351
|
+
number
|
|
352
|
+
|
|
353
|
+
</td><td>
|
|
354
|
+
|
|
355
|
+
X coordinate
|
|
356
|
+
|
|
357
|
+
</td></tr>
|
|
358
|
+
<tr><td>
|
|
359
|
+
|
|
360
|
+
y
|
|
361
|
+
|
|
362
|
+
</td><td>
|
|
363
|
+
|
|
364
|
+
number
|
|
365
|
+
|
|
366
|
+
</td><td>
|
|
367
|
+
|
|
368
|
+
Y coordinate
|
|
369
|
+
|
|
370
|
+
</td></tr>
|
|
371
|
+
<tr><td>
|
|
372
|
+
|
|
373
|
+
subPartName
|
|
374
|
+
|
|
375
|
+
</td><td>
|
|
376
|
+
|
|
377
|
+
string
|
|
378
|
+
|
|
379
|
+
</td><td>
|
|
380
|
+
|
|
381
|
+
_(Optional)_ Sub-part name
|
|
382
|
+
|
|
383
|
+
</td></tr>
|
|
384
|
+
<tr><td>
|
|
385
|
+
|
|
386
|
+
rotation
|
|
387
|
+
|
|
388
|
+
</td><td>
|
|
389
|
+
|
|
390
|
+
number
|
|
391
|
+
|
|
392
|
+
</td><td>
|
|
393
|
+
|
|
394
|
+
_(Optional)_ Rotation angle
|
|
395
|
+
|
|
396
|
+
</td></tr>
|
|
397
|
+
<tr><td>
|
|
398
|
+
|
|
399
|
+
mirror
|
|
400
|
+
|
|
401
|
+
</td><td>
|
|
402
|
+
|
|
403
|
+
boolean
|
|
404
|
+
|
|
405
|
+
</td><td>
|
|
406
|
+
|
|
407
|
+
_(Optional)_ Whether it is mirrored
|
|
408
|
+
|
|
409
|
+
</td></tr>
|
|
410
|
+
<tr><td>
|
|
411
|
+
|
|
412
|
+
addIntoBom
|
|
413
|
+
|
|
414
|
+
</td><td>
|
|
415
|
+
|
|
416
|
+
boolean
|
|
417
|
+
|
|
418
|
+
</td><td>
|
|
419
|
+
|
|
420
|
+
_(Optional)_ Whether Add to BOM
|
|
421
|
+
|
|
422
|
+
</td></tr>
|
|
423
|
+
<tr><td>
|
|
424
|
+
|
|
425
|
+
addIntoPcb
|
|
426
|
+
|
|
427
|
+
</td><td>
|
|
428
|
+
|
|
429
|
+
boolean
|
|
430
|
+
|
|
431
|
+
</td><td>
|
|
432
|
+
|
|
433
|
+
_(Optional)_ Whether Transfer to PCB
|
|
434
|
+
|
|
435
|
+
</td></tr>
|
|
436
|
+
</tbody></table>
|
|
437
|
+
|
|
438
|
+
## Returns
|
|
439
|
+
|
|
440
|
+
Promise<[ISCH\_PrimitiveComponent](./ISCH_PrimitiveComponent.md) \| undefined>
|
|
441
|
+
|
|
442
|
+
Device primitive object
|
|
443
|
+
|
|
444
|
+
## Remarks
|
|
445
|
+
|
|
446
|
+
- 引脚坐标可能不在布线栅格上(如出现 `698.5` 半格值),连接导线时两端须使用\*\*原始坐标\*\*,四舍五入会使端点散落为大量 `$xNnn` 短线; - `rotation` / `mirror` 必须填写\*\*真实值\*\*,硬编码 0 会使 90° 器件的引脚整体错位
|
|
447
|
+
|
|
448
|
+
## Example
|
|
449
|
+
|
|
450
|
+
```javascript
|
|
451
|
+
// 1. 从系统库搜索器件,随机坐标避免与画布已有器件重合(SCH 坐标单位 10mil)
|
|
452
|
+
const devices = await eda.lib_Device.search('');
|
|
453
|
+
const x = 2000 + Math.floor(Math.random() * 8000);
|
|
454
|
+
const y = 2000 + Math.floor(Math.random() * 8000);
|
|
455
|
+
|
|
456
|
+
// 2. 创建器件:搜索结果直接作为关联库器件传入,加入 BOM 并转到 PCB
|
|
457
|
+
const comp = await eda.sch_PrimitiveComponent.create(
|
|
458
|
+
devices[0], // 关联库器件
|
|
459
|
+
x, // 坐标 X
|
|
460
|
+
y, // 坐标 Y
|
|
461
|
+
undefined, // 子部件名称(多子部件器件才需要指定)
|
|
462
|
+
0, // 旋转角度
|
|
463
|
+
false, // 是否镜像
|
|
464
|
+
true, // 是否加入 BOM
|
|
465
|
+
true // 是否转到 PCB
|
|
466
|
+
);
|
|
467
|
+
|
|
468
|
+
// 3. 创建类保留现场,供在画布上观察摆放结果
|
|
469
|
+
console.log('primitiveId:', comp.getState_PrimitiveId());
|
|
470
|
+
console.log('designator:', comp.getState_Designator());
|
|
471
|
+
console.log('position:', comp.getState_X(), ',', comp.getState_Y());
|
|
472
|
+
console.log('addIntoBom:', comp.getState_AddIntoBom());
|
|
473
|
+
```
|
|
474
|
+
|
|
475
|
+
### createcbbsymbol
|
|
476
|
+
|
|
477
|
+
# SCH\_PrimitiveComponent.createCbbSymbol() method
|
|
478
|
+
|
|
479
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
480
|
+
|
|
481
|
+
Create Reuse block symbol
|
|
482
|
+
|
|
483
|
+
## Signature
|
|
484
|
+
|
|
485
|
+
```typescript
|
|
486
|
+
function createCbbSymbol(
|
|
487
|
+
cbbSymbol: { libraryUuid: string; cbbUuid: string; uuid?: string },
|
|
488
|
+
x: number,
|
|
489
|
+
y: number,
|
|
490
|
+
rotation?: number,
|
|
491
|
+
mirror?: boolean,
|
|
492
|
+
): Promise<ISCH_PrimitiveCbbSymbolComponent | undefined>;
|
|
493
|
+
```
|
|
494
|
+
|
|
495
|
+
## Parameters
|
|
496
|
+
|
|
497
|
+
<table><thead><tr><th>
|
|
498
|
+
|
|
499
|
+
Parameter
|
|
500
|
+
|
|
501
|
+
</th><th>
|
|
502
|
+
|
|
503
|
+
Type
|
|
504
|
+
|
|
505
|
+
</th><th>
|
|
506
|
+
|
|
507
|
+
Description
|
|
508
|
+
|
|
509
|
+
</th></tr></thead>
|
|
510
|
+
<tbody><tr><td>
|
|
511
|
+
|
|
512
|
+
cbbSymbol
|
|
513
|
+
|
|
514
|
+
</td><td>
|
|
515
|
+
|
|
516
|
+
\{ libraryUuid: string; cbbUuid: string; uuid?: string \}
|
|
517
|
+
|
|
518
|
+
</td><td>
|
|
519
|
+
|
|
520
|
+
Associated library reuse block symbol. `libraryUuid` is the UUID of the library where the CBB project is located, `cbbUuid` is the UUID of the CBB project, and `uuid` is the UUID of the symbol in the CBB project
|
|
521
|
+
|
|
522
|
+
</td></tr>
|
|
523
|
+
<tr><td>
|
|
524
|
+
|
|
525
|
+
x
|
|
526
|
+
|
|
527
|
+
</td><td>
|
|
528
|
+
|
|
529
|
+
number
|
|
530
|
+
|
|
531
|
+
</td><td>
|
|
532
|
+
|
|
533
|
+
X coordinate
|
|
534
|
+
|
|
535
|
+
</td></tr>
|
|
536
|
+
<tr><td>
|
|
537
|
+
|
|
538
|
+
y
|
|
539
|
+
|
|
540
|
+
</td><td>
|
|
541
|
+
|
|
542
|
+
number
|
|
543
|
+
|
|
544
|
+
</td><td>
|
|
545
|
+
|
|
546
|
+
Y coordinate
|
|
547
|
+
|
|
548
|
+
</td></tr>
|
|
549
|
+
<tr><td>
|
|
550
|
+
|
|
551
|
+
rotation
|
|
552
|
+
|
|
553
|
+
</td><td>
|
|
554
|
+
|
|
555
|
+
number
|
|
556
|
+
|
|
557
|
+
</td><td>
|
|
558
|
+
|
|
559
|
+
_(Optional)_ Rotation angle
|
|
560
|
+
|
|
561
|
+
</td></tr>
|
|
562
|
+
<tr><td>
|
|
563
|
+
|
|
564
|
+
mirror
|
|
565
|
+
|
|
566
|
+
</td><td>
|
|
567
|
+
|
|
568
|
+
boolean
|
|
569
|
+
|
|
570
|
+
</td><td>
|
|
571
|
+
|
|
572
|
+
_(Optional)_ Whether it is mirrored
|
|
573
|
+
|
|
574
|
+
</td></tr>
|
|
575
|
+
</tbody></table>
|
|
576
|
+
|
|
577
|
+
## Returns
|
|
578
|
+
|
|
579
|
+
Promise<[ISCH\_PrimitiveCbbSymbolComponent](./ISCH_PrimitiveCbbSymbolComponent.md) \| undefined>
|
|
580
|
+
|
|
581
|
+
Reuse block symbol primitive object
|
|
582
|
+
|
|
583
|
+
## Example
|
|
584
|
+
|
|
585
|
+
```javascript
|
|
586
|
+
// 1. 从系统库搜索可用的复用模块
|
|
587
|
+
const cbbList = await eda.lib_Cbb.search('');
|
|
588
|
+
const cbb = cbbList[0];
|
|
589
|
+
|
|
590
|
+
// 2. 随机坐标避免与画布已有图元重合(SCH 坐标单位 10mil)
|
|
591
|
+
const x = 2000 + Math.floor(Math.random() * 8000);
|
|
592
|
+
const y = 2000 + Math.floor(Math.random() * 8000);
|
|
593
|
+
|
|
594
|
+
// 3. 创建复用模块符号(cbbUuid 传模块工程 UUID,符号 uuid 可省略由模块默认提供)
|
|
595
|
+
const symbol = await eda.sch_PrimitiveComponent.createCbbSymbol(
|
|
596
|
+
{
|
|
597
|
+
libraryUuid: cbb.libraryUuid, // CBB 工程所在库的 UUID
|
|
598
|
+
cbbUuid: cbb.uuid // CBB 工程的 UUID
|
|
599
|
+
},
|
|
600
|
+
x, // 坐标 X
|
|
601
|
+
y, // 坐标 Y
|
|
602
|
+
0, // 旋转角度
|
|
603
|
+
false // 是否镜像
|
|
604
|
+
);
|
|
605
|
+
|
|
606
|
+
// 4. 创建类保留现场,供在画布上观察模块符号
|
|
607
|
+
console.log('primitiveId:', symbol.getState_PrimitiveId());
|
|
608
|
+
console.log('primitiveType:', symbol.getState_PrimitiveType());
|
|
609
|
+
console.log('position:', symbol.getState_X(), ',', symbol.getState_Y());
|
|
610
|
+
```
|
|
611
|
+
|
|
612
|
+
### createnetflag
|
|
613
|
+
|
|
614
|
+
# SCH\_PrimitiveComponent.createNetFlag() method
|
|
615
|
+
|
|
616
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
617
|
+
|
|
618
|
+
Create Net flag
|
|
619
|
+
|
|
620
|
+
## Signature
|
|
621
|
+
|
|
622
|
+
```typescript
|
|
623
|
+
function createNetFlag(
|
|
624
|
+
identification: 'Power' | 'Ground' | 'AnalogGround' | 'ProtectGround',
|
|
625
|
+
net: string,
|
|
626
|
+
x: number,
|
|
627
|
+
y: number,
|
|
628
|
+
rotation?: number,
|
|
629
|
+
mirror?: boolean,
|
|
630
|
+
): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
631
|
+
```
|
|
632
|
+
|
|
633
|
+
## Parameters
|
|
634
|
+
|
|
635
|
+
<table><thead><tr><th>
|
|
636
|
+
|
|
637
|
+
Parameter
|
|
638
|
+
|
|
639
|
+
</th><th>
|
|
640
|
+
|
|
641
|
+
Type
|
|
642
|
+
|
|
643
|
+
</th><th>
|
|
644
|
+
|
|
645
|
+
Description
|
|
646
|
+
|
|
647
|
+
</th></tr></thead>
|
|
648
|
+
<tbody><tr><td>
|
|
649
|
+
|
|
650
|
+
identification
|
|
651
|
+
|
|
652
|
+
</td><td>
|
|
653
|
+
|
|
654
|
+
'Power' \| 'Ground' \| 'AnalogGround' \| 'ProtectGround'
|
|
655
|
+
|
|
656
|
+
</td><td>
|
|
657
|
+
|
|
658
|
+
Identification type
|
|
659
|
+
|
|
660
|
+
</td></tr>
|
|
661
|
+
<tr><td>
|
|
662
|
+
|
|
663
|
+
net
|
|
664
|
+
|
|
665
|
+
</td><td>
|
|
666
|
+
|
|
667
|
+
string
|
|
668
|
+
|
|
669
|
+
</td><td>
|
|
670
|
+
|
|
671
|
+
Net name
|
|
672
|
+
|
|
673
|
+
</td></tr>
|
|
674
|
+
<tr><td>
|
|
675
|
+
|
|
676
|
+
x
|
|
677
|
+
|
|
678
|
+
</td><td>
|
|
679
|
+
|
|
680
|
+
number
|
|
681
|
+
|
|
682
|
+
</td><td>
|
|
683
|
+
|
|
684
|
+
X coordinate
|
|
685
|
+
|
|
686
|
+
</td></tr>
|
|
687
|
+
<tr><td>
|
|
688
|
+
|
|
689
|
+
y
|
|
690
|
+
|
|
691
|
+
</td><td>
|
|
692
|
+
|
|
693
|
+
number
|
|
694
|
+
|
|
695
|
+
</td><td>
|
|
696
|
+
|
|
697
|
+
Y coordinate
|
|
698
|
+
|
|
699
|
+
</td></tr>
|
|
700
|
+
<tr><td>
|
|
701
|
+
|
|
702
|
+
rotation
|
|
703
|
+
|
|
704
|
+
</td><td>
|
|
705
|
+
|
|
706
|
+
number
|
|
707
|
+
|
|
708
|
+
</td><td>
|
|
709
|
+
|
|
710
|
+
_(Optional)_ Rotation angle
|
|
711
|
+
|
|
712
|
+
</td></tr>
|
|
713
|
+
<tr><td>
|
|
714
|
+
|
|
715
|
+
mirror
|
|
716
|
+
|
|
717
|
+
</td><td>
|
|
718
|
+
|
|
719
|
+
boolean
|
|
720
|
+
|
|
721
|
+
</td><td>
|
|
722
|
+
|
|
723
|
+
_(Optional)_ Whether it is mirrored
|
|
724
|
+
|
|
725
|
+
</td></tr>
|
|
726
|
+
</tbody></table>
|
|
727
|
+
|
|
728
|
+
## Returns
|
|
729
|
+
|
|
730
|
+
Promise<[ISCH\_PrimitiveComponent](./ISCH_PrimitiveComponent.md) \| undefined>
|
|
731
|
+
|
|
732
|
+
Device primitive object
|
|
733
|
+
|
|
734
|
+
## Example
|
|
735
|
+
|
|
736
|
+
```javascript
|
|
737
|
+
// 1. 随机坐标避免与画布已有图元重合(SCH 坐标单位 10mil)
|
|
738
|
+
const x = 2000 + Math.floor(Math.random() * 8000);
|
|
739
|
+
const y = 2000 + Math.floor(Math.random() * 8000);
|
|
740
|
+
|
|
741
|
+
// 2. 创建 Power 类型的网络标识,网络名为 VCC
|
|
742
|
+
const flag = await eda.sch_PrimitiveComponent.createNetFlag(
|
|
743
|
+
'Power', // 标识类型:'Power' / 'Ground' / 'AnalogGround' / 'ProtectGround'
|
|
744
|
+
'嘉立创示例_VCC', // 网络名称
|
|
745
|
+
x, // 坐标 X
|
|
746
|
+
y, // 坐标 Y
|
|
747
|
+
0, // 旋转角度
|
|
748
|
+
false // 是否镜像
|
|
749
|
+
);
|
|
750
|
+
|
|
751
|
+
// 3. 创建类保留现场,供在画布上观察标识样式
|
|
752
|
+
console.log('primitiveId:', flag.getState_PrimitiveId());
|
|
753
|
+
console.log('net:', flag.getState_Net());
|
|
754
|
+
console.log('componentType:', flag.getState_ComponentType());
|
|
755
|
+
```
|
|
756
|
+
|
|
757
|
+
### createnetport
|
|
758
|
+
|
|
759
|
+
# SCH\_PrimitiveComponent.createNetPort() method
|
|
760
|
+
|
|
761
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
762
|
+
|
|
763
|
+
Create Net port
|
|
764
|
+
|
|
765
|
+
## Signature
|
|
766
|
+
|
|
767
|
+
```typescript
|
|
768
|
+
function createNetPort(
|
|
769
|
+
direction: 'IN' | 'OUT' | 'BI',
|
|
770
|
+
net: string,
|
|
771
|
+
x: number,
|
|
772
|
+
y: number,
|
|
773
|
+
rotation?: number,
|
|
774
|
+
mirror?: boolean,
|
|
775
|
+
): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
776
|
+
```
|
|
777
|
+
|
|
778
|
+
## Parameters
|
|
779
|
+
|
|
780
|
+
<table><thead><tr><th>
|
|
781
|
+
|
|
782
|
+
Parameter
|
|
783
|
+
|
|
784
|
+
</th><th>
|
|
785
|
+
|
|
786
|
+
Type
|
|
787
|
+
|
|
788
|
+
</th><th>
|
|
789
|
+
|
|
790
|
+
Description
|
|
791
|
+
|
|
792
|
+
</th></tr></thead>
|
|
793
|
+
<tbody><tr><td>
|
|
794
|
+
|
|
795
|
+
direction
|
|
796
|
+
|
|
797
|
+
</td><td>
|
|
798
|
+
|
|
799
|
+
'IN' \| 'OUT' \| 'BI'
|
|
800
|
+
|
|
801
|
+
</td><td>
|
|
802
|
+
|
|
803
|
+
Port direction
|
|
804
|
+
|
|
805
|
+
</td></tr>
|
|
806
|
+
<tr><td>
|
|
807
|
+
|
|
808
|
+
net
|
|
809
|
+
|
|
810
|
+
</td><td>
|
|
811
|
+
|
|
812
|
+
string
|
|
813
|
+
|
|
814
|
+
</td><td>
|
|
815
|
+
|
|
816
|
+
Net name
|
|
817
|
+
|
|
818
|
+
</td></tr>
|
|
819
|
+
<tr><td>
|
|
820
|
+
|
|
821
|
+
x
|
|
822
|
+
|
|
823
|
+
</td><td>
|
|
824
|
+
|
|
825
|
+
number
|
|
826
|
+
|
|
827
|
+
</td><td>
|
|
828
|
+
|
|
829
|
+
X coordinate
|
|
830
|
+
|
|
831
|
+
</td></tr>
|
|
832
|
+
<tr><td>
|
|
833
|
+
|
|
834
|
+
y
|
|
835
|
+
|
|
836
|
+
</td><td>
|
|
837
|
+
|
|
838
|
+
number
|
|
839
|
+
|
|
840
|
+
</td><td>
|
|
841
|
+
|
|
842
|
+
Y coordinate
|
|
843
|
+
|
|
844
|
+
</td></tr>
|
|
845
|
+
<tr><td>
|
|
846
|
+
|
|
847
|
+
rotation
|
|
848
|
+
|
|
849
|
+
</td><td>
|
|
850
|
+
|
|
851
|
+
number
|
|
852
|
+
|
|
853
|
+
</td><td>
|
|
854
|
+
|
|
855
|
+
_(Optional)_ Rotation angle
|
|
856
|
+
|
|
857
|
+
</td></tr>
|
|
858
|
+
<tr><td>
|
|
859
|
+
|
|
860
|
+
mirror
|
|
861
|
+
|
|
862
|
+
</td><td>
|
|
863
|
+
|
|
864
|
+
boolean
|
|
865
|
+
|
|
866
|
+
</td><td>
|
|
867
|
+
|
|
868
|
+
_(Optional)_ Whether it is mirrored
|
|
869
|
+
|
|
870
|
+
</td></tr>
|
|
871
|
+
</tbody></table>
|
|
872
|
+
|
|
873
|
+
## Returns
|
|
874
|
+
|
|
875
|
+
Promise<[ISCH\_PrimitiveComponent](./ISCH_PrimitiveComponent.md) \| undefined>
|
|
876
|
+
|
|
877
|
+
Device primitive object
|
|
878
|
+
|
|
879
|
+
## Example
|
|
880
|
+
|
|
881
|
+
```javascript
|
|
882
|
+
// 1. 随机坐标避免与画布已有图元重合(SCH 坐标单位 10mil)
|
|
883
|
+
const x = 2000 + Math.floor(Math.random() * 8000);
|
|
884
|
+
const y = 2000 + Math.floor(Math.random() * 8000);
|
|
885
|
+
|
|
886
|
+
// 2. 创建输入方向的端口,网络名为 SIG_IN
|
|
887
|
+
const port = await eda.sch_PrimitiveComponent.createNetPort(
|
|
888
|
+
'IN', // 端口方向:'IN' / 'OUT' / 'BI'
|
|
889
|
+
'嘉立创示例_SIG', // 网络名称
|
|
890
|
+
x, // 坐标 X
|
|
891
|
+
y, // 坐标 Y
|
|
892
|
+
0, // 旋转角度
|
|
893
|
+
false // 是否镜像
|
|
894
|
+
);
|
|
895
|
+
|
|
896
|
+
// 3. 创建类保留现场,供在画布上观察端口样式
|
|
897
|
+
console.log('primitiveId:', port.getState_PrimitiveId());
|
|
898
|
+
console.log('net:', port.getState_Net());
|
|
899
|
+
console.log('componentType:', port.getState_ComponentType());
|
|
900
|
+
```
|
|
901
|
+
|
|
902
|
+
### createshortcircuitflag
|
|
903
|
+
|
|
904
|
+
# SCH\_PrimitiveComponent.createShortCircuitFlag() method
|
|
905
|
+
|
|
906
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
907
|
+
|
|
908
|
+
Create a short circuit flag
|
|
909
|
+
|
|
910
|
+
## Signature
|
|
911
|
+
|
|
912
|
+
```typescript
|
|
913
|
+
function createShortCircuitFlag(
|
|
914
|
+
x: number,
|
|
915
|
+
y: number,
|
|
916
|
+
rotation?: number,
|
|
917
|
+
mirror?: boolean,
|
|
918
|
+
): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
919
|
+
```
|
|
920
|
+
|
|
921
|
+
## Parameters
|
|
922
|
+
|
|
923
|
+
<table><thead><tr><th>
|
|
924
|
+
|
|
925
|
+
Parameter
|
|
926
|
+
|
|
927
|
+
</th><th>
|
|
928
|
+
|
|
929
|
+
Type
|
|
930
|
+
|
|
931
|
+
</th><th>
|
|
932
|
+
|
|
933
|
+
Description
|
|
934
|
+
|
|
935
|
+
</th></tr></thead>
|
|
936
|
+
<tbody><tr><td>
|
|
937
|
+
|
|
938
|
+
x
|
|
939
|
+
|
|
940
|
+
</td><td>
|
|
941
|
+
|
|
942
|
+
number
|
|
943
|
+
|
|
944
|
+
</td><td>
|
|
945
|
+
|
|
946
|
+
X coordinate
|
|
947
|
+
|
|
948
|
+
</td></tr>
|
|
949
|
+
<tr><td>
|
|
950
|
+
|
|
951
|
+
y
|
|
952
|
+
|
|
953
|
+
</td><td>
|
|
954
|
+
|
|
955
|
+
number
|
|
956
|
+
|
|
957
|
+
</td><td>
|
|
958
|
+
|
|
959
|
+
Y coordinate
|
|
960
|
+
|
|
961
|
+
</td></tr>
|
|
962
|
+
<tr><td>
|
|
963
|
+
|
|
964
|
+
rotation
|
|
965
|
+
|
|
966
|
+
</td><td>
|
|
967
|
+
|
|
968
|
+
number
|
|
969
|
+
|
|
970
|
+
</td><td>
|
|
971
|
+
|
|
972
|
+
_(Optional)_ Rotation angle
|
|
973
|
+
|
|
974
|
+
</td></tr>
|
|
975
|
+
<tr><td>
|
|
976
|
+
|
|
977
|
+
mirror
|
|
978
|
+
|
|
979
|
+
</td><td>
|
|
980
|
+
|
|
981
|
+
boolean
|
|
982
|
+
|
|
983
|
+
</td><td>
|
|
984
|
+
|
|
985
|
+
_(Optional)_ Whether it is mirrored
|
|
986
|
+
|
|
987
|
+
</td></tr>
|
|
988
|
+
</tbody></table>
|
|
989
|
+
|
|
990
|
+
## Returns
|
|
991
|
+
|
|
992
|
+
Promise<[ISCH\_PrimitiveComponent](./ISCH_PrimitiveComponent.md) \| undefined>
|
|
993
|
+
|
|
994
|
+
Device primitive object
|
|
995
|
+
|
|
996
|
+
## Example
|
|
997
|
+
|
|
998
|
+
```javascript
|
|
999
|
+
// 1. 随机坐标避免与画布已有图元重合(SCH 坐标单位 10mil)
|
|
1000
|
+
const x = 2000 + Math.floor(Math.random() * 8000);
|
|
1001
|
+
const y = 2000 + Math.floor(Math.random() * 8000);
|
|
1002
|
+
|
|
1003
|
+
// 2. 创建短接标识(无网络名参数,仅位置与姿态)
|
|
1004
|
+
const flag = await eda.sch_PrimitiveComponent.createShortCircuitFlag(
|
|
1005
|
+
x, // 坐标 X
|
|
1006
|
+
y, // 坐标 Y
|
|
1007
|
+
0, // 旋转角度
|
|
1008
|
+
false // 是否镜像
|
|
1009
|
+
);
|
|
1010
|
+
|
|
1011
|
+
// 3. 创建类保留现场,供在画布上观察标识样式
|
|
1012
|
+
console.log('primitiveId:', flag.getState_PrimitiveId());
|
|
1013
|
+
console.log('componentType:', flag.getState_ComponentType());
|
|
1014
|
+
console.log('position:', flag.getState_X(), ',', flag.getState_Y());
|
|
1015
|
+
```
|
|
1016
|
+
|
|
1017
|
+
### delete
|
|
1018
|
+
|
|
1019
|
+
# SCH\_PrimitiveComponent.delete() method
|
|
1020
|
+
|
|
1021
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
1022
|
+
|
|
1023
|
+
Delete Device
|
|
1024
|
+
|
|
1025
|
+
## Signature
|
|
1026
|
+
|
|
1027
|
+
```typescript
|
|
1028
|
+
function delete(primitiveIds: string | ISCH_PrimitiveComponent | Array<string> | Array<ISCH_PrimitiveComponent>): Promise<boolean>;
|
|
1029
|
+
```
|
|
1030
|
+
|
|
1031
|
+
## Parameters
|
|
1032
|
+
|
|
1033
|
+
<table><thead><tr><th>
|
|
1034
|
+
|
|
1035
|
+
Parameter
|
|
1036
|
+
|
|
1037
|
+
</th><th>
|
|
1038
|
+
|
|
1039
|
+
Type
|
|
1040
|
+
|
|
1041
|
+
</th><th>
|
|
1042
|
+
|
|
1043
|
+
Description
|
|
1044
|
+
|
|
1045
|
+
</th></tr></thead>
|
|
1046
|
+
<tbody><tr><td>
|
|
1047
|
+
|
|
1048
|
+
primitiveIds
|
|
1049
|
+
|
|
1050
|
+
</td><td>
|
|
1051
|
+
|
|
1052
|
+
string \| [ISCH\_PrimitiveComponent](./ISCH_PrimitiveComponent.md) \| Array<string> \| Array<[ISCH\_PrimitiveComponent](./ISCH_PrimitiveComponent.md)<!-- -->>
|
|
1053
|
+
|
|
1054
|
+
</td><td>
|
|
1055
|
+
|
|
1056
|
+
Device primitive ID or Device primitive object
|
|
1057
|
+
|
|
1058
|
+
</td></tr>
|
|
1059
|
+
</tbody></table>
|
|
1060
|
+
|
|
1061
|
+
## Returns
|
|
1062
|
+
|
|
1063
|
+
Promise<boolean>
|
|
1064
|
+
|
|
1065
|
+
Delete Whether the operation is successful
|
|
1066
|
+
|
|
1067
|
+
## Example
|
|
1068
|
+
|
|
1069
|
+
```javascript
|
|
1070
|
+
// 1. 创建两个待删除的测试器件(随机坐标避免重合,SCH 坐标单位 10mil)
|
|
1071
|
+
const devices = await eda.lib_Device.search('');
|
|
1072
|
+
const x = 2000 + Math.floor(Math.random() * 8000);
|
|
1073
|
+
const y = 2000 + Math.floor(Math.random() * 8000);
|
|
1074
|
+
const comp1 = await eda.sch_PrimitiveComponent.create(devices[0], x, y);
|
|
1075
|
+
const comp2 = await eda.sch_PrimitiveComponent.create(devices[0], x + 400, y);
|
|
1076
|
+
|
|
1077
|
+
// 2. 记录删除前的器件数量
|
|
1078
|
+
const beforeCount = (await eda.sch_PrimitiveComponent.getAll()).length;
|
|
1079
|
+
|
|
1080
|
+
// 3. 分别以 ID 字符串和图元对象两种形式删除两个器件
|
|
1081
|
+
const deleted1 = await eda.sch_PrimitiveComponent.delete(comp1.getState_PrimitiveId());
|
|
1082
|
+
const deleted2 = await eda.sch_PrimitiveComponent.delete(comp2);
|
|
1083
|
+
|
|
1084
|
+
// 4. 删除类保留现场(图元已删除,不恢复)
|
|
1085
|
+
const afterCount = (await eda.sch_PrimitiveComponent.getAll()).length;
|
|
1086
|
+
|
|
1087
|
+
console.log('deleted by id:', deleted1);
|
|
1088
|
+
console.log('deleted by object:', deleted2);
|
|
1089
|
+
console.log('beforeCount:', beforeCount, '→ afterCount:', afterCount);
|
|
1090
|
+
```
|
|
1091
|
+
|
|
1092
|
+
### get
|
|
1093
|
+
|
|
1094
|
+
# SCH\_PrimitiveComponent.get() method
|
|
1095
|
+
|
|
1096
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
1097
|
+
|
|
1098
|
+
Get Device
|
|
1099
|
+
|
|
1100
|
+
## Signature
|
|
1101
|
+
|
|
1102
|
+
```typescript
|
|
1103
|
+
function get(primitiveIds: string): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
1104
|
+
```
|
|
1105
|
+
|
|
1106
|
+
## Parameters
|
|
1107
|
+
|
|
1108
|
+
<table><thead><tr><th>
|
|
1109
|
+
|
|
1110
|
+
Parameter
|
|
1111
|
+
|
|
1112
|
+
</th><th>
|
|
1113
|
+
|
|
1114
|
+
Type
|
|
1115
|
+
|
|
1116
|
+
</th><th>
|
|
1117
|
+
|
|
1118
|
+
Description
|
|
1119
|
+
|
|
1120
|
+
</th></tr></thead>
|
|
1121
|
+
<tbody><tr><td>
|
|
1122
|
+
|
|
1123
|
+
primitiveIds
|
|
1124
|
+
|
|
1125
|
+
</td><td>
|
|
1126
|
+
|
|
1127
|
+
string
|
|
1128
|
+
|
|
1129
|
+
</td><td>
|
|
1130
|
+
|
|
1131
|
+
Device primitive ID, which can be a string or an array of strings. If it is an array, an array is also returned
|
|
1132
|
+
|
|
1133
|
+
</td></tr>
|
|
1134
|
+
</tbody></table>
|
|
1135
|
+
|
|
1136
|
+
## Returns
|
|
1137
|
+
|
|
1138
|
+
Promise<[ISCH\_PrimitiveComponent](./ISCH_PrimitiveComponent.md) \| undefined>
|
|
1139
|
+
|
|
1140
|
+
Device primitive object, `undefined` indicates that the retrieval failed
|
|
1141
|
+
|
|
1142
|
+
## Example
|
|
1143
|
+
|
|
1144
|
+
```javascript
|
|
1145
|
+
// 1. 创建两个测试器件(随机坐标避免重合,SCH 坐标单位 10mil)
|
|
1146
|
+
const devices = await eda.lib_Device.search('');
|
|
1147
|
+
const x = 2000 + Math.floor(Math.random() * 8000);
|
|
1148
|
+
const y = 2000 + Math.floor(Math.random() * 8000);
|
|
1149
|
+
const comp1 = await eda.sch_PrimitiveComponent.create(devices[0], x, y);
|
|
1150
|
+
const comp2 = await eda.sch_PrimitiveComponent.create(devices[0], x + 400, y);
|
|
1151
|
+
|
|
1152
|
+
// 2. 传单个 ID 字符串,返回单个器件对象
|
|
1153
|
+
const single = await eda.sch_PrimitiveComponent.get(comp1.getState_PrimitiveId());
|
|
1154
|
+
|
|
1155
|
+
// 3. 传 ID 数组,返回器件对象数组(任一 ID 未匹配不影响其它图元的返回)
|
|
1156
|
+
const arr = await eda.sch_PrimitiveComponent.get([
|
|
1157
|
+
comp1.getState_PrimitiveId(),
|
|
1158
|
+
comp2.getState_PrimitiveId()
|
|
1159
|
+
]);
|
|
1160
|
+
|
|
1161
|
+
// 4. 清理测试图元(查询类需要清理)
|
|
1162
|
+
await eda.sch_PrimitiveComponent.delete([comp1.getState_PrimitiveId(), comp2.getState_PrimitiveId()]);
|
|
1163
|
+
|
|
1164
|
+
console.log('single designator:', single.getState_Designator());
|
|
1165
|
+
console.log('array length:', arr.length);
|
|
1166
|
+
console.log('comp2 designator:', arr[1].getState_Designator());
|
|
1167
|
+
```
|
|
1168
|
+
|
|
1169
|
+
### get_1
|
|
1170
|
+
|
|
1171
|
+
# SCH\_PrimitiveComponent.get() method
|
|
1172
|
+
|
|
1173
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
1174
|
+
|
|
1175
|
+
Get Device
|
|
1176
|
+
|
|
1177
|
+
## Signature
|
|
1178
|
+
|
|
1179
|
+
```typescript
|
|
1180
|
+
function get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveComponent>>;
|
|
1181
|
+
```
|
|
1182
|
+
|
|
1183
|
+
## Parameters
|
|
1184
|
+
|
|
1185
|
+
<table><thead><tr><th>
|
|
1186
|
+
|
|
1187
|
+
Parameter
|
|
1188
|
+
|
|
1189
|
+
</th><th>
|
|
1190
|
+
|
|
1191
|
+
Type
|
|
1192
|
+
|
|
1193
|
+
</th><th>
|
|
1194
|
+
|
|
1195
|
+
Description
|
|
1196
|
+
|
|
1197
|
+
</th></tr></thead>
|
|
1198
|
+
<tbody><tr><td>
|
|
1199
|
+
|
|
1200
|
+
primitiveIds
|
|
1201
|
+
|
|
1202
|
+
</td><td>
|
|
1203
|
+
|
|
1204
|
+
Array<string>
|
|
1205
|
+
|
|
1206
|
+
</td><td>
|
|
1207
|
+
|
|
1208
|
+
Device primitive ID, which can be a string or an array of strings. If it is an array, an array is also returned
|
|
1209
|
+
|
|
1210
|
+
</td></tr>
|
|
1211
|
+
</tbody></table>
|
|
1212
|
+
|
|
1213
|
+
## Returns
|
|
1214
|
+
|
|
1215
|
+
Promise<Array<[ISCH\_PrimitiveComponent](./ISCH_PrimitiveComponent.md)<!-- -->>>
|
|
1216
|
+
|
|
1217
|
+
Device primitive object; an empty array indicates that the retrieval failed
|
|
1218
|
+
|
|
1219
|
+
## Remarks
|
|
1220
|
+
|
|
1221
|
+
If multiple primitive IDs are passed in, a primitive ID that is not matched will not affect the return of other primitives; that is, fewer primitive objects than the number of primitive IDs passed in may be returned.
|
|
1222
|
+
|
|
1223
|
+
### getall
|
|
1224
|
+
|
|
1225
|
+
# SCH\_PrimitiveComponent.getAll() method
|
|
1226
|
+
|
|
1227
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
1228
|
+
|
|
1229
|
+
Get all Device
|
|
1230
|
+
|
|
1231
|
+
## Signature
|
|
1232
|
+
|
|
1233
|
+
```typescript
|
|
1234
|
+
function getAll(
|
|
1235
|
+
componentType?: ESCH_PrimitiveComponentType,
|
|
1236
|
+
allSchematicPages?: boolean,
|
|
1237
|
+
): Promise<Array<ISCH_PrimitiveComponent>>;
|
|
1238
|
+
```
|
|
1239
|
+
|
|
1240
|
+
## Parameters
|
|
1241
|
+
|
|
1242
|
+
<table><thead><tr><th>
|
|
1243
|
+
|
|
1244
|
+
Parameter
|
|
1245
|
+
|
|
1246
|
+
</th><th>
|
|
1247
|
+
|
|
1248
|
+
Type
|
|
1249
|
+
|
|
1250
|
+
</th><th>
|
|
1251
|
+
|
|
1252
|
+
Description
|
|
1253
|
+
|
|
1254
|
+
</th></tr></thead>
|
|
1255
|
+
<tbody><tr><td>
|
|
1256
|
+
|
|
1257
|
+
componentType
|
|
1258
|
+
|
|
1259
|
+
</td><td>
|
|
1260
|
+
|
|
1261
|
+
[ESCH\_PrimitiveComponentType](../enums/ESCH_PrimitiveComponentType.md)
|
|
1262
|
+
|
|
1263
|
+
</td><td>
|
|
1264
|
+
|
|
1265
|
+
_(Optional)_ Device type
|
|
1266
|
+
|
|
1267
|
+
</td></tr>
|
|
1268
|
+
<tr><td>
|
|
1269
|
+
|
|
1270
|
+
allSchematicPages
|
|
1271
|
+
|
|
1272
|
+
</td><td>
|
|
1273
|
+
|
|
1274
|
+
boolean
|
|
1275
|
+
|
|
1276
|
+
</td><td>
|
|
1277
|
+
|
|
1278
|
+
_(Optional)_ Whether to get the devices of all schematic sheets
|
|
1279
|
+
|
|
1280
|
+
</td></tr>
|
|
1281
|
+
</tbody></table>
|
|
1282
|
+
|
|
1283
|
+
## Returns
|
|
1284
|
+
|
|
1285
|
+
Promise<Array<[ISCH\_PrimitiveComponent](./ISCH_PrimitiveComponent.md)<!-- -->>>
|
|
1286
|
+
|
|
1287
|
+
Array of Device primitive objects
|
|
1288
|
+
|
|
1289
|
+
## Remarks
|
|
1290
|
+
|
|
1291
|
+
`allSchematicPages=true` 时本接口\*\*不会主动加载未打开的图页\*\*,只返回已加载图页中的器件
|
|
1292
|
+
|
|
1293
|
+
如需覆盖全部图页,请先打开所有图页(如逐页 `openDocument`<!-- -->)再调用
|
|
1294
|
+
|
|
1295
|
+
## Example
|
|
1296
|
+
|
|
1297
|
+
```javascript
|
|
1298
|
+
// 1. 创建一个普通元件和一个网络标识作为查找目标(随机坐标避免重合)
|
|
1299
|
+
const devices = await eda.lib_Device.search('');
|
|
1300
|
+
const x = 2000 + Math.floor(Math.random() * 8000);
|
|
1301
|
+
const y = 2000 + Math.floor(Math.random() * 8000);
|
|
1302
|
+
const comp = await eda.sch_PrimitiveComponent.create(devices[0], x, y);
|
|
1303
|
+
const flag = await eda.sch_PrimitiveComponent.createNetFlag('Power', '嘉立创示例_VCC', x + 600, y);
|
|
1304
|
+
const compId = comp.getState_PrimitiveId();
|
|
1305
|
+
|
|
1306
|
+
// 2. 不传参数,取当前图页全部器件
|
|
1307
|
+
const all = await eda.sch_PrimitiveComponent.getAll();
|
|
1308
|
+
|
|
1309
|
+
// 3. 传入类型 'netflag' 只取网络标识(ESCH_PrimitiveComponentType 值)
|
|
1310
|
+
const flags = await eda.sch_PrimitiveComponent.getAll('netflag');
|
|
1311
|
+
|
|
1312
|
+
// 4. 清理测试图元(查询类需要清理)
|
|
1313
|
+
await eda.sch_PrimitiveComponent.delete([compId, flag.getState_PrimitiveId()]);
|
|
1314
|
+
|
|
1315
|
+
console.log('total components:', all.length);
|
|
1316
|
+
console.log('marker comp found:', all.some(c => c.getState_PrimitiveId() === compId));
|
|
1317
|
+
console.log('netflag count:', flags.length);
|
|
1318
|
+
```
|
|
1319
|
+
|
|
1320
|
+
### getallpinsbyprimitiveid
|
|
1321
|
+
|
|
1322
|
+
# SCH\_PrimitiveComponent.getAllPinsByPrimitiveId() method
|
|
1323
|
+
|
|
1324
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
1325
|
+
|
|
1326
|
+
Get all pins associated with the device
|
|
1327
|
+
|
|
1328
|
+
## Signature
|
|
1329
|
+
|
|
1330
|
+
```typescript
|
|
1331
|
+
function getAllPinsByPrimitiveId(
|
|
1332
|
+
primitiveId: string,
|
|
1333
|
+
): Promise<Array<ISCH_PrimitiveComponentPin> | undefined>;
|
|
1334
|
+
```
|
|
1335
|
+
|
|
1336
|
+
## Parameters
|
|
1337
|
+
|
|
1338
|
+
<table><thead><tr><th>
|
|
1339
|
+
|
|
1340
|
+
Parameter
|
|
1341
|
+
|
|
1342
|
+
</th><th>
|
|
1343
|
+
|
|
1344
|
+
Type
|
|
1345
|
+
|
|
1346
|
+
</th><th>
|
|
1347
|
+
|
|
1348
|
+
Description
|
|
1349
|
+
|
|
1350
|
+
</th></tr></thead>
|
|
1351
|
+
<tbody><tr><td>
|
|
1352
|
+
|
|
1353
|
+
primitiveId
|
|
1354
|
+
|
|
1355
|
+
</td><td>
|
|
1356
|
+
|
|
1357
|
+
string
|
|
1358
|
+
|
|
1359
|
+
</td><td>
|
|
1360
|
+
|
|
1361
|
+
Device primitive ID
|
|
1362
|
+
|
|
1363
|
+
</td></tr>
|
|
1364
|
+
</tbody></table>
|
|
1365
|
+
|
|
1366
|
+
## Returns
|
|
1367
|
+
|
|
1368
|
+
Promise<Array<[ISCH\_PrimitiveComponentPin](./ISCH_PrimitiveComponentPin.md)<!-- -->> \| undefined>
|
|
1369
|
+
|
|
1370
|
+
Device pin primitive array
|
|
1371
|
+
|
|
1372
|
+
## Example
|
|
1373
|
+
|
|
1374
|
+
```javascript
|
|
1375
|
+
// 1. 创建一个带引脚的测试器件(随机坐标避免重合,SCH 坐标单位 10mil)
|
|
1376
|
+
const devices = await eda.lib_Device.search('');
|
|
1377
|
+
const x = 2000 + Math.floor(Math.random() * 8000);
|
|
1378
|
+
const y = 2000 + Math.floor(Math.random() * 8000);
|
|
1379
|
+
const comp = await eda.sch_PrimitiveComponent.create(devices[0], x, y);
|
|
1380
|
+
const compId = comp.getState_PrimitiveId();
|
|
1381
|
+
|
|
1382
|
+
// 2. 按图元 ID 取出该器件的全部引脚(返回纯数据对象,字段直接可读)
|
|
1383
|
+
const pins = await eda.sch_PrimitiveComponent.getAllPinsByPrimitiveId(compId);
|
|
1384
|
+
|
|
1385
|
+
// 3. 清理测试图元(查询类需要清理)
|
|
1386
|
+
await eda.sch_PrimitiveComponent.delete([compId]);
|
|
1387
|
+
|
|
1388
|
+
console.log('pin count:', pins.length);
|
|
1389
|
+
console.log('first pin number:', pins[0].pinNumber);
|
|
1390
|
+
console.log('first pin type:', pins[0].pinType);
|
|
1391
|
+
```
|
|
1392
|
+
|
|
1393
|
+
### getallprimitiveid
|
|
1394
|
+
|
|
1395
|
+
# SCH\_PrimitiveComponent.getAllPrimitiveId() method
|
|
1396
|
+
|
|
1397
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
1398
|
+
|
|
1399
|
+
Get all Device primitive IDs
|
|
1400
|
+
|
|
1401
|
+
## Signature
|
|
1402
|
+
|
|
1403
|
+
```typescript
|
|
1404
|
+
function getAllPrimitiveId(
|
|
1405
|
+
componentType?: ESCH_PrimitiveComponentType,
|
|
1406
|
+
allSchematicPages?: boolean,
|
|
1407
|
+
): Promise<Array<string>>;
|
|
1408
|
+
```
|
|
1409
|
+
|
|
1410
|
+
## Parameters
|
|
1411
|
+
|
|
1412
|
+
<table><thead><tr><th>
|
|
1413
|
+
|
|
1414
|
+
Parameter
|
|
1415
|
+
|
|
1416
|
+
</th><th>
|
|
1417
|
+
|
|
1418
|
+
Type
|
|
1419
|
+
|
|
1420
|
+
</th><th>
|
|
1421
|
+
|
|
1422
|
+
Description
|
|
1423
|
+
|
|
1424
|
+
</th></tr></thead>
|
|
1425
|
+
<tbody><tr><td>
|
|
1426
|
+
|
|
1427
|
+
componentType
|
|
1428
|
+
|
|
1429
|
+
</td><td>
|
|
1430
|
+
|
|
1431
|
+
[ESCH\_PrimitiveComponentType](../enums/ESCH_PrimitiveComponentType.md)
|
|
1432
|
+
|
|
1433
|
+
</td><td>
|
|
1434
|
+
|
|
1435
|
+
_(Optional)_ Device type
|
|
1436
|
+
|
|
1437
|
+
</td></tr>
|
|
1438
|
+
<tr><td>
|
|
1439
|
+
|
|
1440
|
+
allSchematicPages
|
|
1441
|
+
|
|
1442
|
+
</td><td>
|
|
1443
|
+
|
|
1444
|
+
boolean
|
|
1445
|
+
|
|
1446
|
+
</td><td>
|
|
1447
|
+
|
|
1448
|
+
_(Optional)_ Whether to get the devices of all schematic sheets
|
|
1449
|
+
|
|
1450
|
+
</td></tr>
|
|
1451
|
+
</tbody></table>
|
|
1452
|
+
|
|
1453
|
+
## Returns
|
|
1454
|
+
|
|
1455
|
+
Promise<Array<string>>
|
|
1456
|
+
|
|
1457
|
+
Array of Device primitive IDs
|
|
1458
|
+
|
|
1459
|
+
## Remarks
|
|
1460
|
+
|
|
1461
|
+
`allSchematicPages=true` 时本接口 \*\*不会主动加载未打开的图页\*\*,只返回已加载图页中的器件
|
|
1462
|
+
|
|
1463
|
+
如需覆盖全部图页,请先打开所有图页(如逐页 `openDocument`<!-- -->)再调用
|
|
1464
|
+
|
|
1465
|
+
## Example
|
|
1466
|
+
|
|
1467
|
+
```javascript
|
|
1468
|
+
// 1. 创建一个网络标识作为查找目标(随机坐标避免重合,SCH 坐标单位 10mil)
|
|
1469
|
+
const x = 2000 + Math.floor(Math.random() * 8000);
|
|
1470
|
+
const y = 2000 + Math.floor(Math.random() * 8000);
|
|
1471
|
+
const flag = await eda.sch_PrimitiveComponent.createNetFlag('Power', '嘉立创示例_VCC', x, y);
|
|
1472
|
+
const flagId = flag.getState_PrimitiveId();
|
|
1473
|
+
|
|
1474
|
+
// 2. 不传参数,取当前图页全部器件的图元 ID
|
|
1475
|
+
const allIds = await eda.sch_PrimitiveComponent.getAllPrimitiveId();
|
|
1476
|
+
|
|
1477
|
+
// 3. 传入类型 'netflag' 只取网络标识的图元 ID
|
|
1478
|
+
const flagIds = await eda.sch_PrimitiveComponent.getAllPrimitiveId('netflag');
|
|
1479
|
+
|
|
1480
|
+
// 4. 清理测试图元(查询类需要清理)
|
|
1481
|
+
await eda.sch_PrimitiveComponent.delete([flagId]);
|
|
1482
|
+
|
|
1483
|
+
console.log('total ids:', allIds.length);
|
|
1484
|
+
console.log('netflag ids:', flagIds.length);
|
|
1485
|
+
console.log('marker flag found:', flagIds.includes(flagId));
|
|
1486
|
+
```
|
|
1487
|
+
|
|
1488
|
+
### getallpropertynames
|
|
1489
|
+
|
|
1490
|
+
# SCH\_PrimitiveComponent.getAllPropertyNames() method
|
|
1491
|
+
|
|
1492
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
1493
|
+
|
|
1494
|
+
Get The set of all property names of all devices
|
|
1495
|
+
|
|
1496
|
+
## Signature
|
|
1497
|
+
|
|
1498
|
+
```typescript
|
|
1499
|
+
function getAllPropertyNames(): Promise<Array<string>>;
|
|
1500
|
+
```
|
|
1501
|
+
|
|
1502
|
+
## Returns
|
|
1503
|
+
|
|
1504
|
+
Promise<Array<string>>
|
|
1505
|
+
|
|
1506
|
+
The set of all property names of all devices
|
|
1507
|
+
|
|
1508
|
+
## Example
|
|
1509
|
+
|
|
1510
|
+
```javascript
|
|
1511
|
+
// 1. 创建一个测试器件,保证画布上有带属性的器件(随机坐标避免重合)
|
|
1512
|
+
const devices = await eda.lib_Device.search('');
|
|
1513
|
+
const x = 2000 + Math.floor(Math.random() * 8000);
|
|
1514
|
+
const y = 2000 + Math.floor(Math.random() * 8000);
|
|
1515
|
+
const comp = await eda.sch_PrimitiveComponent.create(devices[0], x, y);
|
|
1516
|
+
|
|
1517
|
+
// 2. 取所有器件出现过的属性名称集合
|
|
1518
|
+
const names = await eda.sch_PrimitiveComponent.getAllPropertyNames();
|
|
1519
|
+
|
|
1520
|
+
// 3. 清理测试图元(查询类需要清理)
|
|
1521
|
+
await eda.sch_PrimitiveComponent.delete([comp.getState_PrimitiveId()]);
|
|
1522
|
+
|
|
1523
|
+
console.log('property name count:', names.length);
|
|
1524
|
+
console.log('names:', names.join(', '));
|
|
1525
|
+
```
|
|
1526
|
+
|
|
1527
|
+
### modify
|
|
1528
|
+
|
|
1529
|
+
# SCH\_PrimitiveComponent.modify() method
|
|
1530
|
+
|
|
1531
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
1532
|
+
|
|
1533
|
+
Modify Device
|
|
1534
|
+
|
|
1535
|
+
## Signature
|
|
1536
|
+
|
|
1537
|
+
```typescript
|
|
1538
|
+
function modify(
|
|
1539
|
+
primitiveId: string | ISCH_PrimitiveComponent,
|
|
1540
|
+
property: {
|
|
1541
|
+
x?: number;
|
|
1542
|
+
y?: number;
|
|
1543
|
+
rotation?: number;
|
|
1544
|
+
mirror?: boolean;
|
|
1545
|
+
addIntoBom?: boolean;
|
|
1546
|
+
addIntoPcb?: boolean;
|
|
1547
|
+
designator?: string | null;
|
|
1548
|
+
name?: string | null;
|
|
1549
|
+
uniqueId?: string | null;
|
|
1550
|
+
manufacturer?: string | null;
|
|
1551
|
+
manufacturerId?: string | null;
|
|
1552
|
+
supplier?: string | null;
|
|
1553
|
+
supplierId?: string | null;
|
|
1554
|
+
otherProperty?: Record<string, string | number | boolean>;
|
|
1555
|
+
},
|
|
1556
|
+
): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
1557
|
+
```
|
|
1558
|
+
|
|
1559
|
+
## Parameters
|
|
1560
|
+
|
|
1561
|
+
<table><thead><tr><th>
|
|
1562
|
+
|
|
1563
|
+
Parameter
|
|
1564
|
+
|
|
1565
|
+
</th><th>
|
|
1566
|
+
|
|
1567
|
+
Type
|
|
1568
|
+
|
|
1569
|
+
</th><th>
|
|
1570
|
+
|
|
1571
|
+
Description
|
|
1572
|
+
|
|
1573
|
+
</th></tr></thead>
|
|
1574
|
+
<tbody><tr><td>
|
|
1575
|
+
|
|
1576
|
+
primitiveId
|
|
1577
|
+
|
|
1578
|
+
</td><td>
|
|
1579
|
+
|
|
1580
|
+
string \| [ISCH\_PrimitiveComponent](./ISCH_PrimitiveComponent.md)
|
|
1581
|
+
|
|
1582
|
+
</td><td>
|
|
1583
|
+
|
|
1584
|
+
Primitive ID
|
|
1585
|
+
|
|
1586
|
+
</td></tr>
|
|
1587
|
+
<tr><td>
|
|
1588
|
+
|
|
1589
|
+
property
|
|
1590
|
+
|
|
1591
|
+
</td><td>
|
|
1592
|
+
|
|
1593
|
+
{ x?: number; y?: number; rotation?: number; mirror?: boolean; addIntoBom?: boolean; addIntoPcb?: boolean; designator?: string \| null; name?: string \| null; uniqueId?: string \| null; manufacturer?: string \| null; manufacturerId?: string \| null; supplier?: string \| null; supplierId?: string \| null; otherProperty?: Record<string, string \| number \| boolean> }
|
|
1594
|
+
|
|
1595
|
+
</td><td>
|
|
1596
|
+
|
|
1597
|
+
</td></tr>
|
|
1598
|
+
</tbody></table>
|
|
1599
|
+
|
|
1600
|
+
## Returns
|
|
1601
|
+
|
|
1602
|
+
Promise<[ISCH\_PrimitiveComponent](./ISCH_PrimitiveComponent.md) \| undefined>
|
|
1603
|
+
|
|
1604
|
+
Device primitive object
|
|
1605
|
+
|
|
1606
|
+
## Remarks
|
|
1607
|
+
|
|
1608
|
+
This method can only be used for modification when the device type is [COMPONENT](../enums/ESCH_PrimitiveComponentType.md)
|
|
1609
|
+
|
|
1610
|
+
## Example
|
|
1611
|
+
|
|
1612
|
+
```javascript
|
|
1613
|
+
// 1. 创建待修改的测试器件(随机坐标避免与画布已有器件重合)
|
|
1614
|
+
const devices = await eda.lib_Device.search('');
|
|
1615
|
+
const x = 2000 + Math.floor(Math.random() * 8000);
|
|
1616
|
+
const y = 2000 + Math.floor(Math.random() * 8000);
|
|
1617
|
+
const comp = await eda.sch_PrimitiveComponent.create(devices[0], x, y);
|
|
1618
|
+
const compId = comp.getState_PrimitiveId();
|
|
1619
|
+
|
|
1620
|
+
// 2. 读取修改前的位号、旋转与 X 坐标
|
|
1621
|
+
const beforeDesignator = comp.getState_Designator();
|
|
1622
|
+
const beforeRotation = comp.getState_Rotation();
|
|
1623
|
+
const beforeX = comp.getState_X();
|
|
1624
|
+
|
|
1625
|
+
// 3. 批量修改:右移 400(约 101.6mm)、旋转 90 度、位号改为 U100
|
|
1626
|
+
await eda.sch_PrimitiveComponent.modify(compId, {
|
|
1627
|
+
x: x + 400,
|
|
1628
|
+
rotation: 90,
|
|
1629
|
+
designator: '嘉立创示例_U100'
|
|
1630
|
+
});
|
|
1631
|
+
|
|
1632
|
+
// 4. modify 返回后需要重新 get() 才能读到画布上的最新值
|
|
1633
|
+
const refreshed = await eda.sch_PrimitiveComponent.get(compId);
|
|
1634
|
+
|
|
1635
|
+
// 5. 修改类保留现场,供观察修改结果
|
|
1636
|
+
console.log('primitiveId:', compId);
|
|
1637
|
+
console.log('designator:', beforeDesignator, '→', refreshed.getState_Designator());
|
|
1638
|
+
console.log('rotation:', beforeRotation, '→', refreshed.getState_Rotation());
|
|
1639
|
+
console.log('x:', beforeX, '→', refreshed.getState_X());
|
|
1640
|
+
```
|
|
1641
|
+
|
|
1642
|
+
### placecbbschematicpage
|
|
1643
|
+
|
|
1644
|
+
# SCH\_PrimitiveComponent.placeCbbSchematicPage() method
|
|
1645
|
+
|
|
1646
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
1647
|
+
|
|
1648
|
+
Place reuse block schematic sheet
|
|
1649
|
+
|
|
1650
|
+
## Signature
|
|
1651
|
+
|
|
1652
|
+
```typescript
|
|
1653
|
+
function placeCbbSchematicPage(
|
|
1654
|
+
cbbSchematicPage: { libraryUuid: string; cbbUuid: string; uuid: string },
|
|
1655
|
+
x: number,
|
|
1656
|
+
y: number,
|
|
1657
|
+
props?: { reimportWhenNameRepeated?: boolean },
|
|
1658
|
+
): Promise<boolean>;
|
|
1659
|
+
```
|
|
1660
|
+
|
|
1661
|
+
## Parameters
|
|
1662
|
+
|
|
1663
|
+
<table><thead><tr><th>
|
|
1664
|
+
|
|
1665
|
+
Parameter
|
|
1666
|
+
|
|
1667
|
+
</th><th>
|
|
1668
|
+
|
|
1669
|
+
Type
|
|
1670
|
+
|
|
1671
|
+
</th><th>
|
|
1672
|
+
|
|
1673
|
+
Description
|
|
1674
|
+
|
|
1675
|
+
</th></tr></thead>
|
|
1676
|
+
<tbody><tr><td>
|
|
1677
|
+
|
|
1678
|
+
cbbSchematicPage
|
|
1679
|
+
|
|
1680
|
+
</td><td>
|
|
1681
|
+
|
|
1682
|
+
\{ libraryUuid: string; cbbUuid: string; uuid: string \}
|
|
1683
|
+
|
|
1684
|
+
</td><td>
|
|
1685
|
+
|
|
1686
|
+
Reuse block schematic sheet. `libraryUuid` is the UUID of the library where the CBB project is located, `cbbUuid` is the UUID of the CBB project, and `uuid` is the UUID of the schematic sheet in the CBB project
|
|
1687
|
+
|
|
1688
|
+
</td></tr>
|
|
1689
|
+
<tr><td>
|
|
1690
|
+
|
|
1691
|
+
x
|
|
1692
|
+
|
|
1693
|
+
</td><td>
|
|
1694
|
+
|
|
1695
|
+
number
|
|
1696
|
+
|
|
1697
|
+
</td><td>
|
|
1698
|
+
|
|
1699
|
+
X coordinate
|
|
1700
|
+
|
|
1701
|
+
</td></tr>
|
|
1702
|
+
<tr><td>
|
|
1703
|
+
|
|
1704
|
+
y
|
|
1705
|
+
|
|
1706
|
+
</td><td>
|
|
1707
|
+
|
|
1708
|
+
number
|
|
1709
|
+
|
|
1710
|
+
</td><td>
|
|
1711
|
+
|
|
1712
|
+
Y coordinate
|
|
1713
|
+
|
|
1714
|
+
</td></tr>
|
|
1715
|
+
<tr><td>
|
|
1716
|
+
|
|
1717
|
+
props
|
|
1718
|
+
|
|
1719
|
+
</td><td>
|
|
1720
|
+
|
|
1721
|
+
\{ reimportWhenNameRepeated?: boolean \}
|
|
1722
|
+
|
|
1723
|
+
</td><td>
|
|
1724
|
+
|
|
1725
|
+
_(Optional)_ 放置参数:`reimportWhenNameRepeated` 当存在重名模块时是否重新引入,默认 `true` ADD since EDA v4.2
|
|
1726
|
+
|
|
1727
|
+
</td></tr>
|
|
1728
|
+
</tbody></table>
|
|
1729
|
+
|
|
1730
|
+
## Returns
|
|
1731
|
+
|
|
1732
|
+
Promise<boolean>
|
|
1733
|
+
|
|
1734
|
+
Place whether the operation is successful
|
|
1735
|
+
|
|
1736
|
+
### placecomponentwithmouse
|
|
1737
|
+
|
|
1738
|
+
# SCH\_PrimitiveComponent.placeComponentWithMouse() method
|
|
1739
|
+
|
|
1740
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
1741
|
+
|
|
1742
|
+
Place with the mouse device
|
|
1743
|
+
|
|
1744
|
+
## Signature
|
|
1745
|
+
|
|
1746
|
+
```typescript
|
|
1747
|
+
function placeComponentWithMouse(
|
|
1748
|
+
component: { libraryUuid: string; uuid: string } | ILIB_DeviceItem | ILIB_DeviceSearchItem,
|
|
1749
|
+
subPartName?: string,
|
|
1750
|
+
): Promise<boolean>;
|
|
1751
|
+
```
|
|
1752
|
+
|
|
1753
|
+
## Parameters
|
|
1754
|
+
|
|
1755
|
+
<table><thead><tr><th>
|
|
1756
|
+
|
|
1757
|
+
Parameter
|
|
1758
|
+
|
|
1759
|
+
</th><th>
|
|
1760
|
+
|
|
1761
|
+
Type
|
|
1762
|
+
|
|
1763
|
+
</th><th>
|
|
1764
|
+
|
|
1765
|
+
Description
|
|
1766
|
+
|
|
1767
|
+
</th></tr></thead>
|
|
1768
|
+
<tbody><tr><td>
|
|
1769
|
+
|
|
1770
|
+
component
|
|
1771
|
+
|
|
1772
|
+
</td><td>
|
|
1773
|
+
|
|
1774
|
+
{ libraryUuid: string; uuid: string } \| [ILIB\_DeviceItem](../interfaces/ILIB_DeviceItem.md) \| [ILIB\_DeviceSearchItem](../interfaces/ILIB_DeviceSearchItem.md)
|
|
1775
|
+
|
|
1776
|
+
</td><td>
|
|
1777
|
+
|
|
1778
|
+
Associate library device
|
|
1779
|
+
|
|
1780
|
+
</td></tr>
|
|
1781
|
+
<tr><td>
|
|
1782
|
+
|
|
1783
|
+
subPartName
|
|
1784
|
+
|
|
1785
|
+
</td><td>
|
|
1786
|
+
|
|
1787
|
+
string
|
|
1788
|
+
|
|
1789
|
+
</td><td>
|
|
1790
|
+
|
|
1791
|
+
_(Optional)_ Sub-part name
|
|
1792
|
+
|
|
1793
|
+
</td></tr>
|
|
1794
|
+
</tbody></table>
|
|
1795
|
+
|
|
1796
|
+
## Returns
|
|
1797
|
+
|
|
1798
|
+
Promise<boolean>
|
|
1799
|
+
|
|
1800
|
+
Whether the device was found
|
|
1801
|
+
|
|
1802
|
+
## Remarks
|
|
1803
|
+
|
|
1804
|
+
This API simulates clicking the placement button on the front end. The specified device will be bound to the current mouse and placed on the canvas when the user clicks subsequently
|
|
1805
|
+
|
|
1806
|
+
The return timing of this API does not wait for the user's placement operation. Once the device is bound to the mouse, this API will immediately return `true`
|
|
1807
|
+
|
|
1808
|
+
### placesymbolwithmouse
|
|
1809
|
+
|
|
1810
|
+
# SCH\_PrimitiveComponent.placeSymbolWithMouse() method
|
|
1811
|
+
|
|
1812
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
1813
|
+
|
|
1814
|
+
Place with the mouse symbol
|
|
1815
|
+
|
|
1816
|
+
## Signature
|
|
1817
|
+
|
|
1818
|
+
```typescript
|
|
1819
|
+
function placeSymbolWithMouse(
|
|
1820
|
+
symbol: { libraryUuid: string; uuid: string } | ILIB_SymbolItem | ILIB_SymbolSearchItem,
|
|
1821
|
+
subPartName?: string,
|
|
1822
|
+
properties?: Record<string, boolean | number | string | undefined>,
|
|
1823
|
+
): Promise<boolean>;
|
|
1824
|
+
```
|
|
1825
|
+
|
|
1826
|
+
## Parameters
|
|
1827
|
+
|
|
1828
|
+
<table><thead><tr><th>
|
|
1829
|
+
|
|
1830
|
+
Parameter
|
|
1831
|
+
|
|
1832
|
+
</th><th>
|
|
1833
|
+
|
|
1834
|
+
Type
|
|
1835
|
+
|
|
1836
|
+
</th><th>
|
|
1837
|
+
|
|
1838
|
+
Description
|
|
1839
|
+
|
|
1840
|
+
</th></tr></thead>
|
|
1841
|
+
<tbody><tr><td>
|
|
1842
|
+
|
|
1843
|
+
symbol
|
|
1844
|
+
|
|
1845
|
+
</td><td>
|
|
1846
|
+
|
|
1847
|
+
{ libraryUuid: string; uuid: string } \| [ILIB\_SymbolItem](../interfaces/ILIB_SymbolItem.md) \| [ILIB\_SymbolSearchItem](../interfaces/ILIB_SymbolSearchItem.md)
|
|
1848
|
+
|
|
1849
|
+
</td><td>
|
|
1850
|
+
|
|
1851
|
+
Associate library symbol
|
|
1852
|
+
|
|
1853
|
+
</td></tr>
|
|
1854
|
+
<tr><td>
|
|
1855
|
+
|
|
1856
|
+
subPartName
|
|
1857
|
+
|
|
1858
|
+
</td><td>
|
|
1859
|
+
|
|
1860
|
+
string
|
|
1861
|
+
|
|
1862
|
+
</td><td>
|
|
1863
|
+
|
|
1864
|
+
_(Optional)_ Sub-part name
|
|
1865
|
+
|
|
1866
|
+
</td></tr>
|
|
1867
|
+
<tr><td>
|
|
1868
|
+
|
|
1869
|
+
properties
|
|
1870
|
+
|
|
1871
|
+
</td><td>
|
|
1872
|
+
|
|
1873
|
+
Record<string, boolean \| number \| string \| undefined>
|
|
1874
|
+
|
|
1875
|
+
</td><td>
|
|
1876
|
+
|
|
1877
|
+
_(Optional)_ Device property
|
|
1878
|
+
|
|
1879
|
+
</td></tr>
|
|
1880
|
+
</tbody></table>
|
|
1881
|
+
|
|
1882
|
+
## Returns
|
|
1883
|
+
|
|
1884
|
+
Promise<boolean>
|
|
1885
|
+
|
|
1886
|
+
Whether the symbol was found
|
|
1887
|
+
|
|
1888
|
+
## Remarks
|
|
1889
|
+
|
|
1890
|
+
This API simulates clicking the placement button on the front end. The specified symbol will be bound to the current mouse and placed on the canvas when the user clicks subsequently
|
|
1891
|
+
|
|
1892
|
+
The return timing of this API does not wait for the user's placement operation. Once the symbol is bound to the mouse, this API will immediately return `true` ADD since API v0.2.26
|
|
1893
|
+
|
|
1894
|
+
### setnetflagcomponentuuid_analogground
|
|
1895
|
+
|
|
1896
|
+
# SCH\_PrimitiveComponent.setNetFlagComponentUuid\_AnalogGround() method
|
|
1897
|
+
|
|
1898
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
1899
|
+
|
|
1900
|
+
Set the device UUID associated with the AnalogGround net flag in the extension API
|
|
1901
|
+
|
|
1902
|
+
## Signature
|
|
1903
|
+
|
|
1904
|
+
```typescript
|
|
1905
|
+
function setNetFlagComponentUuid_AnalogGround(
|
|
1906
|
+
component: { libraryUuid: string; uuid: string } | ILIB_DeviceItem | ILIB_DeviceSearchItem,
|
|
1907
|
+
): Promise<boolean>;
|
|
1908
|
+
```
|
|
1909
|
+
|
|
1910
|
+
## Parameters
|
|
1911
|
+
|
|
1912
|
+
<table><thead><tr><th>
|
|
1913
|
+
|
|
1914
|
+
Parameter
|
|
1915
|
+
|
|
1916
|
+
</th><th>
|
|
1917
|
+
|
|
1918
|
+
Type
|
|
1919
|
+
|
|
1920
|
+
</th><th>
|
|
1921
|
+
|
|
1922
|
+
Description
|
|
1923
|
+
|
|
1924
|
+
</th></tr></thead>
|
|
1925
|
+
<tbody><tr><td>
|
|
1926
|
+
|
|
1927
|
+
component
|
|
1928
|
+
|
|
1929
|
+
</td><td>
|
|
1930
|
+
|
|
1931
|
+
{ libraryUuid: string; uuid: string } \| [ILIB\_DeviceItem](../interfaces/ILIB_DeviceItem.md) \| [ILIB\_DeviceSearchItem](../interfaces/ILIB_DeviceSearchItem.md)
|
|
1932
|
+
|
|
1933
|
+
</td><td>
|
|
1934
|
+
|
|
1935
|
+
Associate library device
|
|
1936
|
+
|
|
1937
|
+
</td></tr>
|
|
1938
|
+
</tbody></table>
|
|
1939
|
+
|
|
1940
|
+
## Returns
|
|
1941
|
+
|
|
1942
|
+
Promise<boolean>
|
|
1943
|
+
|
|
1944
|
+
Whether the operation is successful
|
|
1945
|
+
|
|
1946
|
+
### setnetflagcomponentuuid_ground
|
|
1947
|
+
|
|
1948
|
+
# SCH\_PrimitiveComponent.setNetFlagComponentUuid\_Ground() method
|
|
1949
|
+
|
|
1950
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
1951
|
+
|
|
1952
|
+
Set the device UUID associated with the Ground net flag in the extension API
|
|
1953
|
+
|
|
1954
|
+
## Signature
|
|
1955
|
+
|
|
1956
|
+
```typescript
|
|
1957
|
+
function setNetFlagComponentUuid_Ground(
|
|
1958
|
+
component: { libraryUuid: string; uuid: string } | ILIB_DeviceItem | ILIB_DeviceSearchItem,
|
|
1959
|
+
): Promise<boolean>;
|
|
1960
|
+
```
|
|
1961
|
+
|
|
1962
|
+
## Parameters
|
|
1963
|
+
|
|
1964
|
+
<table><thead><tr><th>
|
|
1965
|
+
|
|
1966
|
+
Parameter
|
|
1967
|
+
|
|
1968
|
+
</th><th>
|
|
1969
|
+
|
|
1970
|
+
Type
|
|
1971
|
+
|
|
1972
|
+
</th><th>
|
|
1973
|
+
|
|
1974
|
+
Description
|
|
1975
|
+
|
|
1976
|
+
</th></tr></thead>
|
|
1977
|
+
<tbody><tr><td>
|
|
1978
|
+
|
|
1979
|
+
component
|
|
1980
|
+
|
|
1981
|
+
</td><td>
|
|
1982
|
+
|
|
1983
|
+
{ libraryUuid: string; uuid: string } \| [ILIB\_DeviceItem](../interfaces/ILIB_DeviceItem.md) \| [ILIB\_DeviceSearchItem](../interfaces/ILIB_DeviceSearchItem.md)
|
|
1984
|
+
|
|
1985
|
+
</td><td>
|
|
1986
|
+
|
|
1987
|
+
Associate library device
|
|
1988
|
+
|
|
1989
|
+
</td></tr>
|
|
1990
|
+
</tbody></table>
|
|
1991
|
+
|
|
1992
|
+
## Returns
|
|
1993
|
+
|
|
1994
|
+
Promise<boolean>
|
|
1995
|
+
|
|
1996
|
+
Whether the operation is successful
|
|
1997
|
+
|
|
1998
|
+
### setnetflagcomponentuuid_power
|
|
1999
|
+
|
|
2000
|
+
# SCH\_PrimitiveComponent.setNetFlagComponentUuid\_Power() method
|
|
2001
|
+
|
|
2002
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
2003
|
+
|
|
2004
|
+
Set the device UUID associated with the Power net flag in the extension API
|
|
2005
|
+
|
|
2006
|
+
## Signature
|
|
2007
|
+
|
|
2008
|
+
```typescript
|
|
2009
|
+
function setNetFlagComponentUuid_Power(
|
|
2010
|
+
component: { libraryUuid: string; uuid: string } | ILIB_DeviceItem | ILIB_DeviceSearchItem,
|
|
2011
|
+
): Promise<boolean>;
|
|
2012
|
+
```
|
|
2013
|
+
|
|
2014
|
+
## Parameters
|
|
2015
|
+
|
|
2016
|
+
<table><thead><tr><th>
|
|
2017
|
+
|
|
2018
|
+
Parameter
|
|
2019
|
+
|
|
2020
|
+
</th><th>
|
|
2021
|
+
|
|
2022
|
+
Type
|
|
2023
|
+
|
|
2024
|
+
</th><th>
|
|
2025
|
+
|
|
2026
|
+
Description
|
|
2027
|
+
|
|
2028
|
+
</th></tr></thead>
|
|
2029
|
+
<tbody><tr><td>
|
|
2030
|
+
|
|
2031
|
+
component
|
|
2032
|
+
|
|
2033
|
+
</td><td>
|
|
2034
|
+
|
|
2035
|
+
{ libraryUuid: string; uuid: string } \| [ILIB\_DeviceItem](../interfaces/ILIB_DeviceItem.md) \| [ILIB\_DeviceSearchItem](../interfaces/ILIB_DeviceSearchItem.md)
|
|
2036
|
+
|
|
2037
|
+
</td><td>
|
|
2038
|
+
|
|
2039
|
+
Associate library device
|
|
2040
|
+
|
|
2041
|
+
</td></tr>
|
|
2042
|
+
</tbody></table>
|
|
2043
|
+
|
|
2044
|
+
## Returns
|
|
2045
|
+
|
|
2046
|
+
Promise<boolean>
|
|
2047
|
+
|
|
2048
|
+
Whether the operation is successful
|
|
2049
|
+
|
|
2050
|
+
### setnetflagcomponentuuid_protectground
|
|
2051
|
+
|
|
2052
|
+
# SCH\_PrimitiveComponent.setNetFlagComponentUuid\_ProtectGround() method
|
|
2053
|
+
|
|
2054
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
2055
|
+
|
|
2056
|
+
Set the device UUID associated with the ProtectGround net flag in the extension API
|
|
2057
|
+
|
|
2058
|
+
## Signature
|
|
2059
|
+
|
|
2060
|
+
```typescript
|
|
2061
|
+
function setNetFlagComponentUuid_ProtectGround(
|
|
2062
|
+
component: { libraryUuid: string; uuid: string } | ILIB_DeviceItem | ILIB_DeviceSearchItem,
|
|
2063
|
+
): Promise<boolean>;
|
|
2064
|
+
```
|
|
2065
|
+
|
|
2066
|
+
## Parameters
|
|
2067
|
+
|
|
2068
|
+
<table><thead><tr><th>
|
|
2069
|
+
|
|
2070
|
+
Parameter
|
|
2071
|
+
|
|
2072
|
+
</th><th>
|
|
2073
|
+
|
|
2074
|
+
Type
|
|
2075
|
+
|
|
2076
|
+
</th><th>
|
|
2077
|
+
|
|
2078
|
+
Description
|
|
2079
|
+
|
|
2080
|
+
</th></tr></thead>
|
|
2081
|
+
<tbody><tr><td>
|
|
2082
|
+
|
|
2083
|
+
component
|
|
2084
|
+
|
|
2085
|
+
</td><td>
|
|
2086
|
+
|
|
2087
|
+
{ libraryUuid: string; uuid: string } \| [ILIB\_DeviceItem](../interfaces/ILIB_DeviceItem.md) \| [ILIB\_DeviceSearchItem](../interfaces/ILIB_DeviceSearchItem.md)
|
|
2088
|
+
|
|
2089
|
+
</td><td>
|
|
2090
|
+
|
|
2091
|
+
Associate library device
|
|
2092
|
+
|
|
2093
|
+
</td></tr>
|
|
2094
|
+
</tbody></table>
|
|
2095
|
+
|
|
2096
|
+
## Returns
|
|
2097
|
+
|
|
2098
|
+
Promise<boolean>
|
|
2099
|
+
|
|
2100
|
+
Whether the operation is successful
|
|
2101
|
+
|
|
2102
|
+
### setnetportcomponentuuid_bi
|
|
2103
|
+
|
|
2104
|
+
# SCH\_PrimitiveComponent.setNetPortComponentUuid\_BI() method
|
|
2105
|
+
|
|
2106
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
2107
|
+
|
|
2108
|
+
Set the device UUID associated with the BI net port in the extension API
|
|
2109
|
+
|
|
2110
|
+
## Signature
|
|
2111
|
+
|
|
2112
|
+
```typescript
|
|
2113
|
+
function setNetPortComponentUuid_BI(
|
|
2114
|
+
component: { libraryUuid: string; uuid: string } | ILIB_DeviceItem | ILIB_DeviceSearchItem,
|
|
2115
|
+
): Promise<boolean>;
|
|
2116
|
+
```
|
|
2117
|
+
|
|
2118
|
+
## Parameters
|
|
2119
|
+
|
|
2120
|
+
<table><thead><tr><th>
|
|
2121
|
+
|
|
2122
|
+
Parameter
|
|
2123
|
+
|
|
2124
|
+
</th><th>
|
|
2125
|
+
|
|
2126
|
+
Type
|
|
2127
|
+
|
|
2128
|
+
</th><th>
|
|
2129
|
+
|
|
2130
|
+
Description
|
|
2131
|
+
|
|
2132
|
+
</th></tr></thead>
|
|
2133
|
+
<tbody><tr><td>
|
|
2134
|
+
|
|
2135
|
+
component
|
|
2136
|
+
|
|
2137
|
+
</td><td>
|
|
2138
|
+
|
|
2139
|
+
{ libraryUuid: string; uuid: string } \| [ILIB\_DeviceItem](../interfaces/ILIB_DeviceItem.md) \| [ILIB\_DeviceSearchItem](../interfaces/ILIB_DeviceSearchItem.md)
|
|
2140
|
+
|
|
2141
|
+
</td><td>
|
|
2142
|
+
|
|
2143
|
+
Associate library device
|
|
2144
|
+
|
|
2145
|
+
</td></tr>
|
|
2146
|
+
</tbody></table>
|
|
2147
|
+
|
|
2148
|
+
## Returns
|
|
2149
|
+
|
|
2150
|
+
Promise<boolean>
|
|
2151
|
+
|
|
2152
|
+
Whether the operation is successful
|
|
2153
|
+
|
|
2154
|
+
### setnetportcomponentuuid_in
|
|
2155
|
+
|
|
2156
|
+
# SCH\_PrimitiveComponent.setNetPortComponentUuid\_IN() method
|
|
2157
|
+
|
|
2158
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
2159
|
+
|
|
2160
|
+
Set the device UUID associated with the IN net port in the extension API
|
|
2161
|
+
|
|
2162
|
+
## Signature
|
|
2163
|
+
|
|
2164
|
+
```typescript
|
|
2165
|
+
function setNetPortComponentUuid_IN(
|
|
2166
|
+
component: { libraryUuid: string; uuid: string } | ILIB_DeviceItem | ILIB_DeviceSearchItem,
|
|
2167
|
+
): Promise<boolean>;
|
|
2168
|
+
```
|
|
2169
|
+
|
|
2170
|
+
## Parameters
|
|
2171
|
+
|
|
2172
|
+
<table><thead><tr><th>
|
|
2173
|
+
|
|
2174
|
+
Parameter
|
|
2175
|
+
|
|
2176
|
+
</th><th>
|
|
2177
|
+
|
|
2178
|
+
Type
|
|
2179
|
+
|
|
2180
|
+
</th><th>
|
|
2181
|
+
|
|
2182
|
+
Description
|
|
2183
|
+
|
|
2184
|
+
</th></tr></thead>
|
|
2185
|
+
<tbody><tr><td>
|
|
2186
|
+
|
|
2187
|
+
component
|
|
2188
|
+
|
|
2189
|
+
</td><td>
|
|
2190
|
+
|
|
2191
|
+
{ libraryUuid: string; uuid: string } \| [ILIB\_DeviceItem](../interfaces/ILIB_DeviceItem.md) \| [ILIB\_DeviceSearchItem](../interfaces/ILIB_DeviceSearchItem.md)
|
|
2192
|
+
|
|
2193
|
+
</td><td>
|
|
2194
|
+
|
|
2195
|
+
Associate library device
|
|
2196
|
+
|
|
2197
|
+
</td></tr>
|
|
2198
|
+
</tbody></table>
|
|
2199
|
+
|
|
2200
|
+
## Returns
|
|
2201
|
+
|
|
2202
|
+
Promise<boolean>
|
|
2203
|
+
|
|
2204
|
+
Whether the operation is successful
|
|
2205
|
+
|
|
2206
|
+
### setnetportcomponentuuid_out
|
|
2207
|
+
|
|
2208
|
+
# SCH\_PrimitiveComponent.setNetPortComponentUuid\_OUT() method
|
|
2209
|
+
|
|
2210
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
2211
|
+
|
|
2212
|
+
Set the device UUID associated with the OUT net port in the extension API
|
|
2213
|
+
|
|
2214
|
+
## Signature
|
|
2215
|
+
|
|
2216
|
+
```typescript
|
|
2217
|
+
function setNetPortComponentUuid_OUT(
|
|
2218
|
+
component: { libraryUuid: string; uuid: string } | ILIB_DeviceItem | ILIB_DeviceSearchItem,
|
|
2219
|
+
): Promise<boolean>;
|
|
2220
|
+
```
|
|
2221
|
+
|
|
2222
|
+
## Parameters
|
|
2223
|
+
|
|
2224
|
+
<table><thead><tr><th>
|
|
2225
|
+
|
|
2226
|
+
Parameter
|
|
2227
|
+
|
|
2228
|
+
</th><th>
|
|
2229
|
+
|
|
2230
|
+
Type
|
|
2231
|
+
|
|
2232
|
+
</th><th>
|
|
2233
|
+
|
|
2234
|
+
Description
|
|
2235
|
+
|
|
2236
|
+
</th></tr></thead>
|
|
2237
|
+
<tbody><tr><td>
|
|
2238
|
+
|
|
2239
|
+
component
|
|
2240
|
+
|
|
2241
|
+
</td><td>
|
|
2242
|
+
|
|
2243
|
+
{ libraryUuid: string; uuid: string } \| [ILIB\_DeviceItem](../interfaces/ILIB_DeviceItem.md) \| [ILIB\_DeviceSearchItem](../interfaces/ILIB_DeviceSearchItem.md)
|
|
2244
|
+
|
|
2245
|
+
</td><td>
|
|
2246
|
+
|
|
2247
|
+
Associate library device
|
|
2248
|
+
|
|
2249
|
+
</td></tr>
|
|
2250
|
+
</tbody></table>
|
|
2251
|
+
|
|
2252
|
+
## Returns
|
|
2253
|
+
|
|
2254
|
+
Promise<boolean>
|
|
2255
|
+
|
|
2256
|
+
Whether the operation is successful
|