Hello,
I’ve used StepUp before, and it’s great. Awesome work and thanks for doing this. I’m currently using it as part of an open source PCB project, which is triggering me to ask some questions.
At the moment I’m hitting some problems with scale, and some questions about how I should be using the file names.
My first question is if there is a way to deal with the file names on repositories not found in the KISYS3DMOD location. In this case the repository structure is like this.
./KICAD
./KICAD/3D
./KICAD/project_1
./KICAD/project_2
Lets assume the PCB repository was checked out to C:\ . In KICAD under 3D setting when you add your file with a relative link to KISYS3DMOD it looks like this.
…/…/…/…/…/…/KICAD/3d/c-172319-1-k3-3d.wrl
The …/…/…/…/…/…/ is because the windows default for KISYS3DMOD is
C:\Program Files\KiCad\share\kicad\modules\packages3d\
Of course if you local repository is something more like “C:\my_personal_file_structure\library\3D” and you have to divulge your personal file structure, which is not desirable. Is there a way to provide links without divulging your personal file structure? As well is there a way to provide these links in a portable fashion, as my personal file structure is not going to be the same for someone else who checks out this repository. Right now someone who checks out this open repository needs to either re-create my personal file structure, or they need to update the links to what ever their personal structure is? Can I create a path for something like LOCALREPO which can be used by both KICAD and StepUp such that my repo does not need to rely on links with my personal file structure? How does KICAD and / or StepUp expect me to link my repo, such that these great tools function together harmoniously?
My other problem and questions is about scaling.
This is how it looks in KICAD 3D viewer.
After running StepUp, this is how it looks in FreeCAD R0.16
See below post. Apparently new users can only post one picture per post. So I’ll have to include pictures in separate posts.
If I scale the PCB by 1 / 2.54 = 0.393, It looks like this.
See below post. Apparently new users can only post one picture per post. So I’ll have to include pictures in separate posts.
The link below includes the FreeCAD files which generated the step and wrl files. The c-172319-1-k3-3d.FCStd file is fairly basic. I imported a file from the MFG, which is then scaled such that KICAD is 1:1. The KICAD does rotation and offset.
https://cp.sync.com/dl/882b2e040#ba9ctzgr-w5ab4gt5-aca8u7fu-jszd9by8
Here is a copy of the reports view log.
PoM not present
FC Version 016-6706
kicad StepUp version 7.1.7.9
tolerance on vertex applied
applying Materials to Shapes
your home path is C:\Users\Vista_64_D630
ksu file ‘ksu-config.ini’ exists
materials section present
turntable section present
compound section present
docking section present
constraints section present
font section present
useGridOrigin option present
3D models prefix=C:\Program Files\KiCad\share\kicad\modules\packages3d
3D models prefix2=
pcb color=1.0,0.1,0.0,red (255,25,0)
blacklist modules
volume 0 heigh 0
bounding box option 0 whitelist
placement board @ useBaseOrigin #place board @ 0,0,0
idf_to_origin True
last fp path
last brd path C:/KICAD/172319-1_52pin-connector
virtual models noVirtual
export fusing option nofuse #default
minimum drill size 0.0mm
export to STEP True
enable materials True
turntable True
compound allowed True
docking mode right
constraints mode all
kicad StepUp version 7.1.7.9
export to STEP True
ksu file ‘ksu-config.ini’ exists
materials section present
turntable section present
compound section present
docking section present
constraints section present
font section present
useGridOrigin option present
3D models prefix=C:\Program Files\KiCad\share\kicad\modules\packages3d
3D models prefix2=
pcb color=1.0,0.1,0.0,red (255,25,0)
blacklist modules
volume 0 heigh 0
bounding box option 0 whitelist
placement board @ useBaseOrigin #place board @ 0,0,0
idf_to_origin True
last fp path
last brd path C:/KICAD/172319-1_52pin-connector
virtual models noVirtual
export fusing option nofuse #default
minimum drill size 0.0mm
export to STEP True
enable materials True
turntable True
compound allowed True
docking mode right
constraints mode all
kicad StepUp version 7.1.7.9
opening C:/KICAD/172319-1_52pin-connector/172319-1_connector.kicad_pcb
my file path C:\KICAD\172319-1_52pin-connector
Failed to TuneWindowsGestures. Error: DLL entry point for SetGestureConfig not found in user32.dll. Could not tune Windows gestures.
PCB Loader
pcb thickness 1.6002mm
kicad_pcb version 4
board area [60.134499, 98.234499, 184.975501, 132.270501]
aux_axis_origin[0, 0]
2d circle closed path
2d circle closed path
2d circle closed path
2d circle closed path
2d closed path
max Length=124.46 index=4
running time: 0sec
start cutting
generating flat holes
cutting time 3
Shape already removed
running time: 4sec
FC Version 016-6706
placing board @ -122.555,115.2525
building up pcb time 4
start adding constraints to pcb sketch
adding constraints time 0
running time: 5sec
VBO status False
ReadShapeCompoundMode status False
…/…/…/…/…/…/KICAD/3d/c-172319-1-k3-3d.wrl
adjusting Relative Path
step-module-replaced C:/KICAD/172319-1_52pin-connector…/…/…/…/…/…/KICAD/3d/c-172319-1-k3-3d.wrl
model name c-172319-1-k3-3d
opening C:/KICAD/172319-1_52pin-connector/…/…/…/…/…/…/KICAD/3d/c-172319-1-k3-3d.step
c-172319-1-k3-3d
module C:/KICAD/172319-1_52pin-connector/…/…/…/…/…/…/KICAD/3d/c-172319-1-k3-3d.step
…/…/…/…/…/…/KICAD/3d/c-172319-1-k3-3d.wrl
adjusting Relative Path
step-module-replaced C:/KICAD/172319-1_52pin-connector…/…/…/…/…/…/KICAD/3d/c-172319-1-k3-3d.wrl
model name c-172319-1-k3-3d
opening C:/KICAD/172319-1_52pin-connector/…/…/…/…/…/…/KICAD/3d/c-172319-1-k3-3d.step
c-172319-1-k3-3d
module C:/KICAD/172319-1_52pin-connector/…/…/…/…/…/…/KICAD/3d/c-172319-1-k3-3d.step
running time: 34sec
exporting to MCAD
C:/KICAD/172319-1_52pin-connector_72319_1_connector.FCStd
Board Placed @ 0.0;0.0;0.0
kicad pcb pos: (122.555;-115.252;0.00)
running time: 41sec
running time: 41sec
Why is this scale coming in wrong, and how do I get it to scale properly?
KICAD version is 4.05, this is on a Vista 64 bit platform, with FreeCAD R0.16. StepUp is launched via workbench pull down.