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.
P/Invoke acedCmd() function from ObjectARX: http://forums.autodesk.com/t5/NET/acedcommand-function-in-Net-managed-classes/m-p/1332895#M107
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.