.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MdiActiveDocument

1 REPLY 1
Reply
Message 1 of 2
Anonymous
370 Views, 1 Reply

MdiActiveDocument

for some reason when i type in " acadApp.DocumentManager.MdiActiveDocument.
" my Application choice is not poping up.
i;m not sure what i must add to get it to do so. the rest of my code looks
like this i'm just starting so please be patient.

using System;
using System.Runtime.InteropServices;
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.EditorInput;
using acadApp = Autodesk.AutoCAD.ApplicationServices.Application;
using System.Collections.Generic;
using System.Text;
namespace HelloWorld
{
public class HelloWorld
{
[Autodesk.AutoCAD.Runtime.CommandMethod("HELLO")]
public void HelloCommand()
{
acadApp.DocumentManager.MdiActiveDocument.


I'm assuming that i need to add either a reference or something along those
lines please help.
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

i'm sorry that should be Editor.WriteMessage is what im try to add after
acadApp.DocumentManager.MdiActiveDocument.
thanks and sorry about that.

"richard" wrote in message
news:5546080@discussion.autodesk.com...
for some reason when i type in " acadApp.DocumentManager.MdiActiveDocument.
" my Application choice is not poping up.
i;m not sure what i must add to get it to do so. the rest of my code looks
like this i'm just starting so please be patient.

using System;
using System.Runtime.InteropServices;
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.EditorInput;
using acadApp = Autodesk.AutoCAD.ApplicationServices.Application;
using System.Collections.Generic;
using System.Text;
namespace HelloWorld
{
public class HelloWorld
{
[Autodesk.AutoCAD.Runtime.CommandMethod("HELLO")]
public void HelloCommand()
{
acadApp.DocumentManager.MdiActiveDocument.


I'm assuming that i need to add either a reference or something along those
lines please help.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost