Autodesk Community » VBA
109 FOLLOWERS
Find answers, share expertise, and connect with your peers. Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
Autodesk Community » VBA
4d ago
I want a Horizontal Curve tool like Civil 3d have. I want to give transition curve(Spiral) and radius between two tangent(LINE) IN AUTOCAD AS A LSP OR VBA OR VLX ..read more
Autodesk Community » VBA
4d ago
Hi,
I have a 2D arrangement drawing in AutoCAD and I am trying to make it 3D by extruding the polylines. I have done this manually but as a research task I am trying to repeat this using VBA code.
My plan is to select the polylines by creating a selection set, then create a region object from this selection set. To then extrude using 'AddExtrudedSolid', which requires a profile as a region.
I cannot find anywhere how to create a region from my selection set and I am wondering if this is even possible?
If anyone has a better way of extruding all the polylines using VB ..read more
Autodesk Community » VBA
4d ago
Dear Sir,
I want to bolt counting by layer, counting only select text (after & before)
Please see the attached file.
Layer Name : BN1 x 1=
Layer Name : BN2 x 2=
Layer Name : BN3 x 3=
Layer Name : BN4 x 4=
Total Quality : = BN1+BN2+BN3+BN4
M16x35mm =
M16x40mm =
M16x45mm =
M16x50mm =
M16x55mm =
4 Thk Washer =
5 Thk Washer =
6 Thk Washer =
8 Thk Washer =
10 Thk Washer =
  ..read more
Autodesk Community » VBA
1w ago
Hi,
I need to find a way of accessing properties of elements in opened AutoCAD pdf document by clicking mouse on it.
E.g. I see a pipe on a document so when I click on that drawing I can retrieve and display properties of that particular pipe. Is there any API or tool suitable for this task? So far I can open and display AutoCAD pdf document with pdf.js library but getting info of underlying elements when clicked is a problem.
thanks ..read more
Autodesk Community » VBA
1w ago
Dear Sir,
Please see the attached error massage used autocad 2020 64bit & help me.
Option Explicit
Dim BNSize(1 To 100) As String
Dim BNQty(1 To 100) As Integer
Dim SS As AcadSelectionSet
'Count BN from layers BN1,BN2,BN4
Sub BNCount()
Dim BoltSize As String
Dim BoltQty As Integer
Dim LayerQty As Integer
Dim Boltstr As Variant 'as Variant because split function return array
SelectBN
If SS.Count = 0 Then
MsgBox "No Valid Bolt Nut Block selected"
Exit Sub
End If
Call FillArray(BNSize, "") 'LIB sub
Call FillArray(BNQty, 0) 'LIB sub
Dim BNBLOCK As Variant
Dim BNAtt As Variant
Dim ..read more
Autodesk Community » VBA
1w ago
Hello, I have a linked excel-Cad program, I have updated with AutocadCivil 3d 2024, but I cannot link it with 2024 and I cannot find the 2024 library "acaxxxenu.tlb"
Sólo hay Map 3d 2024 y no me sirve...
Alguien me puede ayudar por favor ..read more
Autodesk Community » VBA
2w ago
Hi ,
I'm developping an application on Microsoft Excel, Using VBA.
The aim of that application is to deal with Autocad Drawings in order to perform bulk operations.
Is that type of applications ( VBA ) can be deployed on the Autodesk App Store?
Thank you ..read more
Autodesk Community » VBA
2w ago
hi,
could you get a solution for this problem? i have the same problem..
thanks ..read more
Autodesk Community » VBA
3w ago
I wrote a macro that doesn't work as it should. The purpose of the program is to measure length of existing polyline and export this data with coordinates to array. Sections are surrounded by the rectangular border. The result in the form of coordination: coordinates, the length of the polyline elements, the length of the polyline in the rectangular boundary and the total length will be entered into the array. The problem is that after selecting the "Border" option from the prompt command bar, the program is not resetting the Lborder variable to 0 (starting polylinie measurement in next ..read more
Autodesk Community » VBA
3w ago
Hello everybody,
I have a client running a VBA applications using Microsoft DataGrid Control, Microsoft FlexGrid Control and Microsoft ADO Data Control. It's working on 32bits OS. Trying to run it on 64bits OS and AutoCAD 64 bits, these controls completely disappeared from the forms. Even if the OCXs have been added and register. There's no missing references.
Any idea? Are these controls compatibles in 64 bits? I didn't find anything about that on the Web.
Thanks,
Andr ..read more