Use this forum to discuss all application interfaces (APIs) other than LISP.
Code posting guidelines
When you are posting AutoLISP or VBA code in these forums, there are some simple guidellines you should observe in order to make life easier for you and for others.
i am trying to create datalinks with VBA so after that i can go to autocad and insert the tables. i've found some information on internet but was no success there.
can anyone show...
I found a VBA code from the internet. Code blocks according to the positioning coordinates in AutoCAD.
code is working but for simple block.
I wanted change for attribute block but I...
Is it possible to place Autodesk reference files (ACMgd.dll, AcCoremgd.dll, etc) into your custom
folder in my net project folder and map it in Visual Studio (C# or VB.net) so a person can move the ...
I'm trying to write a function in VBA that calculates the shortest continuous line that bisects 2 lines and a circle between them. I can calculate the line lengths and the included angle in...
I am trying to write a plug-in which can create a leader (while you are in UCS) with WCS coordinates text. This is what I did so far:
I need to extract Information ("General": Color, etc. and "Geometry": Length, Start Y, End X, etc.") from AutoCAD to an Excel-Sheet using VBA.
First I've tried it manually in AutoCAD...
The following batch loop will work for as far as pulling up a group of drawings and saving them
when the sample routine "public static void AddCircle()" is flagged out. When I try to make drawing...
My target was to do a little routine that creates layouts for the views and sets page setups for these layouts. Name of the page setup is asked from the user before making the layouts and...
I want to create a drawing in memory and then display it as preview, to show the user how the dwg would look. Is it possible?
I need to module 1 to selectionset and module2 to use selection set.
Module1:Public Function CreateSelectionSet1(Optional ssName As String = "ss") As AcadSelectionSet
Dim ss As...
I'm trying to find distance of a specified point on a 3d polyline with "getdistatpoint" function. sometimes it works properly but sometimes it gives einvalidinput error.
I have an excel sheet in which the columns are divided in this way
A = X axis
B = Y axis
C = Z axis
D = Block Name
E = Scale X
F = Scale Y
G = Z Scale
H = rotation angle
I have the statement.
Document acDoc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
in a form routine.
I would like to be able to use acDoc in all my...
I have an electrical load schedule excel format. are there any VBA to automatically create a single line diagram to cad using only the datas from the excel file i have.
I would like to create a load network using slide files (.sld) in C#. This would be displayed in a form. I would like to get some guidance on this. Please help.
I wrote a couple of VB applications a few years ago using VB 2008 express and Acad 2012 if memory serves. I am trying to get back into it using VB 2013 express and Acad 2015, but I am not having much...
I am new here and currently working on a addin related to AutoCAD 2010 prototype.
I am working on modelspace not on Layout or paperspace
I have 3D wireframe drawings which is a block...
hello evryone ,
i'm looking to make a VBA code to get a setected coordinate point (x,y and Z) directly to excel sheet .
thank you for your help :)
I want to select a block inside VBA.
I know the x-y-z coördinates of the insertion point of the block.
I also know the block name.
I can select all the blocks with that name in the...
I need a VBA code for finding the length of a selected line/polyline..
i have the code for selectonscreen
and for length again object.length can be used
but somehow i m not being...
i want a vb.net code in which user selects multiple lines,polyline,etc and using code we get the count of selected entity and its length....
thank you in advance....:):)
Does anyone have example code that saves a current drawing and then closes
AutoCAD documents? I have tryed to use CloseAndDiscard or CloseAndSave and they give
Drawing Busy errors.
I have a spreadsheet that has a userform that starts as soon as the workbook is opened.
When I paste my spreadsheet as a link into autocad it launches that startup form and it causes autocad to...
I want tho create a named rangein excel from autocad.
I can not call the workbook.names.add method and pass the arguments.
This works from within Excel VBA but not from within AutoCad VBA.
Good Day all,
I am using the if statement in VBA: If i < Num then
but the code in the if block executes even though the condition is not met.
Can anyone explain this situation
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.
Conceived, created and cared for by David Watson © 1996–2015