Home > ISCH_PrimitiveBus > getState_BusName
ISCH_PrimitiveBus.getState_BusName() method
Get the property state: bus name
Signature
typescript
function getState_BusName(): string;1
Returns
string
Bus name
Example
javascript
// 1. 创建一条名为 DATA[0..7] 的测试总线(总线名称必须是合法切片格式,SCH 坐标单位 10mil)
const bus = await eda.sch_PrimitiveBus.create('DATA[0..7]', [1000, 1000, 1400, 1000]);
// 2. 读取总线名称
const busName = bus.getState_BusName();
// 3. 清理测试图元(查询类案例不留测试对象)
await eda.sch_PrimitiveBus.delete([bus.getState_PrimitiveId()]);
console.log('busName:', busName);1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10