U225XTHE RECORD REMAINSSEARCH
← RETURN TO INDEX
RECORD LOCATED / 2026.04.07

VBA Macro Refinement Tips

A conversation-specific public summary of vba macro refinement tips, distilled from the supplied export. The detailed excerpts remain available in the released note file.

CHAT-0396REV EXPORT-03
AI narration using Robert's voice. VBA Macro Refinement Tips / short introduction.
Open notebook ↗
A CLOSER LOOK

A sheet note and a view note have different anchors

A sheet note and a view note have different anchors. A drawing sheet highlights a title block, a selected view and the reserved note zone, with leader lines showing the intended ownership.OPEN FULL SIZE ↗
A drawing sheet highlights a title block, a selected view and the reserved note zone, with leader lines showing the intended ownership.Explanatory drawing based on this record
Title block
Reference the right view/configuration
Notes
Sheet or active-view attachment
Layout
Constrain wrapping to note zone
CLASSIFICATIONSYS
STATUSRECOVERED / SPECIFIC NOTE
MATERIALCHAT EXPORT / BUILD & TOOLS
DISPOSITIONPUBLIC CONVERSATION EXCERPTS / REDACTED
VIEW FILE ↗

TECHNICAL NOTES///

Conversation-specific knowledge extracted from the vba macro refinement tips discussion.

EXTRACTED KNOWLEDGE / HOW-TOFROM CONVERSATION

QUESTION / CONTEXTI have a SolidWorks VBA macro that: - Builds multi-sheet drawings from configurations - Creates process-based sheets (WATER JET, PRESS BRAKE, FINAL PRINT, etc.) - Generates drawing notes per configuration - Uses a drawing template with title block links Current issues: - Sheet title not updating correctly - Notes placement/formatting still slightly off - Extra sheets not deleting reliably - Want notes independent from views (not attached) I already have working code but need refinement, not a rewrite.

IMPORTANT GUIDANCE

  1. Sheet title is being driven by the template/title block, but the sheet isn’t being told which view/config it should pull from.
  2. Notes are being inserted while a view is active/selected, so they end up behaving like they belong to the view.
  3. Unused sheets are being deleted while the sheet list is changing, which makes deletion unreliable.
  4. Note width/wrapping is not being forced after insertion, so long notes keep creeping downward instead of staying in your intended note zone.
  5. Use this pattern after the sheet is created and after the model view for that sheet exists:
  6. Set swSheet = swDraw.GetCurrentSheet
  7. Set swView = swDraw.GetFirstView 'sheet object view
  8. Linked title block note → set `CustomPropertyView`

Extracted from the conversation’s assistant responses and edited for public clarity. See the released note for additional redacted excerpts.

DEVELOPMENT HISTORY///

2026.04.07EXPORT-04

Matched to the supplied export; key guidance is surfaced separately and the raw transcript remains unpublished.

SPECIFICATION///

SourceSupplied ChatGPT export
CategoryBuild & Tools
Conversation23 user turns / 25 assistant turns
Attachments99 references detected
Public detailExtracted knowledge + excerpts

RELEASED MATERIAL///

CHAT-0396-public-note.txtPUBLIC-SAFE CONVERSATION NOTE / UNIQUE FILE
WHERE THIS STANDS

RECOVERED / SPECIFIC NOTE

The record keeps what is known at this revision. Unfinished tests stay unfinished here.
RECORD CHAT-0396DISPOSITION / PUBLIC CONVERSATION EXCERPTS / REDACTEDBUILD 0.4.17