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

Tony T's CommandLine.vb and Boundary Command

1 REPLY 1
Reply
Message 1 of 2
josephparker
571 Views, 1 Reply

Tony T's CommandLine.vb and Boundary Command

args = New System.Collections.ArrayList
args.Add("-boundary")
apt = New Point2d(pt(0), pt(1)) ' pt is initialised with GetPoint
args.Add("A")
args.Add("O")
args.Add("P")
args.Add(" ")
args.Add(" ")
args.Add(apt)
args.Add(" ")
args.Add(" ")
CommandLine.Cmd(args)

this code wont progress as error Invalid Option Keyword is returned
How do you add a vbCr using Tony's CommandLine.vb
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: josephparker

The conventions are exactly the same as the conventions
used in the LISP (command) function, so you use an empty
string for ENTER.

Try this:

{code}

Dim myPoints(2) As Point3d
myPoints(0) = New Point3d(2, 2, 0)
myPoints(1) = New Point3d(4, 4, 0)

Dim args As New ArrayList()
args.AddRange(New String() {"_-BOUNDARY", "_A", "_O", "_P", ""})
args.AddRange(myPoints)
args.Add("")
CommandLine.Cmd(args)

{code}

--
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:6301559@discussion.autodesk.com...
args = New System.Collections.ArrayList
args.Add("-boundary")
apt = New Point2d(pt(0), pt(1)) ' pt is initialised with GetPoint
args.Add("A")
args.Add("O")
args.Add("P")
args.Add(" ")
args.Add(" ")
args.Add(apt)
args.Add(" ")
args.Add(" ")
CommandLine.Cmd(args)

this code wont progress as error Invalid Option Keyword is returned
How do you add a vbCr using Tony's CommandLine.vb

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