Re: gEDA-user: Automatic repositioning to attributes
Em Qui, 2006-10-19 às 20:00 +0200, Carlos Nieves Ónega escreveu: From your comment, I guess the refdes attribute position depends on the type of the symbol: if it's a resistor or a capacitor then you want it at one place, but if it's an IC, then you put it at another place. Am I right?. This is not currently possible, but I think it could be done. I'd really appreciate if you could give this new feature a try and let me know what points can be improved. Thanks, Carlos Yes, depends on the type. But I made some adjustments to the table: ; Component attributes ; One direction (refdes -25 25 Middle LeftLower Right0 (value -25 -25 Middle LeftUpper Right0 (refdes 25 25 Middle Right Lower Left 0 (value 25 -25 Middle Right Upper Left 0 (refdesv 0 -25 Lower Middle Upper Middle 0 (value v 0 -100 Lower Middle Upper Middle 0 (refdes^ 0 25 Upper Middle Lower Middle 0 (value ^ 0 100 Upper Middle Lower Middle 0 ; Two directions (refdes 025 Upper Middle Lower Middle 0) (value 0 -25 Lower Middle Upper Middle (refdes^v2550 Middle Right Lower Left0) (value ^v25 -50 Middle Right Upper Left0) ; Three directions (refdes^v -25 50 Middle Left Lower Right0) (value ^v -25 -50 Middle Left Upper Right0) (refdes^v25 50 Middle Right Lower Left 0) (value ^v25 -50 Middle Right Upper Left 0) (refdesv -50 -50 Lower Middle Upper Right0) (value v50 -50 Lower Middle Upper Left 0) (refdes^ -50 50 Upper Middle Lower Right0) (value ^50 50 Upper Middle Lower Left 0) ; Four directions ;(refdes^v 300 50 Upper LeftLower Left 0) ;(value ^v -300 50 Upper Right Lower Right0) )) So, the result is great! Congratulations for the routines. Many anchors had been modified, and I think the 25 mils must be 50 to original gEDA symbols. In our case 25 is better, because our symbols are smaller Now, I don't need to create a resistor in vertical and another in horizontal position. And this is so good. Just some symbols are a litle confused, is the case of IC with pin in all directions. A Flip-flop IC is a good example, J and K pins in by its left side, Q /Q out by its Right side, and SET up and CLR down. Or a OpAmp, with offset pins, compensations etc. I think is better to don't use autoplace routine, because in some cases the attribs will be in front of some pins. Then, I just commented the Four directions lines, and autoplace routine does not run. I will continue my tests, Ok? Thank you, Antonio ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: Automatic repositioning to attributes
Hi Antonio, El mié, 18-10-2006 a las 22:33 -0200, Antonio Augusto Todo Bom Neto escribió: [snip] Well, I just don´t like because we work with some norms about design. I.E.: One resistor in vertical position must have RefDes at its right, aligned the anchor to the upper pin end, anchor at up/left to text. Its Value, with anchor align to the bottom pin end, ancho down/left to the text. Always 2mm distant from resistor body. One horizontal resistor, RefDes, the RefDes must be with the anchor above the resistor, center, and the anchor is center/down to the text. The Value bellow the resistor. The same to capacitors. All ICs must be a 800 mils witdht box, the length (up/down) is free. Its RefDes must be above the box, align to its left corner, 2 mm above. The typenumber must be inside the box, at the bottom center. Microcontrolers, processors must be 1000mils. OpAmps and some special functions ICs can have special designs. Well... There are some others specifications to design a diagram to ABNT norms (ABNT=Tech. Norms Brazilian Association) ABNT rulez about ALL and AT ALL to industry here. About toys, builds, aircraft, cars, machines, etc. Either our Metro Dpt. for example (INMETRO) follows ABNT. So... All that we have been here is to design all symbols with their right positioned attributes from scratch. [snip] That's the reason I wrote this new feature. People like you are the ones who may use this kind of tool. If you look for default-position-of-text-attributes in your system-gschemrc file, you will find the default position definition of pin and component attributes. I think you can adapt it to your norms and let gschem to do the hard work for you. Let me explain: For component attributes, there are 4 sections: - one direction: components having pins in only one side. '' means the symbol have pins on the right side. - two directions: components having pins in two sides. means the symbol have pins on left and right side. - 3 directions, and - 4 directions are similar These sections are there for different component angles. A vertical resistor will have pins on the top and on the bottom (^v) while an horizontal resistor will have them on the right and on the left (). So if we analyze what a configuration line means, for example: ; Two directions ; Name Direct. X_offset Y_offset Reference Alignment Angle (refdes -50 50 Upper Middle Lower Right0) This line is defining the default place for those refdes attributes for components having pins on the left and on the right (, second entry). The default place is the Upper Middle (reference) of the symbol (i.e.: at the top (Y axis), in the middle (X axis)), with a x offset of 50 mils to the left, and an y offset of 50 mils to the top. The text alignment is Lower right and the text angle is 0. Using this feature, you can define the places where you want the attributes, and let gschem to place them for you, even when rotating or mirroring the component. You don't have to wonder if the symbol has the attributes placed where you want them. From your comment, I guess the refdes attribute position depends on the type of the symbol: if it's a resistor or a capacitor then you want it at one place, but if it's an IC, then you put it at another place. Am I right?. This is not currently possible, but I think it could be done. I'd really appreciate if you could give this new feature a try and let me know what points can be improved. Thanks, Carlos ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: Automatic repositioning to attributes
El jue, 19-10-2006 a las 13:22 -0500, John Griessen escribió: [snip] I think he would appreciate for the function to act only when it finds a symbol with the position definition left at 0 and 0, otherwise leave the refdes alone and do not move it from a hand made position. by 0 and 0, I mean in the element file first line: for example: Element[ dual_3.6mm_TRS_jack J? 72835 125984 7000 23000 0 100 ] ( the locations where I have 7000 23000. If they are not zero, Antonio wants them left alone. We were talking about gschem. You seem to be talking about pcb Regards, Carlos ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: Automatic repositioning to attributes
Em Qui, 2006-10-19 s 20:00 +0200, Carlos Nieves nega escreveu: That's the reason I wrote this new feature. People like you are the ones who may use this kind of tool. If you look for default-position-of-text-attributes in your system-gschemrc file, you will find the default position definition of pin and component attributes. I think you can adapt it to your norms and let gschem to do the hard work for you. Really excuses, Was a good job! But is a litle complex to understand how to use this to our case. I just arrived from a litle travel and saw your message. Give me some days to work about. I promise to reply you with more info. Thank you, Antonio ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: Automatic repositioning to attributes
Hi Antonio, I think this feature is disabled by default. In the system-gschemrec file, look for: - begin configuration file snippet ; Autoplace component text attributes hook. ; Comment in these if you want the component attributes to be ; automatically placed. ; There are different hooks for situations like adding a new pin, rotating ; or mirroring an existing one, or adding a new attribute. ; The #t at the end means that function is appended to the end of the hook. ;(add-hook! add-component-object-hook (lambda (object) ; (autoplace-object-attributes object)) #t) ;(add-hook! rotate-component-object-hook (lambda (object) ; (autoplace-object-attributes object)) #t) ;(add-hook! mirror-component-object-hook (lambda (object) ; (autoplace-object-attributes object)) #t) ;(add-hook! add-attribute-hook (lambda (object) ; (autoplace-object-attributes object)) #t) - end configuration file snippet They should be commented out (with the starting semicolon, as you see in the above snippet). Just curious, do you have any suggestion to improve this feature? why don't you like it? Regards, Carlos El jue, 12-10-2006 a las 18:39 -0300, Antonio Augusto Todo Bom Neto escribió: Hi all, Using gschem, I have been some problems every time I add a component. All symbols added, its attributes are relocated automaticly. But I don ´t want this. I study where I want the RefDes and Value in any symbol that I create, and gSchem simply ignore the position on my symbol file. How to desable this effect? Cheers, Antonio ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: Automatic repositioning to attributes
Em Qui, 2006-10-12 s 18:39 -0300, Antonio Augusto Todo Bom Neto escreveu: Hi all, Using gschem, I have been some problems every time I add a component. All symbols added, its attributes are relocated automaticly. But I dont want this. I study where I want the RefDes and Value in any symbol that I create, and gSchem simply ignore the position on my symbol file. How to desable this effect? Cheers, Antonio Applying mirror tool the same effect occours, relocating Refdes e Value. Is there any method to disable this? Cheers, Antonio ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
gEDA-user: Automatic repositioning to attributes
Hi all, Using gschem, I have been some problems every time I add a component. All symbols added, its attributes are relocated automaticly. But I dont want this. I study where I want the RefDes and Value in any symbol that I create, and gSchem simply ignore the position on my symbol file. How to desable this effect? Cheers, Antonio ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user