In intelligent Computer-Aided Design (CAD), a key challenge is to enable 3D model automatic generation systems to simultaneously satisfy precise geometric constraints and tolerate reasonable manufacturing errors. The cross-entropy loss functions, commonly used in traditional methods, tend to over-penalize minor parameter deviations and fail to incorporate attribute constraints such as area or volume, often resulting in generated output that deviates from engineering realities. To address these issues, a CAD command generation method based on a Gaussian-tolerant cross-entropy loss function, GTCG-Transformer (Gaussian Tolerant CAD Generation Transformer), was proposed. The core works of this method include: 1) designing a Gaussian fault-tolerant cross-entropy loss function and introducing Gaussian weights to smooth the neighborhood around the target value, enabling the GTCG-Transformer model to distinguish “serious errors” from “acceptable deviations”, thereby significantly enhancing fault tolerance for continuous parameter prediction. 2) constructing a Transformer generation architecture with embedded geometric constraints, in which geometric attributes such as area and volume were encoded as conditional inputs to drive the decoder to generate CAD command sequences that comply with preset constraints, thereby enabling constraint-aware end-to-end automated design. Experimental results on the filtered DeepCAD (Deep CAD generation network) dataset indicate that GTCG-Transformer comprehensively outperforms mainstream baselines in predicting geometric attributes such as area and volume. Specifically, in scenarios under dual constraints of area and volume, compared with a relatively advanced CAD-LM (CAD-Language Model) method, the proposed method achieves better performance in Mean Squared Error (MSE), Mean Absolute Error (MAE), and Pearson Correlation Coefficient (PCC), with the area MSE reduced to 1.262 and the volume MSE reduced to 0.018. The proposed method introduces controllable constraints and robust fault tolerance for the automatic generation of CAD, demonstrating clear application value in fields requiring high-precision geometric compliance, such as intelligent manufacturing and parametric design.