the routine shown below used to work on 6.1 and before but now when it is ran for the 2nd time it causes a lock-up and stops responding on the first linetypes.load line.
The error trapping is for the correctly generated error in 6.1 and before to let you know that the linetype is already loaded. removing the error trapping makes no difference.
any help on why this is happening would be appreciated.
=========================
Public Sub DefineBlocks()
On Error Resume Next
IntelliCAD.ActiveDocument.Linetypes.Load "BORDER", "ECADISO.LIN"
IntelliCAD.ActiveDocument.Linetypes.Load "CENTER", "ECADISO.LIN"
IntelliCAD.ActiveDocument.Linetypes.Load "DASHED", "ECADISO.LIN"
IntelliCAD.ActiveDocument.Linetypes.Load "DIVIDE", "ECADISO.LIN"
IntelliCAD.ActiveDocument.Linetypes.Load "DOT", "ECADISO.LIN"
IntelliCAD.ActiveDocument.Linetypes.Load "HIDDEN", "ECADISO.LIN"
IntelliCAD.ActiveDocument.Linetypes.Load "PHANTOM", "ECADISO.LIN"
IntelliCAD.ActiveDocument.Linetypes.Load "BATTING", "ECADISO.LIN"
IntelliCAD.ActiveDocument.Linetypes.Load "ZIGZAG", "ECADISO.LIN"
IntelliCAD.ActiveDocument.Linetypes.Load "TRACKS", "ECADISO.LIN"
IntelliCAD.ActiveDocument.Linetypes.Load "ACAD_ISO04W100", "ECADISO.LIN"
On Error Goto 0
End Sub
======================================
Loading Linetypes in intellicad 6.2
Moderator: CMS Inc
- CMS IntelliCAD
- - FAQ - Frequently Asked Questions
- - General
- - AutoLisp/SDS
- - VBA, . NET & IRX
- - - FAQ
- - New User
- - Small Business
- - Realistic Rendering
- - Bonus
- - Free CAD .DWG Blocks
- - License Management
- - Store, Accounts and Purchases
- - Academic
- QuoteCAD Manufacturing
- - General
- - Quotation and Manufacturing
- - Database Manager
- - License Management
- ETOOLBOX CAD Viewer
- - General
- - License management