princ equivalent in c-sharp?

princ equivalent in c-sharp?

ganderson
Advocate Advocate
621 Views
4 Replies
Message 1 of 5

princ equivalent in c-sharp?

ganderson
Advocate
Advocate

I'd like to do an equivalent to:

  (princ "All values set successfully") in C-sharp, ie this line appears on the command line when the function completes. Does anyone know or have an example?

                    Thanks,

                            ~Vonnie

0 Likes
622 Views
4 Replies
Replies (4)
Message 2 of 5

_gile
Consultant
Consultant

Hi,

 

Anything wrong with the Editor.WriteMessage() method ?



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 3 of 5

ganderson
Advocate
Advocate

Don't know it. Can you point me to some documentation?

           Thanks,

                     ~Giovonnae

0 Likes
Message 4 of 5

kerry_w_brown
Advisor
Advisor

 


@Anonymous wrote:

Don't know it. Can you point me to some documentation?

           Thanks,

                     ~Giovonnae


 

Do you have arxmgd.chm from the ObjectArx SDK ??

 

or done a Google Search ???


// Called Kerry or kdub in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect. ~ kdub
Sometimes the question is more important than the answer. ~ kdub

NZST UTC+12 : class keyThumper<T> : Lazy<T>;      another  Swamper
0 Likes
Message 5 of 5

kerry_w_brown
Advisor
Advisor

or this , from the AutoCAD DotNet Training Labs

http://usa.autodesk.com/adsk/servlet/index?id=1911627&siteID=123112

 

http://images.autodesk.com/adsk/files/autocad2016_dot_net_training.zip

 

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.Runtime;


namespace Lab1
{
    public class Class1
    {
        [CommandMethod("HelloWorld")]
        public void HelloWorld()
        {
            Editor ed =  Application.DocumentManager.MdiActiveDocument.Editor;
            ed.WriteMessage("Hello World");

        }

    }
}

 

 


// Called Kerry or kdub in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect. ~ kdub
Sometimes the question is more important than the answer. ~ kdub

NZST UTC+12 : class keyThumper<T> : Lazy<T>;      another  Swamper
0 Likes