CST VBA linking blocks
时间:03-30
整理:3721RD
点击:
Hi to all
As part of a circuit set-up i'm trying to link a capacitor and a ground block by using these commands:
With Link
.Reset
.SetSourcePortFromBlockPort("CAP4","1",False)
.SetTargetPortFromBlockPort("GND9","1",False)
.Create
End With
Everytime CST says it's unable to access the Ground port.
Both blocks are yet unlinked to any other element and i tried every combination of True/False and Source/Target.
Please let me know what i'm doing wrong.
Thanks!
As part of a circuit set-up i'm trying to link a capacitor and a ground block by using these commands:
With Link
.Reset
.SetSourcePortFromBlockPort("CAP4","1",False)
.SetTargetPortFromBlockPort("GND9","1",False)
.Create
End With
Everytime CST says it's unable to access the Ground port.
Both blocks are yet unlinked to any other element and i tried every combination of True/False and Source/Target.
Please let me know what i'm doing wrong.
Thanks!