Editing Multiple Drawings with the Same Program
CADTutor Forum » .NET, ObjectARX & VBA
by
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
Visit website
How to capture two autocad applications?
CADTutor Forum » .NET, ObjectARX & VBA
by
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
Visit website
Convert Fields in blocks to text with Python
CADTutor Forum » .NET, ObjectARX & VBA
by
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
Visit website
Using the API to sign in to AutoCAD Electrical
CADTutor Forum » .NET, ObjectARX & VBA
by
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
Visit website
Changing the computer does not draw the object in AutoCad
CADTutor Forum » .NET, ObjectARX & VBA
by
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
Visit website
To find overlapping entities
CADTutor Forum » .NET, ObjectARX & VBA
by
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
Visit website
Adding userform controls to autocad ribbon/toolbar
CADTutor Forum » .NET, ObjectARX & VBA
by
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
Visit website
Copy Move and Scale in Autocad through VB.net
CADTutor Forum » .NET, ObjectARX & VBA
by
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
Visit website
Reference preloaded dependent dll's
CADTutor Forum » .NET, ObjectARX & VBA
by
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
Visit website
C language
CADTutor Forum » .NET, ObjectARX & VBA
by
2M ago
hello everybody Does anyone have a resource about AutoCAD programming in C language?   ..read more
Visit website

Follow CADTutor Forum » .NET, ObjectARX & VBA on FeedSpot

Continue with Google
Continue with Apple
OR