Official Course 23 · 3D Surface & NURBS

Course 23: 3D Surface Modeling — Loft, Sweep, Continuity (G0/G1/G2) & NURBS Patch Workflows

Design aerodynamic transitions, HVAC square-to-round duct adapters, and architectural freeform canopies in GstarCAD 2027 using LOFT, SWEEP, SURFNETWORK, and G1/G2 continuity.

1. Engineering Architecture & Core Methodology

While prismatic mechanical brackets are easily modeled with `EXTRUDE` and `REVOLVE`, industrial sheet-metal transitions (such as a rectangular-to-circular HVAC plenum hood), ergonomic consumer enclosures, and freeform stadium roofs require **3D Procedural & NURBS Surface Modeling**. GstarCAD 2027's ACIS kernel supports both **Procedural Associative Surfaces (`SURFACEMODELINGMODE = 0`)** and **Control-Vertex NURBS Surfaces (`SURFACEMODELINGMODE = 1`)** with `G0` (Position), `G1` (Tangent), and `G2` (Curvature) boundary continuity.

2. Step-by-Step Production Workflow & Command Modules

Module 1: Multi-Section LOFT with Guide Curves & Normal Controls

Run LOFT and select cross-section profiles in sequence (e.g., a `600x400 mm` rectangle at `Z=0` and a `Ø350 mm` circle at `Z=500`). Choose **Guides** to constrain sidewall profiles along 3D splines, or open **Settings** to enforce `Normal to Start and End Cross Sections` so flange collars remain vertical for welding.

Module 2: 3D Helical & Twisted SWEEP Pipelines

Run SWEEP to extrude a closed 2D profile along any 2D/3D path (`HELIX`, `3DPOLY`, or `SPLINE`). Use the **Alignment**, **Base Point**, **Scale** (tapered sweep from `1.0` to `0.6`), and **Twist** (`270°` helical twist) options for screw conveyors, springs, and twisted structural columns.

Module 3: Surface Trimming, Filleting, Patching & Solidification (SURFSCULPT)

Use SURFNETWORK, SURFPATCH (with `G1`/`G2` continuity), SURFTRIM, and SURFFILLET to assemble intersecting surface sheets. Once the surface boundary forms a closed watertight volume, run SURFSCULPT (or `THICKEN`) to convert the surface quilt into a true volumetric `3DSOLID`.

3. Command, Variable & Standard Reference Matrix

Command / Parameter Scope / Target Engineering Behavior & Best Practice
LOFT Cross-Sections + Guides Interpolates smooth 3D solids or surfaces across dissimilar planar/non-planar profiles.
SWEEP Profile + 3D Path Sweeps cross-sections along 3D curves with optional Twist angle and Scale taper.
SURFPATCH / SURFNETWORK G0 / G1 / G2 Continuity Caps open surface loops with Positional (G0), Tangent (G1), or Curvature (G2) smoothness.
SURFSCULPT / THICKEN Surface-to-Solid B-Rep Converts watertight surface quilts or single sheets into volumetric ACIS 3DSOLIDs.

4. Automation Script & Reference Implementation (3D Surface Modeling Setup LISP)

(defun C:SURFINIT ()
  (setvar "SURFACEMODELINGMODE" 0) ;; Procedural associative surface mode
  (setvar "SURFACEASSOCIATIVITY" 1)
  (setvar "SURFU" 12)
  (setvar "SURFV" 12)
  (setvar "FACETRES" 5.0)
  (princ "\n[Course 23] Configured associative procedural surface & ACIS tessellation settings.")
  (princ)
)

5. Production QA Verification & Competency Checklist

  • Keep cross-section vertex counts equal (or align start points) before running `LOFT` to prevent unwanted helical surface twisting.
  • Set `DELOBJ = 0` when experimenting with `LOFT` and `SWEEP` so defining 2D generator curves are retained for parametric edits.
  • Verify watertight closure via `SURFSCULPT` and `MASSPROP` before exporting `.STEP` files for CNC machining.

Enterprise AC1032 Database Internals & Cross-Version Diagnostics

In multi-office engineering environments operating across GstarCAD 2027, GstarCAD Mechanical, GstarCAD Architecture, and legacy AutoCAD (2018–2027) seats, mastering Course 23: 3D Surface Modeling — Loft, Sweep, Continuity (G0/G1/G2) & NURBS Patch Workflows requires understanding how the underlying AC1032 DWG binary database serializes entity handles, symbol table records, and Named Object Dictionary (NOD) pointers.

1. DWG Header & Registry Persistence Scope

Variables and object properties fall into three persistence scopes: Drawing-Saved (DXF Header) variables that travel with the .dwg file to subcontractors, Registry-Saved (Profile .arg) settings that persist per Windows workstation user, and Session-Volatile states that reset on every launch unless locked inside acaddoc.lsp. Always verify persistence scope via SYSVDLG before issuing sheets to an ISO 19650 Common Data Environment (CDE).

2. Multi-Core Regeneration & Memory Hygiene

When processing large civil corridors, dense plant P&IDs, or 50-sheet architectural Xref trees, unpurged Registered Application IDs (REGAPP), orphaned DGN stroke dictionaries, and redundant annotation scales degrade spatial index (INDEXCTL = 3) lookup speed. Executing a pre-submittal AUDIT, command-line -PURGE → Regapps, and OVERKILL pass keeps file open times under 2 seconds on GstarCAD's multi-threaded graphics kernel.

3. Hybrid AutoCAD + GstarCAD Team Coexistence

Because GstarCAD reads and writes native AC1032 binary records without intermediate import/export translation, dynamic block grips, associative hatches, XData payloads (DXF groups 1000–1071), Paper Space viewport layer overrides (VPLAYER), and X.509 digital signatures round-trip losslessly between AutoCAD and GstarCAD seats on shared SMB/BIM cloud folders.

Production Field Verification Protocol (ISO 9001 / ISO 19650 Gate)

  1. Baseline Template Audit: Confirm that the active drawing inherits layer naming, linetype scales (PSLTSCALE = 1, MSLTSCALE = 1, LTSCALE = 1.0), and dimension styles from the enterprise .dwt / .dws standards file via CHECKSTANDARDS.
  2. Coordinate & Unit Integrity: Run -DWGUNITS or check INSUNITS, LUNITS, and MEASUREMENT to guarantee 1:1 metric (`mm`/`m`) or imperial (`in`/`ft`) block and Xref insertion scaling, with OSNAPZ = 1 preventing unintended 3D elevation drift.
  3. Submittal Packaging & Mobile Review: Lock all Paper Space viewports (`DisplayLocked = Yes`), bind or relative-path all external references via ETRANSMIT, and verify final plotted PDF/A lineweights (`ISO full bleed`) alongside DWG FastView mobile cloud markup links.

Related Engineering Guides, Courses & Troubleshooting FAQs

Continue building your CAD engineering mastery with these related GstarCAD Academy technical references:

Practice This Workflow in GstarCAD 2027 Professional

Engineered by Suzhou Gstarsoft Co., Ltd. (SSE: 688657), GstarCAD 2027 delivers 100% native AC1032 DWG compatibility, perpetual licensing, and zero-day AutoCAD parity.

Download Free 30-Day Evaluation → All Official Courses Take Skill Certification Quiz