Re: [PDEV] newbie question

2001-12-12 Thread Keith Woodcock

Yeah,

This is an ideal way of getting someone's back up, talk about patronising!

Keith W

  

 

  _  


The information in this email and in any attachments is confidential and
intended solely for the attention and use of the named addressee(s). It
must not be disclosed to any person without our authority. If you are
not the intended recipient, or a person responsible for delivering it to
the intended recipient, you are not authorised to and must not disclose,
copy, distribute, or retain this message or any part of it. In these
circumstances, please delete this message from your Computer and/or
Network and contact the sender at Sinclair International Ltd. on +44 (0)
1603 726400.

  _  

Keith Woodcock
Junior Electronics/Software Engineer
Sinclair International Ltd.
Jarrold Way, Bowthorpe, Norwich. Norfolk. NR5 9JD. United Kingdom.
Tel : +44 (0)1603 726400 ~ Fax : +44 (0)1603 726401 
  _  



 -Original Message-
 From: JaMi Smith [mailto:[EMAIL PROTECTED]]
 Sent: 12 December 2001 00:11
 To: Protel Developers Forum
 Cc: JaMi Smith
 Subject: Re: [PDEV] newbie question
 
 
 While it is always nice to find someone else who is willing 
 to solve all
 of your problems for you, but you need to look and do some very basic
 work on your own, before you say something isn't working or 
 there is no
 documentation, such as:
 
 1.) Take your Browser and go to www.protel.com, then click on 
 SUPPORT,
 and then on Knowledge Base. It is in fact operational at this time.
 
 2.) Take your mouse and click on HELP in Protel 99 SE, and 
 then select
 Contents and then select Creating and using Macros in Protel. Gee,
 there actually is some documentation.
 
 3.) I'll stop there . . .
 
  
 
 -Original Message-
 From: Aron Hoekstra [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, December 11, 2001 7:00 AM
 To: Protel Developers Forum
 Subject: [PDEV] newbie question
 
 i'm new to this forum, so i'm not sure how many people are in 
 it or how
 much
 help this will be.  but since protel's online knowledge base isn't
 working,
 this seems like a good alternative.
 
 i'm new to protel macro development and i can't find any real good
 documentation on Client Basic or any of it's proprietary functions and
 properties.  i need to do something that seems like it would be pretty
 simple.  we have a database of all our electrical parts, and what i'd
 like
 to do is this:
 
 I will put a button on the schematic menu that launches a macro.  the
 macro
 will then send a custom program that i write (probably in VB) the name
 of a
 selected object in the schematic editor. my program will look up our
 part
 number in our database and send the data back to the macro. Then, the
 macro
 will then update the selected object with our part number.
 
 pretty simple and straight-forward right?  so, where do i get started?
 :)
 
 Thanks!
 
 Aron Hoekstra
 Software Engineer
 The Board Room, Inc.
 
 

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* To post a message: mailto:[EMAIL PROTECTED]
*
* To leave this list visit:
* http://www.techservinc.com/protelusers/leave.html
*
* Contact the list manager:
* mailto:[EMAIL PROTECTED]
*
* Forum Guidelines Rules:
* http://www.techservinc.com/protelusers/forumrules.html
*
* Browse or Search previous postings:
* http://www.mail-archive.com/proteldevforum@techservinc.com
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *



Re: [PDEV] newbie question

2001-12-11 Thread Duane Foster

Here is a Client Basic script which invokes the Protel ReportBOM process to
generate a CSV file from the schematic.  Then a call is made to an
executable in order to process the CSV in order to generate a BOM report.
It does not put anything back into the schematic, haven't figured that out
yet.   Anyway this might give you something to chew on. 

Best regards,
Duane Foster 



' RunBom.bas - ClientBasic macro for Protel 99 SE
' Form BOM report with part numbers -  text output style
' 
' Schematic must be in 'windows file system' DDB format
' 'csv_gbn.exe' v3.2 and 'pcbparts.asc' must be in c:\program files\design
explorer 99 SE\ 
Sub Main

Dim b  as Integer
Dim l  as Integer
Dim Fname  as String *255
Dim AFile  as String 
Dim BFile  as String


  
   ResetParameters
   
   AddStringParameter DocumentType,SCH 
   AddStringParameter Prompt',Select Schematic for BOM report 
   AddStringParameter Dialog,ChooseDocument 
   
   RunProcess Client:RunCommonDialog 
   
   GetIntegerParameter Result, b
