[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

RE: gEDA-user: gEDA user with problems



Hi Adrian,
Please do the following test:
 - Create an empty directory.
 - Open a shell and go inside that directory.
 - Place the attached gschemrc into that directory.
 - Run gschem.
 - See the gschem's output in the shell. You should see something like
this:
---- begin gschem's output
Loading from gedadata directory: /usr/share/gEDA/scheme/auto-uref.scm
---- end gschem's output

 - Notice which directory is used: gedadata or gedadatarc.

 - Place two 7400 symbols in the schematic.
 - See the gschem's output in the shell. You should see something like
this:

---- begin gschem's output
Executing auto-uref hook for components: (#<attribute footprint=DIP14>
#<attribute refdes=U?> #<attribute device=7400>)
Executed auto-uref hook for components: (#<attribute footprint=DIP14>
#<attribute refdes=U1> #<attribute device=7400>)
Executing auto-uref hook for components: (#<attribute footprint=DIP14>
#<attribute refdes=U?> #<attribute device=7400>)
Executed auto-uref hook for components: (#<attribute footprint=DIP14>
#<attribute refdes=U2> #<attribute device=7400>)
----- end gschem's output

 - Now select those two components. 
 - Copy them to another location.
 - See the gschem's output in the shell. You should see something like
this:

---- begin gschem's output
Executing auto-uref hook for components: (#<attribute footprint=DIP14>
#<attribute refdes=U3> #<attribute device=7400>)
Executed auto-uref hook for components: (#<attribute footprint=DIP14>
#<attribute refdes=U4> #<attribute device=7400>)
Executing auto-uref hook for components: (#<attribute footprint=DIP14>
#<attribute refdes=U2> #<attribute device=7400>)
Executed auto-uref hook for components: (#<attribute footprint=DIP14>
#<attribute refdes=U5> #<attribute device=7400>)
----- end gschem's output

If this works for you, then:
 - create another empty directory
 - If the above test used the gedadatarc directory, write this to a file
called gschemrc in that directory:

----- begin gschemrc contents
(load (string-append gedadatarc "/scheme/auto-uref.scm"))
(add-hook! add-component-hook auto-uref)
(add-hook! copy-component-hook auto-uref)
----- end gschemrc contents

 - If the above test used the gedadata directory, write this to a file
called gschemrc in that directory:

----- begin gschemrc contents
(load (string-append gedadata "/scheme/auto-uref.scm"))
(add-hook! add-component-hook auto-uref)
(add-hook! copy-component-hook auto-uref)
----- end gschemrc contents

Now repeat the test: place components and copy them, you should get the
auto numbering feature working.

Hope this helps,

Carlos


El jue, 09-11-2006 a las 11:15 -0800, Adrian Nania escribiÃ:
> Yes, I am using the default Ubuntu package. 
> On my computer the auto numbering is dead. Let me know if and how I can give more details.
> 
> Adrian 
> -----Original Message-----
> From: geda-user-bounces@xxxxxxxxxxxxxx [mailto:geda-user-bounces@xxxxxxxxxxxxxx] On Behalf Of Carlos Nieves Ãnega
> Sent: Thursday, November 09, 2006 9:57 AM
> To: gEDA user mailing list
> Subject: Re: gEDA-user: gEDA user with problems
> 
> Hi Ales,
> 
> El miÃ, 08-11-2006 a las 22:46 -0500, Ales Hvezda escribiÃ:
> > [snip]
> > 	Okay, if my memory serves me correctly, CVS HEAD works fine for 
> > renumbering components when copying, but the glist_dev branch does not.
> > I need to verify this again (I got distracted the last time I was 
> > going down this path).
> 
> True. I thought Adrian was using the Ubuntu Edgy default package....
> 
> I commited the fix to CVS right now. Thanks,
> 
> Carlos
> 
> 
> 
> _______________________________________________
> geda-user mailing list
> geda-user@xxxxxxxxxxxxxx
> http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
> 
> 
> _______________________________________________
> geda-user mailing list
> geda-user@xxxxxxxxxxxxxx
> http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
(if (access? (string-append gedadata "/scheme/auto-uref.scm") R_OK)
    (begin
      (display "Loading from gedadata directory: ")
      (display (string-append gedadata "/scheme/auto-uref.scm"))
      (display "\n")
      (load (string-append gedadata "/scheme/auto-uref.scm"))
      )
    (if (access? (string-append gedadatarc "/scheme/auto-uref.scm") R_OK)
	(begin
	  (display "Loading from gedadatarc directory: ")
	  (display (string-append gedadatarc "/scheme/auto-uref.scm"))
	  (display "\n")
	  (load (string-append gedadatarc "/scheme/auto-uref.scm"))
	  )
	(begin
	  (display "auto-uref.scm not found!\n")
	  (exit))))

(define (auto-uref-debug attribs)
  (begin
    (display "Executing auto-uref hook for components: ")
    (display attribs)
    (display "\n")
    (auto-uref attribs)
    (display "Executed auto-uref hook for components: ")
    (display attribs)
    (display "\n")
))

(add-hook! add-component-hook auto-uref-debug)
(add-hook! copy-component-hook auto-uref-debug)

_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user