TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: zoltan on September 02, 2008, 08:08:51 PM
-
I'm about to pull my hair out!
A search has revealed that people have been using the BPOLY function in two ways:
(BPOLY pnt) to specify a point
and
(BPOLY pnt ss) to specify a point and a boundary set.
But when I try the later in AutoCAD 2008, i get:
(pnt is a point and ss is a selection set)
Command: (bpoly pnt ss)
Invalid option keyword.
nil
Specify internal point or [Advanced options]: *Cancel*
What is the correct arguments to BPLOY to specify the boundary set, the object type and the island detection?
-
(bpoly pt [ss] [vector])
where vector was/is any of this: (setq vector (list '(1 0) '(0 1) '(-1 0) '(0 -1))) ;; ray casting
there was also this function for error control: (bherrs) returns T if was no error found
The island detection as far as I know never was introduced as part of the function bpoly it is in the bhatch - if I recall - and don't remember the arguments for bhatch or the old ads c:bhatch.
nor as part of bhatch, bhatch uses the same arguments as bpoly too.
All the bpoly and bhatch function info, can be found in the R12 customization book, btw.
The info above, it is what I remember..... might be wrong.
-
Thanks for the insight, LE. it just so happens that I have an R12 set of manuals at my disposal! I will report back when I have dug them out of the attic.
-
I was able to do some tests here, using AutoCAD 2007
In order to work it requires a vector, that's why it is calling the boundary command.
Change your code to:
(bpoly pt ss '(1 0))
vector - ray casting
'(1 0)
'(0 1)
'(-1 0)
'(0 -1)
or any other '(2 5), etc.
-
I was able to do some tests here, using AutoCAD 2007
In order to work it requires a vector, that's why it is calling the boundary command.
Change your code to:
(bpoly pt ss '(1 0))
vector - ray casting
'(1 0)
'(0 1)
'(-1 0)
'(0 -1)
or any other '(2 5), etc.
Dear Sir,
When I use boply like (bpoly pt ss '(1 0)) , the below words appears in command line.Why?
Invalid option keyword.