.NET

Reply
Active Contributor
Posts: 48
Registered: ‎09-08-2006
Message 1 of 2 (154 Views)

Displaying AutoCAD 'Materials' dialog box

154 Views, 1 Replies
01-21-2012 03:09 PM

Hi,

 

To save writing my own "Create Material" form I though I would try the line below.

 

 acDoc.SendStringToExecute("Materials ", True, False, True)

 

However, when called from my form, the command does not execute till I end my command (I'm inside a form called from another form and the command doesn't execute till both forms are closed)

 

There has to be a better way of doing this, so I can leave my forms running.

 

 

 

 

Regards

Laurie Comerford
Moderator
Alexander.Rivilis
Posts: 1,346
Registered: ‎04-09-2008
Message 2 of 2 (136 Views)

Re: Displaying AutoCAD 'Materials' dialog box

01-22-2012 02:51 AM in reply to: laurie.comerford

P/Invoke acedCmd() function from ObjectARX: http://forums.autodesk.com/t5/NET/acedcommand-function-in-Net-managed-classes/m-p/1332895#M107


Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и Give Kudos!Баллы
Please remember to Accept Solution! Accept as Solution and Give Kudos!Kudos

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community