Balancing speed and executability in interactive text-to-CAD code generation for early-stage parametric CAD ideation
摘要
The demand for Computer-Aided Design (CAD) in industrial product development continues to grow, motivating a shift from traditional graphical interfaces toward automated parametric modeling workflows that support rapid iteration and interactive exploration. In such settings, generation systems must produce executable and geometrically consistent parametric code while maintaining low inference latency. Although non-autoregressive (NAR) generation methods are attractive due to their parallel decoding efficiency, they often struggle with structural validity, geometric consistency, and semantic fidelity when applied to parametric modeling languages. To address these challenges, we propose Para-CADecoder (PCAD), a structure-aware non-autoregressive diffusion system for text-driven parametric CAD code generation, implemented using a script-based three-dimensional modeling library. PCAD integrates a CADQuery-oriented tokenizer that preserves function-level semantics, a structure-aware masking mechanism within the diffusion recovery process, and geometry-aware constraints designed to improve structural consistency and first-pass executability. Experimental results show that PCAD achieves inference speeds 4-8