Results 1 to 4 of 4

Thread: Error in a sample code ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    100 Club
    Join Date
    2008-04
    Location
    St-Ferdinand, Québec
    Posts
    141
    Login to Give a bone
    0

    Question Error in a sample code ?

    Hi Guys !

    Im realy new to Autocad .NET

    Im using MVS2010 Express and Autocad Architecture 2011

    Im trying a sample in autocad help and I dont know why there are errors ?

    The attached printscreens shows the error in the code below...
    Code:
    Imports Autodesk.AutoCAD.ApplicationServices
    Imports Autodesk.AutoCAD.Runtime
    Imports Autodesk.AutoCAD.Interop
    
    Public Class Class3
        <CommandMethod("PrefsSetCursor")> Public Sub PrefsSetCursor()
    
            '' This example sets the crosshairs of the AutoCAD drawing cursor
            '' to full screen.
    
            '' Access the Preferences object
            Dim acPrefComObj As AcadPreferences = Application.Preferences
    
            '' Use the CursorSize property to set the size of the crosshairs
            acPrefComObj.Display.CursorSize = 100
    
        End Sub
    End Class
    Thanks in advance !
    Attached Images Attached Images

Similar Threads

  1. .Net TRANSMITTALLib Sample Code
    By bernie.snodgrass892799 in forum Dot Net API
    Replies: 6
    Last Post: 2014-01-06, 03:10 PM
  2. Sample code Error
    By r.vetrano in forum Revit - API
    Replies: 2
    Last Post: 2007-07-09, 11:42 AM
  3. Replies: 0
    Last Post: 2006-04-10, 05:38 PM
  4. Replies: 13
    Last Post: 2004-07-29, 11:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •