well all you did was to generate 2 parameters
"method=2|method=1"

simon

-----Original Message-----
From: Thomas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 22 May 2001 19:38
To: 'Protel Developers Forum'
Subject: Re: [PDEV] Process Parameters


Actually the script will reset the designators, but will not then
re-annotate them. Strange.

-----Original Message-----
From: Thomas
Sent: Tuesday, 22 May 2001 5:33 PM
To: 'Protel Developers Forum'
Subject: Re: [PDEV] Process Parameters


Hmm thought I'd sorted it but this doesn't work either:

'-----------------------------------------------------
' File Name     redesig.bas
' Title:        Redesignate Parts (Basic Version)
' Copyright:    (c) 2001 by Powercom Consultants Pty Ltd
' Author:       Tom Luttrell
'-----------------------------------------------------
' This macro will reset all designators, then redesignate
' all ? parts
'......................................................
Sub Main
        AddIntegerParameter "Method", 2
        RunProcess "Sch:Annotate"
      AddIntegerParameter "Method", 1
        RunProcess "Sch:Annotate"
End Sub
'......................................................

'  Powercom Consultants Pty Ltd 2001. All rights reserved.


The script runs but nothing happens.


-----Original Message-----
From: Thomas
Sent: Tuesday, 22 May 2001 5:16 PM
To: '[EMAIL PROTECTED]'
Subject: [PDEV] Process Parameters


Could someone please inform me how to pass parameters to processes in a
client basic script.
The following does not work:

'-----------------------------------------------------
' File Name     redesig.bas
' Title:        Redesignate Parts (Basic Version)
' Copyright:    (c) 2001 by Powercom Consultants Pty Ltd
' Author:       Tom Luttrell
'-----------------------------------------------------
' This macro will reset all designators, then redesignate
' all ? parts
'......................................................
Sub Main
        RunProcess "Sch:Annotate | Method = 2"
        RunProcess "Sch:Annotate | Method = 1"
End Sub
'......................................................

'  Powercom Consultants Pty Ltd 2001. All rights reserved.



This was supposed to reset all designators before re-annotating them.

If re-annotate all parts is used on the Tools menu under Annotate, the
designators do not reset first, and R1 to R6 and R? would become R7 to R13
instead of R1 to R7.

Do I hear you ask " Why not just use redesignate ?Parts"?

Well if the new resistor R? was placed between R1 and R2 it looks a bit
messy as R7, ideally it would become R2 and the others to the right and down
would all increment one. This is the same as doing reset all designators
(method=2), then redesignate ?Parts, (method=1).

Instead of going through this two step process, I thought I'd write a script
that would be assigned to a toolbutton and/or hotkey.

Thanks,

Tom.

---------------------------------------
Powercom Consultants Pty Ltd
Electronics & Communications Engineers
PH +61 3 62297966  Fax +61 3 62299245
---------------------------------------



_________________________________________________________

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* To post a message: mailto:[EMAIL PROTECTED]
*
* To leave this list visit:
* http://www.techservinc.com/protelusers/subscrib.html
*                      - or email -
* mailto:[EMAIL PROTECTED]?body=leave%20proteldevforum
*
* Contact the list manager:
* mailto:[EMAIL PROTECTED]
*
* Browse or Search previous postings:
* http://www.mail-archive.com/[email protected]
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Reply via email to