
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Got the error
Compile error:
User-defined type not defined.
Simple enough there, the issue is, the .dvb file was written probably around 2005, and I've been tasked with updating the mess that it is, or at least getting it to function on 2021 AutoCAD.
I am going to assume there are multiple user-defined types not defined, so here's what I've got on the init.
Option Explicit
Public McadApp As McadApplication 'The MDT5 application object
Public AcadApp As AcadApplication 'The AutoCAD application object
Public Symbb As McadSymbolBBMgr 'The Symbol manager
Public TheDrawing As AcadDocument 'The drawing to operate on
Public TheBOM As McadBOM 'The actual reference to the bom
Public TitBlockMaster As clsTitleBlock 'The Title Block
Public LayOutNumActive As Integer 'The last activelayout
'Flag for caring about loading up the bom
Public BOMCare As Boolean
Public MyBomItems As Collection
Public BOMKiller As Boolean 'Flag for seek and destroy a preexisting bom that is not named correctly
Public DWGID As Long 'DB PK
Public SupportPath As String
Public DWGSheets As Collection 'Collection of all the drawings sheets
Public OrigFileName As String
Also heres my current references...
Solved! Go to Solution.