Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:
- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
CAM Studio ShopBot post emits malformed CG (arc) lines for circular profiles
The ShopBot post in CAM Studio produces invalid arc commands for circular profiles. The ShopBot control software refuses the file with "Circle Diameter is 0 (or less)". Non-circular profiles in the same posted file come out perfectly.
Public document with the CAM setup, if you want to inspect or re-post it:
It is a 0.25" plate — 6" square with 0.25" corner radii and one 4.000" through hole, 0.188" end mill, two "Two axis profile" operations. Posted file header:'POST FILE : shopbot.py'POST VERSION: 1.219.733
'CAM SYSTEM : CamStudio, Version 1.219.3169.0e27c2a26
'MACHINE : 3AxShopBotDesktopMAX-default
'CREATED BY : MW PPFramework v2.15.0
**What comes out**
Outer profile — correct, 7 parameters:CG, ,0.75,6.594,0.344,0., ,1
Bore — malformed, 6 parameters:CG, ,1.594,-1.906,0., ,-1
CG takes `diameter, X-end, Y-end, I, J, [O]ut-[I]in-[T]rue, direction`. The bore line is missing the
**Y-end-point** — not left blank, but omitted along with its comma, so every parameter after it shifts one slot left:
diameter X-end Y-end I J O/I/T dir outer, correct (blank) 0.75 6.594 0.344 0. (blank) 1 bore, as written (blank) 1.594 -1.906 0. (blank) -1 -- bore, should be (blank) 1.594 3.5 -1.906 0. (blank) -1
Read the middle row against the bottom one: I lands in Y-end, J lands in I, the blank lands in J, and the direction ends up in the O/I/T slot with nothing left for direction.
The control is left with no diameter and both center offsets zero — exactly what its error message reports. The line should read:CG, ,1.594,3.5,-1.906,0., ,-1
**The pattern**
The post appears to suppress an end-point coordinate when it equals the current position, and drops the field separator along with the value. A full circle is emitted as two 180° arcs, and the profile starts at 3 o'clock, so both halves begin and end at the same Y — Y is "unchanged" and disappears.
Across three posted files: 142 arcs whose end point moves in both axes, all correct; 26 arcs with an unchanged end coordinate, all malformed. No exceptions either way. It is not zero-suppression in general — 104 of the correct arcs carry an explicit `0.` in I or J, so only the end-point fields are affected.
**The post had a legal way to write this.** From the ShopBot Command Reference (V3) on CG: "The end point of the circle/arc. If no values are provided, it is assumed the end point is the same as the start point." Omitting the Y *value* is valid — the comma just has to stay, so CG, ,1.594,,-1.906,0., ,-1 would also have worked. This is a separator bug, not a geometry bug; the toolpath CAM Studio computed is correct.
**Scope.** Every circular profile I have posted is affected. Adaptive clearing on the same hole posts fine — its arcs never land on an unchanged coordinate. The same geometry posted as Fanuc G-code is fine. So this looks specific to the ShopBot post rather than to the CAM.
Answers
-
@brian_moorhead Thank you for bringing this to our attention. Our team is investigating the issue and will have a correction made for this post soon.
0
Categories
- All Categories
- 10.2K Community Support
- 4.6K General
- 194 Account and subscriptions
- 353 Data management
- 1.6K Product Feedback
- 215 New in Onshape
- 14 Onshape Labs
- 75 CAM Studio
- 35 PCB Studio
- 107 Simulation
- 209 Onshape Mobile
- 315 App Store & Partners Apps
- 8.2K Using Onshape
- 1.8K Drawings
- 2.3K FeatureScript
- 324 Learning Center
- 253 Education Community

