Using Assembly 4 with a Kicad board.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Using Assembly 4 with a Kicad board.
There is nothing I do that places an LCS in a hole of the board. I can do that manually placing the LCS but this is far from optimal.
I tried to use a Hole Axis instead, but I cannot place the LCS there and I cannot use the Hole Axis while placing the Part.
Any idea what I can try to solve this?
I tried to use a Hole Axis instead, but I cannot place the LCS there and I cannot use the Hole Axis while placing the Part.
Any idea what I can try to solve this?
Re: Using Assembly 4 with a Kicad board.
No file or picture or information: no help.
"It is a poor workman who blames his tools..."
Re: Using Assembly 4 with a Kicad board.
Sorry, where can I go to talk with real human beings?
It looks like this forum is just full of trolls.
Maybe I have to go back to Reddit or Facebook, or even Instagram. They talk more on Instagram these days than on this forum.
It looks like there is no one that can handle a conversation like a real human being in this stupid forum. Serioslly. WTF!
It looks like this forum is just full of trolls.
Maybe I have to go back to Reddit or Facebook, or even Instagram. They talk more on Instagram these days than on this forum.
It looks like there is no one that can handle a conversation like a real human being in this stupid forum. Serioslly. WTF!
Re: Using Assembly 4 with a Kicad board.
This is not the only topic of leoheck which went out of whack. I have banned him for a week.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Using Assembly 4 with a Kicad board.
it could be easily solved... w/ kicadStepUp ... but we would need a Forum user with patience and attitudeleoheck wrote: ↑Mon Aug 29, 2022 11:08 pm There is nothing I do that places an LCS in a hole of the board. I can do that manually placing the LCS but this is far from optimal.
I tried to use a Hole Axis instead, but I cannot place the LCS there and I cannot use the Hole Axis while placing the Part.
Any idea what I can try to solve this?
Re: Using Assembly 4 with a Kicad board.
Assembly 4 would need a LCS on first level of a Part container...
kicadStepUp was placing a LCS in a second level of a Part container (main Part container is the Project name holder, inside there are the PCB container and the Top and Bottom STEP files containers)
The fix could be manually done simply dragging the LCS upper of a level.
But I wanted to do this automatically with the WB code...
I have just moved the LCS from the PCB container to the Project main container with latest commit...
From now on Assembly 4 will be able to see the kSU board LCS and use it as a reference for aligning objects in Asm4.
Note:
if you place a KiCAD 'Grid origin' or 'Aux Origin' in your PCB and set kSU accordingly, your FC loaded board will have the LCS aligned to the 'Grid Origin' or 'Aux Origin' ...
i.e. if your Origin is aligned to a center of a PCB hole, your FC counterpart board will have the LCS exactly placed to the PCB hole
kicadStepUp was placing a LCS in a second level of a Part container (main Part container is the Project name holder, inside there are the PCB container and the Top and Bottom STEP files containers)
The fix could be manually done simply dragging the LCS upper of a level.
But I wanted to do this automatically with the WB code...
I have just moved the LCS from the PCB container to the Project main container with latest commit...
From now on Assembly 4 will be able to see the kSU board LCS and use it as a reference for aligning objects in Asm4.
Note:
if you place a KiCAD 'Grid origin' or 'Aux Origin' in your PCB and set kSU accordingly, your FC loaded board will have the LCS aligned to the 'Grid Origin' or 'Aux Origin' ...
i.e. if your Origin is aligned to a center of a PCB hole, your FC counterpart board will have the LCS exactly placed to the PCB hole
Re: Using Assembly 4 with a Kicad board.
you'd probably get the dreaded "Links go out of the allowed scope". The proper fix is to "Import" the LCS, which will create a new LCS at the root of the Part, superimposed on the LCS down somewhere in the hierarchy. Another fix would be to delete the unnecessary level of container
Nice. But are you sure you *really* need that extra "Project main container" ?I have just moved the LCS from the PCB container to the Project main container with latest commit...
From now on Assembly 4 will be able to see the kSU board LCS and use it as a reference for aligning objects in Asm4.
Re: Using Assembly 4 with a Kicad board.
Moved from Help forum.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Using Assembly 4 with a Kicad board.
This is the way kicadStepUp is importing (building in FC) a kicad file: a project file which is containing a PCB, a Sketch and Top and Bottom STEP models...Zolko wrote: ↑Wed Aug 31, 2022 8:50 amNice. But are you sure you *really* need that extra "Project main container" ?I have just moved the LCS from the PCB container to the Project main container with latest commit...
From now on Assembly 4 will be able to see the kSU board LCS and use it as a reference for aligning objects in Asm4.
Thus the project is a container for all the board elements.
Before the changes, LCS was inside the Board_Geoms Part container, and then it was not select-able by Asm4...
Re: Using Assembly 4 with a Kicad board.
OK, I understand. If you want to get rid of the annoying overlays that say that the LCS is not attached, you can attach the LCS to the Origin:
Code: Select all
# add an LCS at the root of the Part, and attach it to the 'Origin'
lcs0 = newPart.newObject('PartDesign::CoordinateSystem','LCS_0')
lcs0.Support = [(newPart.Origin.OriginFeatures[0],'')]
lcs0.MapMode = 'ObjectXY'
lcs0.MapReversed = False