Skip to main content

Messages

This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.

Messages - elgonzo

1
General discussion / Re: Razen - A new PCB CAD tool I'm working on.
This looks quite promising, rng!

Will there be any documentation of the (work-in-progress) Python scripting API available, either as document (online, PDF, ...) or as pseudo/source code listing all available API calls?

Although i will need to try the Alpha before commenting on your project, i already have some questions regarding the Python scripting screenshot on your web site, and which i want to ask you, right here, right now...

In the particular screenshot, the following Python function for creating a ring of LEDs is shown (replicated here in my post for purposes of reference and because i cannot/do not want to put a link in my post):

Code: [Select]
def main(proj):
    t = Transform.indent()
    angle = 0
    for i in rang(16):
        pos = t.apply_point(0,12)
        name = "D%d" % i
        _,f = proj.part(name, pos, "rng/razen-lib-led", "led)
      f.angle = angle
      t = t.rot(22.5)
      angle += 22.5 
   

It seems that you pass a project object to the main function, which i assume is the active project.
Will there be ways to access other open projects (assuming that the software can have multiple projects open)?
Also, would it be possible to load and create new projects (for example for importers or for batch processing)?

I assume from the script, that the function proj.part(...) returns a tuple of the form (SchematicSymbolObject, PcbFootprintObject), with both having the same initial coordinates specified by the variable "pos". Is this correct?

Anyway, you project looks interesting. As you poll for a potential price bracket for your software, i don't expect this to become open source, right?

p.s.: Being a longtime lurker here too, and your post made me coming out of my lurker hole :)

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01442251928session_write_close ( )...(null):0
20.01482383528ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01482384304Database_MySQL->query( ).../DatabaseHandler.php:119
40.06062523048Database_MySQL->error( ).../Db-mysql.class.php:273