If b  Then
  GetStringParameter FileName, Fname

'   Msgbox Fname 'diagnostic 

  ResetParameters
  AddStringParameter DocumentName, Fname 
  RunProcess Sch:ReportBOM 
   
  ResetParameters
  RunProcess Client:CloseDocument 

  SetCursorBusy

'  Parse Filename string to get path
 b = InStr(1, Fname, $RP) 'locate preceding field
 b = b + 4'set first char of path 
 l = InStr(1, Fname, $RN) 'locate end of path 
 l = l - b'length of path 
 AFile = Mid(Fname, b, l) 'fetch path name 
 BFile = Mid(Fname, b, l) 'fetch path name for later use 
  
'  Parse Filename string to get schematic name 
 b = InStr(1, Fname, $ON) 'locate preceding field
 b = b + 4'set first char of schematic name 
 l = InStr(1, Fname, $ID) 'locate end of schematic name
 l = l - b'length of sch name 
 AFile = AFile + \ + Mid(Fname, b, l) 'fetch schematic name
 l = Len(AFile)
 AFile = Mid(AFile, 1, (l-3))
 AFile = AFile + sch 'form lowercase extension for csv_gbn.exe

 
'   Msgbox AFile'diagnostic  

 Open C:\Program Files\Design Explorer 99 SE\bom_sch.tmp For Output As
#1 
 Write #1, AFile 
 Close #1 


 ResetParameters
 RunApplication C:\Program Files\Design Explorer 99 SE\csv_gbn.exe 
 
   
 ResetCursor
 
 '  Parse Filename string to get DDB name 
 b = InStr(1, Fname, $RN) 'locate preceding field
 b = b + 4'set first char of DDB name 
 l = InStr(1, Fname, $OP) 'locate end of DDB name
 l = l - b'length of DDB name 
 BFile = BFile + \ + Mid(Fname, b, l) 'fetch DDB name  add to path 
  
'Form Bom Filename   
 l = Len(AFile)
 AFile = Mid(AFile, 1, (l-4))
 AFile = AFile + _bom.txt 
' Msgbox BFile'diagnostic  

 ResetParameters 
 AddStringParameter FileName, BFile  
 
 RunProcess Client:OpenDocument
  
 ResetParameters
 AddStringParameter CreateNewDesign, False  
 AddStringParameter FileName, AFile  
 
 RunProcess Client:OpenDocument  ' this call has been a problem!!!

Else 
  Msgbox you eeediot!!   
End If

End Sub   
'---
---}



 -Original Message-
 From: Aron Hoekstra [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 11, 2001 7:00 AM
 To: Protel Developers Forum
 Subject: [PDEV] newbie question
 
 
 i'm new to this forum, so i'm not sure how many people are in 
 it or how much
 help this will be.  but since protel's online knowledge base 
 isn't working,
 this seems like a good alternative.
 
 i'm new to protel macro development and i can't find any real good
 documentation on Client Basic or any of it's proprietary functions and
 properties.  i need to do something that seems like it would be pretty
 simple.  we have a database of all our electrical parts, and 
 what i'd like
 to do is this:
 
 I will put a button on the schematic menu that launches a 
 macro.  the macro
 will then send a custom program that i write (probably in VB) 
 the name of a
 selected object in the schematic editor. my program will look 
 up our part
 number in our database and send the data back to the macro. 
 Then, the macro
 will then update the selected object with our part number.
 
 pretty simple and straight-forward right?  so, where do i get 
 started?  :)
 
 Thanks!
 
 Aron Hoekstra
 Software Engineer
 The Board Room, Inc.
 
 

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* To post a message: mailto:[EMAIL PROTECTED]
*
* To leave this list visit:
* http://www.techservinc.com/protelusers/leave.html
*
* Contact the list manager:
* mailto:[EMAIL PROTECTED]
*
* Forum Guidelines Rules:
* http://www.techservinc.com/protelusers/forumrules.html
*
* Browse or Search previous postings:
* 

Re: [PDEV] newbie question

2001-12-11 Thread JaMi Smith

