procad script

Change the line:

IMG = Blender.Image.Load(".blender\scripts\dati_procad\logo2.jpg")

to:

import os 
 
.... 
 
IMG = Blender.Image.Load(os.path.join(Blender.Get("scriptsdir"), "dati_procad", "logo2.jpg")) 

Hey Rocketship, In my linux box (fedora 5) works fine… Now i have to learn it.

Thank’s any way!

Francisco,

How’s your Italian?

I tried translating a few of the helplines with Google Translate, but the result was comical enough to be detrimental to work…

RS

Hi! Marioamb, a did the lines changes and my shell (In windows XP, because in linux works fine) show like this:

http://proyecto.sid.googlepages.com/shell.jpg

thank’s for your help.

you have a spare quote ie

(“scriptsdir”)",

should be

(“scriptsdir”),

Some bug fixed (same link)
http://utenti.lycos.it/paoloprovenda/Procad_20.rar

:confused: I don’t know… I must ask Japy (the script’s author)

…and I’m not a “Mr” but a “Miss” :slight_smile:

Blend,

could you or someone else upload the script to a different site?

The link provided doesn’t seem accessible.

http://www.filefactory.com/
http://www.savefile.com/
http://www.filexoom.com/
http://file.sc/

or many others…

Thanks,

LetterRip

:confused: I don’t know… I must ask Japy (the script’s author)

…and I’m not a “Mr” but a “Miss” :)[/quote]

MISS BLEND, sorry my mistake! :p, the anonymity of avatars is a problem…

well, the new versions off the Procad script works fine, :), thank you very much!

To those having trouble getting the file, and using Firefox with Flashgot extension, here’s how to get the file:

(1) Right-click the link above and choose “build gallery”.

