← RETURN TO RECORDDOWNLOAD PDF ↓

U225X / ENGINEERING UNWARRANTED

VBA Macro Refinement Tips

Public record / CHAT-0396 / Revision EXPORT-03

PUBLIC RECORD
U225X

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.

STATUSRECOVERED / SPECIFIC NOTECLASSIFICATIONSYSMATERIALCHAT EXPORT / BUILD & TOOLSDATE2026.04.07

TECHNICAL NOTES

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

EXTRACTED KNOWLEDGE / HOW-TO FROM CONVERSATION

QUESTION / CONTEXT: I 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.

  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`

SPECIFICATION

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

DEVELOPMENT HISTORY

2026.04.07EXPORT-04Matched to the supplied export; key guidance is surfaced separately and the raw transcript remains unpublished.
U225X PUBLIC RECORD / THIRD-PARTY CREDITS RETAIN THEIR OWN TERMSPUBLIC SUMMARY ↗
Printable / CHAT-0396 / VBA Macro Refinement Tips