Friendly and Free AutoCAD Help and Tips

If this is your first visit, be sure to Register




+ Post New Thread
Page 1 of 4 1 2 3 ... LastLast
Threads 1 to 20 of 70

Forum: VBA for Beginners

  1. Book for Beginner

    Been a AutoCAD user for many many years. Would like to start teaching myself VBA for AutoCAD. Can anyone suggest a book for someone who is new to VBA?

    Started by jaytm, 01-04-2010 12:28 PM
    • Replies: 5
    • Views: 428
    07-04-2010 05:24 PM Go to last post
  2. Problem with ThisDrawing.utility. GetPoint

    Hi, I'm trying to get a point input from autocad modelspace in Autocad 2010. I am a little bit bothered because I am certain that I do it right since I copied codes that I used in the past and that worked just fine. So to test it I made it very simple. Public Sub TestGetPoint() Dim...

    Started by MaxVBA, 20-02-2010 10:28 PM
    • Replies: 2
    • Views: 522
    25-02-2010 03:00 AM Go to last post
  3. Talking Info in Userforms

    If I have 2 userforms in the same project, I want to use some data from the first userform to the other userform.... how can I do it ? :banghead3

    Started by mohammediab, 13-09-2009 12:31 PM
    • Replies: 0
    • Views: 653
    13-09-2009 12:31 PM Go to last post
  4. getting 3dSolid Box properties using VBA...

    Hello! The problem is: When i create a Box, then select it and click right mouse button and select properties menu, the window called Propertoes is displayed. This window have information about the box that is selected such as Length, heigh, width and so on... So i need to write VB application...

    Started by 99garry, 22-06-2009 04:51 PM
    • Replies: 6
    • Views: 852
    04-09-2009 11:42 PM Go to last post
  5. Updating title block information on many drawings at once

    I know I might be asking a bit too much: I have VBA experience in Excel, but none in AutoCAD. What I am trying to do is to update title block information on a lot of drawings at once, I attach a sample. It should be relatively straightforward, but to be brutally honest I don't even know how to...

    Started by giotto60, 10-04-2009 02:53 AM
    • Replies: 1
    • Views: 1,113
    10-04-2009 06:18 AM Go to last post
  6. how to write out dxf spline data from excel

    So I have a routine in excel to calculate some curves for some sliding surfaces and have the export to a dxf file working but want to clean the last thing up which is to take all these points and make a spline (right now I have a bunch of line segments from each of the points, works but not...

    Started by michaela, 27-03-2009 04:08 PM
    • Replies: 5
    • Views: 1,434
    27-03-2009 07:24 PM Go to last post
  7. Post region problem

    Dear all Im a new user of Autocad VBA i have aproblem on making region i make code for making lines and arcs and make region for there but it make aproblem " Run-time error13" type mismatch Private Sub CommandButton1_Click() ' declear variabales Const PI = 3.14159265358979 Dim...

    Started by suezglass_apg1, 15-12-2008 10:47 AM
    • Replies: 4
    • Views: 1,163
    18-12-2008 04:49 AM Go to last post
  8. Paper space

    How do i change it from Black to white for a PRESENTATION ? Sobu

    Started by sobu1974, 01-07-2008 09:42 AM
    • Replies: 3
    • Views: 1,345
    02-07-2008 01:31 AM Go to last post
  9. attribute fill in from a FORM

    i have a blockname = stempel_A3 attributes what are in this "block" (stempel_A3) "BK01" "uitgd0" "uitg0" "gec0" "get0" "opm0"

    Started by rthoonsen, 11-10-2007 10:37 AM
    • Replies: 6
    • Views: 1,619
    30-10-2007 10:14 PM Go to last post
  10. viewports displaylocked how ?

    how i can make mine viewport display locked in VBA i try this but nothing happend ? Private Sub AcadDocument_Activate() On Error GoTo err_handler Dim myLayer As AcadLayer Dim myViewport As AcadPViewport Set myLayer = ActiveDocument.Layers.Add("viewport")

    Started by rthoonsen, 09-10-2007 07:21 PM
    2 Pages
    1 2
    • Replies: 11
    • Views: 1,444
    21-10-2007 12:53 AM Go to last post
  11. VB USERFORM Usage

    Subject: Can a person minimize a userform window and continue to use AutoCAD with stopping a CAD VBA program ? CAD version 07 If is use Private Sub CommandButton4_Click() 'UserForm1.Left = 240 'UserForm1.Top = 330 UserForm1.hide End Sub This will stop my program and put me in code...

    Started by muckmail, 13-03-2007 11:03 AM
    • Replies: 2
    • Views: 1,037
    23-07-2007 10:49 AM Go to last post
  12. VB code or Lisp command to make a pagesetup Currrent?

    Is there any VBA code or lisp instruction that can set a pagespace current in a drawing that has a piticular pagespace loaded? Ie (not using a dialog box). Thank you,

    Started by muckmail, 15-02-2007 05:35 PM
    • Replies: 0
    • Views: 810
    15-02-2007 05:35 PM Go to last post
  13. Using AutoCAD 2007 VBA to load & use Page Setups.

    Can VBA be use to load page setups form a template drawing on a fixed drive (Example drive c) then take one of the loaded page setups and make it the default current setup for a drawing. If this could be done maybe it would be possable to set a batch routine that would make a page setup for a...

    Started by muckmail, 24-01-2007 03:57 PM
    • Replies: 5
    • Views: 1,157
    14-02-2007 07:01 PM Go to last post
  14. Subject: Declaring class object in module not a rountine

    I have been using Set classarray = New arraymodule to delcare a class object in a routine but now I want to set my class object for use in a form module or any other place in my project. How do I set my class object? thank you,

    Started by muckmail, 14-02-2007 03:28 PM
    • Replies: 0
    • Views: 788
    14-02-2007 03:28 PM Go to last post
  15. How to Automatically Select Items

    I'm sure I'm missing something fundamental here, but I'm doing my first VBA's. I've done a bit in VB, but I haven't worked with objects inside a program. I've hit a snag, and I can't seem to find what I'm looking for. I want to cycle thru a drawing paperspace and find any viewports. Only one...

    Started by smudgeco, 08-06-2006 12:55 PM
    • Replies: 1
    • Views: 1,202
    28-11-2006 08:50 PM Go to last post
  16. Running a LISP routine from VBA

    My title is kind of misleading. I know how to use SendCommand to run a LISP routine from a VBA program. My problem is that I want the LISP routine to execute and then have additional VBA code run when it's done. The code I have written starts the LISP routine and then continues executing the...

    Started by cheeseed, 21-06-2006 08:02 PM
    • Replies: 1
    • Views: 1,169
    28-11-2006 08:31 PM Go to last post
  17. Get dimensions for take off sheets

    This has probably been asked a dosen times in some variation - but could anyone help me build a function that grabs the dimensions from a poly-line and displays them in a row like: 24 + 18 + 18+ 30 + 21... and then total's the numbers at the end. Also I would like to round each dimension up...

    Started by samohtwerdna, 05-08-2006 03:10 PM
    • Replies: 3
    • Views: 969
    07-09-2006 11:37 AM Go to last post
  18. Pint macro button

    I'm trying to create a tool bar button in 2006 that will plot and use "previous plot style" and then close the file. I have jobs that require me to re-print 30 or more drawings at a time and would like to be able to open them all and then basically just keep pressing one button to print and close...

    Started by keepviper13, 23-05-2006 12:45 PM
    • Replies: 3
    • Views: 1,168
    24-05-2006 10:03 PM Go to last post
  19. TrueColor problem

    I've just upgraded to 2007 from 2006 and one of my programs will not load. I've managed to find the cause, and it is calling a true color (r,g,b). This is the code at Module level.... Option Explicit Global TrueRGB As AcadAcCmColor Public Sub LoadColor() Set TrueRGB =...

    Started by des_ou, 11-04-2006 10:20 PM
    • Replies: 1
    • Views: 1,092
    12-04-2006 02:09 PM Go to last post
  20. timer

    Edited by Eddie...;) (userform1 and textbox1) 'this code for number Public Declare Function SetTimer Lib "user32" (ByVal hWnd As Long, ByVal nIDEvent As Long, ByVal uElapse As Long, ByVal lpTimerFunc As Long) As Long Public Declare Function KillTimer Lib "user32" (ByVal hWnd As Long,...

    Started by nalsur8, 31-01-2005 05:07 AM
    • Replies: 1
    • Views: 1,330
    06-02-2006 02:13 PM Go to last post
 

Thread Display Options

Use this control to limit the display of threads to those newer than the specified time frame.

Allows you to choose the data by which the thread list will be sorted.

Order threads in...

Note: when sorting by date, 'descending order' will show the newest results first.

Icon Legend

Contains unread posts
Contains unread posts
Contains no unread posts
Contains no unread posts
More than 15 replies or 150 views
Hot thread with unread posts
More than 15 replies or 150 views
Hot thread with no unread posts
Closed Thread
Thread is closed
Thread Contains a Message Written By You
You have posted in this thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
 
vBulletin 4.0 skin by CompletevB.com