-
-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Centering a point and a line with minimum distance #53
Comments
Same goes for #51, you can simply use PlaneCoincident to center coincide the PCB and the SD card. Remember I suggested several times about the master sketch approach? In reality, when you mount something to PCB, you must have mounting holes, or soldering pads. You should use a master sketch to define those things first, which is easy if you already have the blueprint. If not, then the sketch serve the purpose of producing that blue print. After the sketch is done, create a sub-assembly to wrap the PCB with the sketch, and insert the sub-assembly to the main assembly. You can repeat this process for every electronic components, especially for those with irregular shapes, e.g. to use a sketch circle to mark the SD card mounting pin. Then the final assembling is simply to constrain each corresponding pair of sketch circles with PlaneCoincidence. |
I'm generally creating a PCB from scratch and the first step is making it fit into the mechanical environment. In the end, I want to achieve the following workflow while designing the devices:
You are suggesting the opposite, or am I still misunderstanding?
The actual goal is to center the SD Card according to the PCB, but they are not on the same planes: File: centering-planes.fcstd.remove-extension.zip Currently I can achieve this goal with the combination of the following constraints: File: centering-planes-2.fcstd.remove-extension.zip If there is not a misunderstanding about the constraints on my side, I may clarify my proposal. |
This is step is fine, after which you have a sketch of the PCB outline.
Here is my recommended master sketch approach. Assuming you already have an PCB. Now create a sub-assembly for each component you want to use, preferably in a separate file. Assuming you are going to use simplified geometry for placing at this stage. Notice I create two construction circles as marker. Next, go to the PCB model file. Add the same marker to a sketch. You can reuse the PCB creating sketch like I did in the screencast, or you can map a new sketch onto the PCB. Use the sketch to precisely define the component position like what will be shown in the blueprint. As shown in the screencast, you can freely move the component by moving the sketch, as long as you turn on the 'Auto update' option in sketch editor. There is an annoying problem, as the sketch will auto hide any depending object, and in this case, the top assembly. You'll have to manually toggle its visibility. Repeat the above steps to add all the components. Finally, I'll shown you a way to export footprints after you have done the PCB assembly. The screencast only shows one component. But imagine you have placed all components. They can be exported into separate binder. You'll still need some python code convert this to footprint file, and get the relative footprint placement from the binder, though.
This is an ambitious project! I actually wanted to do something similar with KiCAD, but not util the assembly WB is somewhat complete. You probably want to check out my other project. |
I needed to place the SD Card in the middle of Raspberry. The flow I could think of is:
How can I create such a DraftPlane? (or is there a more suitable way to achieve this?)
The text was updated successfully, but these errors were encountered: