CADTutor Forum » .NET, ObjectARX & VBA
108 FOLLOWERS
The best place for AutoCAD beginners to ask basic questions. This is a forum category dedicated to discussion of the latest topics of .NET, ObjectARX & VBA.
CADTutor Forum » .NET, ObjectARX & VBA
2w ago
Hey all,
New to C# and trying to slowly get my way around.
I can get a variation of my code to work with MDIActiveDocument but what I really want my program to do is allow the user to select a bunch of drawings and then perform some edits to them.
I am just trying to get some text inside of an excel file inputted into the .dwg file.
Here is my retag.cs file
using Autodesk.AutoCAD.Runtime;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
[assembly: CommandClass(typeof(retag.Retag))]
namespace retag ..read more
CADTutor Forum » .NET, ObjectARX & VBA
3w ago
I am using two monitors. I open a separate AutoCAD application for each monitor. When I run a macro via Excel VBA, I can only capture the AutoCAD application that I first opened. I couldn't find a solution to capture the other application as well. Is there any solution? What I want to do is run the macro in the dwg file I selected ..read more
CADTutor Forum » .NET, ObjectARX & VBA
1M ago
uses convertFieldToText
https://help.autodesk.com/view/OARX/2024/ENU/?guid=OARX-RefGuide-AcDbText__convertFieldToText
import traceback
from pyrx_imp import Rx
from pyrx_imp import Ge
from pyrx_imp import Gi
from pyrx_imp import Db
from pyrx_imp import Ap
from pyrx_imp import Ed
from pyrx_imp import Gs
# debug
def PyRxCmd_pydebug() -> None:
import PyRxDebug
PyRxDebug.startListener()
#converts fields to text for seleted refs
def PyRxCmd_fieldnuker5000() -> None:
try:
#modify filter
filter = [(Db.DxfCode.kDxfStart, "INSERT")]
ssres: tuple[Ed.Pro ..read more
CADTutor Forum » .NET, ObjectARX & VBA
1M ago
All,
As we all know, today, Autodesk doesn't use License Managers with there newer software, its online. So after you get the software installed, as an example, lets say we are using AutoCAD Electrical, launch it, it asks you to sign in. You have to put in your email and password. After a successful login, it lets you use the software for about 30 days, then makes you sign in again.
I asked our reseller to speak with Autodesk to find out if its ok to use the API to sign in, and got confirmation that its ok. Has anyone ever done something like this? I ..read more
CADTutor Forum » .NET, ObjectARX & VBA
1M ago
I have UserForm in AutoCad 2006, from which i Draw Polygons, Parcels etc, when I go to another PC, same code, same everything, UserForms just Draw some lines like numbers.
Please also see the attached complete Program.rar.
Please look this: https://shorturl.at/qR345
Program.rar ..read more
CADTutor Forum » .NET, ObjectARX & VBA
1M ago
Hi,
I try to find a dxf files only which is overlapped in multiple dxf files using API. Assist me on this. See the sample dxf.
Sample.dxf ..read more
CADTutor Forum » .NET, ObjectARX & VBA
1M ago
Hi everybody,
is it possible to add controls (for instance "a TextBox") to Autocad Ribbon or Toolbar? If so, how?
I ppreciate in advance any help.
  ..read more
CADTutor Forum » .NET, ObjectARX & VBA
2M ago
Hi everyone,
I'm relatively new to VB and AutoCAD, and I've been trying to incorporate a command line method into my existing code to copy, move, and scale a drawing. However, I've hit a roadblock and would appreciate some guidance.
Every time I try to run the code, I encounter an error stating "acdbmgd.dll not found." From what I understand, this seems to be related to a missing reference or dependency associated with AutoCAD libraries.
Here's the code I've been working on:
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.D ..read more
CADTutor Forum » .NET, ObjectARX & VBA
2M ago
I am building a .NET app for ACAD 2024 and have a question about dependent DLLs. In the Initialize method of my IExtensionApplication app I have this...
public void Initialize()
{
var editor = AcadLib.Instance.Editor;
editor.WriteMessage("\nLoading SuperDuperApp v2024.2... ");
try
{
var executingAssemblyLocation = Assembly.GetExecutingAssembly().Location;
var baseDirectory = Path.GetDirectoryName(executingAssemblyLocation);
editor.WriteMessage("\nSuperDuperApp Support Assemblies ..read more
CADTutor Forum » .NET, ObjectARX & VBA
2M ago
hello everybody
Does anyone have a resource about AutoCAD programming in C language?
  ..read more