Jump to content

Search the Community

Showing results for tags 'vba array'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • CADTutor
    • News, Announcements & FAQ
    • Feedback
  • AutoCAD
    • AutoCAD Beginners' Area
    • AutoCAD 2D Drafting, Object Properties & Interface
    • AutoCAD Drawing Management & Output
    • AutoCAD 3D Modelling & Rendering
    • AutoCAD Vertical Products
    • AutoCAD LT
    • CAD Management
    • AutoCAD Bugs, Error Messages & Quirks
    • AutoCAD General
    • AutoCAD Blogs
  • AutoCAD Customization
    • The CUI, Hatches, Linetypes, Scripts & Macros
    • AutoLISP, Visual LISP & DCL
    • .NET, ObjectARX & VBA
    • Application Beta Testing
    • Application Archive
  • Other Autodesk Products
    • Autodesk 3ds Max
    • Autodesk Revit
    • Autodesk Inventor
    • Autodesk Software General
  • Other CAD Products
    • BricsCAD
    • SketchUp
    • Rhino
    • SolidWorks
    • MicroStation
    • Design Software
    • Catch All
  • Resources
    • Tutorials & Tips'n'Tricks
    • AutoCAD Museum
    • Blocks, Images, Models & Materials
    • Useful Links
  • Community
    • Introduce Yourself
    • Showcase
    • Work In Progress
    • Jobs & Training
    • Chat
    • Competitions

Categories

  • Programs and Scripts
  • 2D AutoCAD Blocks
  • 3D AutoCAD Blocks
  • Images
    • Backgrounds

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 1 result

  1. I was looking at the "VBA and Excel" program on the AfraLisp website and I am trying to code my own application which is based on it. I had a question on this portion of code [color="red"]Private Sub UserForm_Initialize() Dim BlkG(0) As Integer Dim TheBlock(0) As Variant Dim Pt1(0 To 2) As Double Dim Pt2(0 To 2) As Double 'declare local variables Set acad = GetObject(, "AutoCAD.Application") 'set reference to AutoCAD Set doc = acad.ActiveDocument 'set reference to the drawing Set ms = doc.ModelSpace 'set reference to model space Set ssnew = doc.SelectionSets.Add("TBLK") 'create a selection set Pt1(0) = 0: Pt1(1) = 0: Pt1(2) = 0 Pt2(0) = 3: Pt2(1) = 3: Pt2(2) = 0 'set up the array BlkG(0) = 2 'group code 2 for block name TheBlock(0) = "MATLIST" 'the name of the attribute block ssnew.Select 5, Pt1, Pt2, BlkG, TheBlock 'get the block [/color] What is the array for? (Pt1(0), Pt1(0) .. etc)
×
×
  • Create New...