Kontrol ve Yerleştirme Fikstürü DoğrulamaChecking & Locating Fixture Verification

Bir fikstürün CAD modelini alıp "parça gerçekten yerine oturur mu, klemp doğru yere basar mı, parça sonra çıkarılabilir mi" sorularını otomatik yanıtlayan bir Python paketi. Fikstürdeki her gövdenin rolünü bildirirsiniz (parça, datum pedi, pim, klemp, kontur bloğu, mastar); paket geometriden ölçüp her kontrol için geçti/kaldı raporu verir.A Python package that takes a fixture CAD model and answers, automatically, "does the part really seat, does the clamp press in the right place, can the part be taken out again". You declare the role of each body in the fixture (part, datum pad, pin, clamp, contour block, gauge); the package measures the geometry and reports pass or fail for every check.

Python 3.13build123dcad-khanaISO 286pytestAGPL-3.0
TestTests
101
SürümVersion
0.1.0
Örnek fikstürExample fixtures
2
Hatalı varyantFault variants
9
NIST FTC-08 tepsisi için kontrol fikstürü: taban plakası, A datum pedleri, B ve C pimleri, üç klemp ve mastar bloğu
NIST'in yayımladığı gerçek bir işlenmiş parça (FTC-08, 311 × 223 × 48 mm tepsi) için kodla kurulan kontrol fikstürü. Datumlar ve delik toleransları NIST teknik resminden alındı.A checking fixture built in code around a real machined part published by NIST (FTC-08, a 311 × 223 × 48 mm tray). Datums and hole tolerances come from the NIST drawing.

ProblemProblem

CAD programının söylediği "katı geçerli, çakışma yok" bilgisi bir fikstürün işe yaradığını göstermez. Elmas pim 90° dönük modellenmiş olabilir, klemp altında ped olmayan ince sacı bastırabilir, bir blok tabana değmeden havada durabilir, pim en kötü tolerans durumunda deliğe girmeyebilir ya da parça yerine konduktan sonra hiçbir yönden çıkarılamayabilir. Bunların hiçbiri çakışma kontrolünde görünmez.

Fikstürü bir insan da bir yapay zekâ ajanı da tasarlasa bu hataların modelden, üretime geçmeden yakalanması gerekiyor. Hedef, bunları tek tek gözle aramak yerine tekrar çalıştırılabilir bir kontrol listesine çevirmekti.

"Valid solid, no interference" from the CAD program does not show that a fixture works. A diamond pin can be modelled rotated 90°, a clamp can press thin sheet with no pad under it, a block can float above the base, a pin may not fit the hole at worst-case tolerance, or the part may have no direction to come out once it is loaded. None of these show up in an interference check.

Whether a person or an AI agent designs the fixture, these errors need to be caught in the model, before anything is made. The goal was to turn them into a check list that can be run again, instead of hunting for them by eye.

YaklaşımApproach

  • Rolleri bildir, gerisini paket ölçer. Fikstür bir STEP montajından ya da build123d gövdelerinden yüklenir. Kullanıcı yalnızca hangi gövdenin A datum pedi, yuvarlak pim, elmas pim, klemp, kontur bloğu ya da mastar olduğunu ve deliklerin toleranslarını yazar.
  • Geometriden ölçüm. Temas yüzeyleri, pim kesitleri, klempin bastığı noktanın pede izdüşümü ve gövdelerin birbirine bağlantısı doğrudan modelden çıkarılır; elle girilen ölçü yok.
  • Hareket kontrolleri. Klemp kolu mafsal ekseni çevresinde 1° adımlarla açılır ve her adımda çarpma aranır. Parça, açık konumdaki klemplere karşı belirtilen yönde süpürülerek çıkarılır. GEÇER/GEÇMEZ mastarı burç içinden deliğe kadar sürülür.
  • Mevcut araç üstünde ince katman. Paket kendi hesaplarını cad-khana'nın iddia sistemine ekler; çıktı bir cad-khana montajı olduğu için khana check ve khana show doğrudan çalışır.
  • Declare roles, the package measures the rest. The fixture is loaded from a STEP assembly or from build123d bodies. You only write which body is a datum A pad, round pin, diamond pin, clamp, contour block or gauge, and the hole tolerances.
  • Measured from geometry. Contact patches, pin cross-sections, where the clamp's pressure falls on a pad, and how the bodies connect to each other are all taken from the model; no dimensions are typed in by hand.
  • Motion checks. The clamp arm opens around its pivot in 1° steps, looking for a collision at each step. The part is swept out in the given direction against the clamps in their open positions. The GO/NO-GO gauge is driven through its bushing into the hole.
  • A thin layer on an existing tool. The package adds its own checks to cad-khana's assertion system; the output is a cad-khana assembly, so khana check and khana show work directly.

Neyi denetliyorWhat it checks

KontrolNe arar
3-2-1 yerleştirmeTam üç ped temasta ve aynı düzlemde mi; destek üçgeni yeterince geniş mi; kısıtlanan serbestlik derecesi tam 6 mı
PimlerISO 286'ya göre en kötü durum boşluğu, CAD ekseni kaçıklığı düşülmüş boşluk, datum kayması; elmas pimin rahatlatması B→C doğrultusunda mı
KlemplerBasma noktası bir pedin üstüne mi düşüyor, arada dolu malzeme var mı; kol açılırken parçaya ya da sabit gövdelere çarpıyor mu
BağlantıHer fikstür gövdesi tabana temasla bağlı mı (havada kalan blok yok)
Parça çıkarmaParça, klempler açıkken belirtilen yönde engelsiz çıkabiliyor ve fikstürün tamamen dışına geçebiliyor mu
MastarGEÇER çapı sanal durumda, GEÇMEZ çapı en az malzeme durumunda mı; yol burç ve parça dahil açık mı; burç eş eksenli ve L/D yeterli mi
CheckWhat it looks for
3-2-1 locationExactly three pads in contact and coplanar; a wide enough support triangle; exactly 6 degrees of freedom constrained
PinsWorst-case clearance per ISO 286, clearance with the CAD axis offset deducted, datum shift; diamond pin relieved along B→C
ClampsPressure point lands on a pad with solid material in between; the arm does not hit the part or fixed bodies while opening
ConnectionEvery fixture body is connected to the base by contact (no floating blocks)
Part removalWith the clamps open, the part can leave in the given direction unobstructed and get clear of the whole fixture
GaugeGO diameter at virtual condition, NO-GO at least material condition; clear path through bushing and part; bushing coaxial with enough L/D

DoğrulamaVerification

İki örnek fikstür var: STEP'ten yüklenen 28 gövdeli bir sac braket kontrol fikstürü (üç mandallı klemp, kontur blokları, burç kılavuzlu mastar) ve NIST FTC-08 parçası için kodla kurulan fikstür. Her ikisi de temiz hâlde tüm kontrollerden geçiyor; ardından bilerek bozulmuş varyantların her biri belirli bir kontrolde kalmak zorunda:

BozulmaYakalayan kontrol
Elmas pim 90° döndürülmüşElmas pim yönü
Elmas pim hiç konmamışSerbestlik derecesi (5/6)
Pim Ø9 js6 seçilmişEn kötü durum boşluğu
Klemp pabucu 14 mm öne kaymışKlemp ped üstünde değil
Burç kulesi 5 mm yüksekTabana bağlantı
Burç ve mastar 1 mm sola kaymışMastar yolu
Kontur bloğu parçanın üstüne uzanmışParça çıkarma, boşluk
FTC-08: klemp mafsalı ucun üstündeKlemp açılması
FTC-08: gevşek yerleştirme pimiDatum kayması

101 test her kontrol için geçen ve kalan durumları, ISO 286 tablo değerlerini ve dokuz hatalı varyantı kapsıyor; GitHub Actions her değişiklikte çalıştırıyor.

There are two example fixtures: a 28-body sheet-metal bracket checking fixture loaded from STEP (three toggle clamps, contour blocks, a bushing-guided gauge) and a fixture built in code for the NIST FTC-08 part. Both pass every check when clean; then each deliberately broken variant has to fail on a specific check:

FaultCaught by
Diamond pin rotated 90°Diamond pin orientation
Diamond pin left outDegrees of freedom (5/6)
Pin specified Ø9 js6Worst-case clearance
Clamp pad shifted 14 mm forwardClamp not over a pad
Bushing tower 5 mm too highConnection to base
Bushing and gauge shifted 1 mm leftGauge path
Contour block reaching over the partPart removal, clearance
FTC-08: clamp pivot above the tipClamp opening
FTC-08: loose locating pinDatum shift

The 101 tests cover passing and failing cases for every check, ISO 286 table values and the nine fault variants; GitHub Actions runs them on every change.

SınırlarLimits

Nominal geometri denetlenir; toleranslar yalnızca pim-delik geçmelerinde ve mastar çaplarında hesaba girer, tolerans zinciri analizi yok. Kuvvet analizi, operatör erişimi ve imal edilebilirlik kapsam dışı. Klemp açılması 1° adımlarla örneklendiği için iki adım arasındaki çok ince bir engel kaçabilir.

Nominal geometry is checked; tolerances enter only in pin-hole fits and gauge diameters, and there is no tolerance stack-up. Force analysis, operator access and manufacturability are out of scope. Clamp opening is sampled in 1° steps, so a very thin obstacle between two steps could be missed.