While it is always nice to find someone else who is willing to solve all
of your problems for you, but you need to look and do some very basic
work on your own, before you say something isn't working or there is no
documentation, such as:

1.) Take your Browser and go to www.protel.com, then click on SUPPORT,
and then on Knowledge Base. It is in fact operational at this time.

2.) Take your mouse and click on HELP in Protel 99 SE, and then select
Contents and then select Creating and using Macros in Protel. Gee,
there actually is some documentation.

3.) I'll stop there . . .

 

-Original Message-
From: Aron Hoekstra [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 11, 2001 7:00 AM
To: Protel Developers Forum
Subject: [PDEV] newbie question

i'm new to this forum, so i'm not sure how many people are in it or how
much
help this will be.  but since protel's online knowledge base isn't
working,
this seems like a good alternative.

i'm new to protel macro development and i can't find any real good
documentation on Client Basic or any of it's proprietary functions and
properties.  i need to do something that seems like it would be pretty
simple.  we have a database of all our electrical parts, and what i'd
like
to do is this:

I will put a button on the schematic menu that launches a macro.  the
macro
will then send a custom program that i write (probably in VB) the name
of a
selected object in the schematic editor. my program will look up our
part
number in our database and send the data back to the macro. Then, the
macro
will then update the selected object with our part number.

pretty simple and straight-forward right?  so, where do i get started?
:)

Thanks!

Aron Hoekstra
Software Engineer
The Board Room, Inc.


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* To post a message: mailto:[EMAIL PROTECTED]
*
* To leave this list visit:
* http://www.techservinc.com/protelusers/leave.html
*
* Contact the list manager:
* mailto:[EMAIL PROTECTED]
*
* Forum Guidelines Rules:
* http://www.techservinc.com/protelusers/forumrules.html
*
* Browse or Search previous postings:
* http://www.mail-archive.com/proteldevforum@techservinc.com
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *



Re: [PDEV] newbie question

2001-12-11 Thread Mike Osmon

Can anyone let me know if there is either a shareware database
or a for sale listing of all the different macros which are being
written for Protel99? It would be nice to not have to reinvent the
wheel. If anyone has any particular macros written for the
purpose of streamlining the PWB design processs (not schematics
but board layout), I would be interested.
Thanks
Mike.

JaMi Smith wrote:

 While it is always nice to find someone else who is willing to solve all
 of your problems for you, but you need to look and do some very basic
 work on your own, before you say something isn't working or there is no
 documentation, such as:

 1.) Take your Browser and go to www.protel.com, then click on SUPPORT,
 and then on Knowledge Base. It is in fact operational at this time.

 2.) Take your mouse and click on HELP in Protel 99 SE, and then select
 Contents and then select Creating and using Macros in Protel. Gee,
 there actually is some documentation.

 3.) I'll stop there . . .



 -Original Message-
 From: Aron Hoekstra [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 11, 2001 7:00 AM
 To: Protel Developers Forum
 Subject: [PDEV] newbie question

 i'm new to this forum, so i'm not sure how many people are in it or how
 much
 help this will be.  but since protel's online knowledge base isn't
 working,
 this seems like a good alternative.

 i'm new to protel macro development and i can't find any real good
 documentation on Client Basic or any of it's proprietary functions and
 properties.  i need to do something that seems like it would be pretty
 simple.  we have a database of all our electrical parts, and what i'd
 like
 to do is this:

 I will put a button on the schematic menu that launches a macro.  the
 macro
 will then send a custom program that i write (probably in VB) the name
 of a
 selected object in the schematic editor. my program will look up our
 part
 number in our database and send the data back to the macro. Then, the
 macro
 will then update the selected object with our part number.

 pretty simple and straight-forward right?  so, where do i get started?
 :)

 Thanks!

 Aron Hoekstra
 Software Engineer
 The Board Room, Inc.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* To post a message: mailto:[EMAIL PROTECTED]
*
* To leave this list visit:
* http://www.techservinc.com/protelusers/leave.html
*
* Contact the list manager:
* mailto:[EMAIL PROTECTED]
*
* Forum Guidelines Rules:
* http://www.techservinc.com/protelusers/forumrules.html
*
* Browse or Search previous postings:
* http://www.mail-archive.com/proteldevforum@techservinc.com
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *