ModelSpace on Autocad 2004DX

ModelSpace on Autocad 2004DX

Anonymous
Not applicable
248 Views
1 Reply
Message 1 of 2

ModelSpace on Autocad 2004DX

Anonymous
Not applicable
I have a VB.Net 2003 application I wrote that is giving me an error when using the ModelSpace property. I have MS defined as AutoCAD.AcadModelSpace and DOC as AutoCAD.AcadDocument. When the line: MS = DOC.ModelSpace is called I get an error: Error loading type libary/DLL at AutoCAD.AcadDocumentClass.get_ModelSpace() The strange part is it works prefectly under Autocad 2004, but not Autocad 2004DX Mechanical. Any ideas on what I'm doing wrong? Thanks, Chris
0 Likes
249 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Try:

Set MS = DOC.Blocks("*MODEL_SPACE")
0 Likes