If your form is running in AutoCAD (is it?) then you don't
use the command line to create a new layer, you create
a new LayerTableRecord and add it to the LayerTable.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010
http://www.acadxtabs.com
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
wrote in message news:6337479@discussion.autodesk.com...
Hey Everyone,
I've done a bunch of c# programming with autocad, but so far it has been with
dll's for simple things using netload. I've been requested to come up with a
layer naming 'app' to keep the layer names standard in the company. They want
to type a command (cl=createlayer) in autocad, and have a window with some
dropdown boxes (conboboxes) pop up. The dropdowns will be populated with
abbreviations they can use to name the layers. The user will pick 3 or 4 of
these drop downs, click submit and have a layer created with that name. I've
already created the window with the dropdowns, and have the comboboxes
populated, they select the items, and a layer name is created, i just can't
figure out create the layer with this name from the Windows Form.
I've done a lot of looking around on google, and I can't seem to find a way to
send a command from a windows form to the ACAD2010 command line.
Am I going about this the right way? Any information would be really
appreciated.
Thanks a lot,
Greg