(2) Copy the first part of the upper link (http://utenti.lycos.it) and paste it as the referrer URL.

(3) Hit “OK”

(4) Click the link and choose where you want to save the file :slight_smile:

I just select the URL dir
http://utenti.lycos.it/paoloprovenda/Procad_20.rar, control + c, new tab, control + v and enter… Voila!

fco.

The manual is not finished, but here you can find a summary:

Italian:
http://utenti.lycos.it/paoloprovenda/PROCAD20.rar
(copy&paste)
or
http://www.filefactory.com/file/216e70/

Approximate translation
(I beg your pardon, but my english is very very bad…
however I hope you can understand it better than italian :o)
http://www.savefile.com/files/161991

i’m under win(doze) and try to make ProCAD 2.0 working … but i’m having the same problem like others:
“File “<string>”, line 138, in draw
IOError: couldn’t load image
Traceback <most recent call last>:
File “PROCAD_20p3.py”, line 138, in draw
IOError: couldn’t load image”

… arghhhh … i must learn python … i saw the .jpeg with the “tools” in procad 2 and i love to try it out for architecture … a

I can’t help you, I’m sorry…
but here you can find the same script with the old GUI… maybe it works!
http://utenti.lycos.it/paoloprovenda/PROCAD20p4old.rar
(copy&paste)

hi Blend, this is working … thanks … how different is from the most current script, in terms of “tools”?. thanks! a

The new GUI is the only difference.
Japy has made 2 version of “proCAD 2.0” (with old GUI and with new GUI).

I’m also unable to get this to work. I’m using the MacIntel build of Blender 2.42a. BTW, anyone know how to view the “console” on a Mac?

Console.app

it’s in your utilities folder.

hi. thanks for the procad script. I just downloaded the link above to the 2.0 version from fransisco http://utenti.lycos.it/paoloprovenda/Procad_20.rar

a translation shouldn’t be too hard. I just used google to translate the tooltips. Toward the top of the python file there is lines beginning with “Pushbutton” heres the results of my translation: just copy and past over what’s there… (not great but it’s a start)

 
PushButton("MEM SEL",EVENT_S,474,5,68,13,"It acquires selected point ")
PushButton("UNDO CUR",EVENT_UNDCUR,404,20,68,13,"It restores the cursor in the previous point (20 undo)")
PushButton("REDO CUR",EVENT_REDCUR,404,35,68,13,"It restores the cursor in the following point (20 redo)")
PushButton("CON",EVENT_CONGIUNGI,212,35,25,13,"You combine one line towards a second one (C/S = Creates/Moves(Sposta) vertice)")
PushButton("SPI",EVENT_SPIGOLO,239,35,25,13,"It creates a chine to 90 degrees on the flat XY between 2 you concern to us selects to you (&lt;/&gt;= Inside/Outside)")
PushButton("RAC",EVENT_SPIGOLO2,185,35,25,13,"It joins together 2 lines selected on the flat XY (2 lines or 4 you concern to us selects to you)(C/S)")
PushButton("DIREZ. CUR-SEL",EVENT_SPOLARE,654,35,108,13,"It moves the cursore between its position 3D and the point selected to one sure distance (rel. to the curs. 3D)")
PushButton("DIREZ. CUR-CUR",EVENT_SPOLARE2,654,20,108,13,"It moves the cursore between P1 and its position puts into effect them to one sure distance 3D from P1")
PushButton("XYZ CUR",EVENT_SXYZ,474,20,68,13,"It relatively moves the cursore 3D on axis X, Y, Z of one sure distance")
PushButton("ESCI",EVENT_ESCI,912,5,60,13,"It exits from the script")
PushButton("SMU",EVENT_ARROTO,158,35,25,13,"It dulls an apex between two connected lines (C/S)")
PushButton("OGG",EVENT_PUNTO,293,35,25,13,"It creates a new apex to the Cursor point (New object)")
PushButton("VERT",EVENT_PUNTO2,320,35,25,13,"It creates a new apex to the Cursore point (Object in use)")
PushButton("FIGURE",EVENT_FIGURE,347,35,25,13,"It creates relative geometric figures 2D to the selected point")
PushButton("V&gt;DIREZ.",EVENT_DISTANZA,786,35,60,13,"Movements of you concern to us on direction (destinazione MEM SEL)")
PushButton("QUOTE",EVENT_QUOTE,850,5,60,13,"Parameters of design of the quotas 2D")
PushButton("PAR",EVENT_PARALLELA,131,35,25,13,"It creates a line parallel to 2 points selects to you")
PushButton("ELL",EVENT_ELLISSI,77,35,25,13,"Creation of Ellipse-Polygon-Arch of ellipses ")
PushButton("SNAP S&gt;C",EVENT_SNAP1,786,5,60,13,"Snap object (Selected apex -&gt; Cursore 3D)")
PushButton("PROIETTA",EVENT_PROIETTA,374,35,25,13,"Projection of you concern to us selects to you on a total plan")
PushButton("OGG&gt;3D",EVENT_ALLINEA,786,20,60,13,"It aligns the object selected to the sight 3D ")
PushButton("CPA",EVENT_CREACERCHIO3P,0,35,75,13,"Creation of Circle-Polygon-Arch")
PushButton("KEY?",EVENT_INFO,942,20,30,13,"Info express shortcuts from keyboard ")

I also get this error:

"File "&lt;string&gt;", line 138, in draw
IOError: couldn't load image
Traceback &lt;most recent call last&gt;:
   File "PROCAD_20p3.py", line 138, in draw
IOError: couldn't load image"

This is line 138:

IMG = Blender.Image.Load(os.path.join(Blender.Get("scriptsdir"),"dati_procad","logo2.jpg"))

So I changed it to a direct link to the file:

IMG = Blender.Image.Load("/Applications/Blender_2.42a/scripts/logo2.jpg")

Which works. I looked at the code in line 138 and it looks like the original code should work. I double checked my “scripts path” in Blender and it seems to be correct and Blender finds my scripts. Anyone have any ideas on how to fix this?

bigkahuna, the logo2.jpg is supposed to be in scripts/dati_procad/logo2.jpg