Load Example |
Using Programming Languages other than VBA
Sub Example_Load() ' This example attempts to load the linetype "CENTER" from ' the acad.lin file. If the linetype already exists, then ' a message is displayed. Dim linetypeName As String linetypeName = "CENTER" ' Load "CENTER" line type from acad.lin file On Error Resume Next ' trap any load errors ThisDrawing.Linetypes.Load linetypeName, "acad.lin" ' If the name already exists, then notify user If Err.Description = "Duplicate record name" Then MsgBox "A line type named '" & linetypeName & "' already exists.", , "Load Example" End If End Sub
Comments? |
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@entercad.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.