can you know how to add net with script now? I try to add net with script,but it is not successful. if you already know,please help me !
thank you very much !
Please find an example of script to add different types of objects.
I hope it helps!
' 1. Insert the border
' 2. Add a couple of components, using AddPartInstance method
Dim comp1 : Set comp1 = ActiveView.Block.AddPartInstance("Logic", "74AC08-SMD", "ac08", 300, 300)
Dim comp2 : Set comp2 = ActiveView.Block.AddPartInstance("Discrete", "FZ", "res", 500, 500)
' 3. Add power tap
Dim pwr : Set pwr = ActiveView.Block.AddSymbolInstance("Globals", "vcc", 500, 600)
pwr.SymbolBlock.FindAttribute("Global Signal Name").Visible = VDVALUEVISIBLE
' 4. Add nets
Dim net1 : Set net1 = ActiveView.Block.AddNet(380, 300, 500, 500, Nothing, Nothing, VD_WIRE)
Dim net2 : Set net2 = ActiveView.Block.AddNet(500, 580, 500, 600, Nothing, Nothing, VD_WIRE)
' 5. Add text, with a box around it
Dim txt1 : Set txt1 = ActiveView.Block.AddText("This circuit was built with a script", 200, 200)
txt1.Size = 20
Dim box1 : Set box1 = ActiveView.Block.AddBox(200, 200, 920, 220)
box1.FillStyle = VDFILL_DIAGUP2
hi,I'm so sorry to reply you now. I try to use your way, but it was not successful. In the PADS Logic,it's not this function with "activeview.block." .
So,can you have a detailed example? I need it. Thank you very much!
Thanks for providing that bit of information. What software was that script intended for? It doesn't work in Pads Logic or at least my version of it which is 9.2.