Boundary point selection command for reactor

Boundary point selection command for reactor

SAPER59
Advocate Advocate
504 Views
7 Replies
Message 1 of 8

Boundary point selection command for reactor

SAPER59
Advocate
Advocate

I hace created a reactor that need to create a new hatch for new boundary point defined when an object is moves or resiszed. The point is that for Boundary I need to run (command "Boundary" ....) and reactor crashes. Is it there any other option to run Boundary like vl-xxx command?

Thanks

0 Likes
505 Views
7 Replies
Replies (7)
Message 2 of 8

ВeekeeCZ
Consultant
Consultant

Try (bpoly)

0 Likes
Message 3 of 8

SAPER59
Advocate
Advocate

The point is that bpoly (at least for what I understand and tested) run inside a lisp, ask the user to pick a point, and I need to use it inside a reactor, so no user define data can be used, all data must be passed , and if I use it as (command "_bpoly" ...) crashes as any (command "xxx"...) function executed inside a reactor. If there's a way to pass  arguments to bpoly, could be, otherwise it can not be used

0 Likes
Message 4 of 8

ВeekeeCZ
Consultant
Consultant

It's kinda versatile function...

 

(progn (setq p (getpoint "point: ")) (bpoly p))

0 Likes
Message 5 of 8

SAPER59
Advocate
Advocate

As I told you this function can not be run inside a reactor, and it doesn't creates a boundary

SAPER59_0-1707003643515.png

AutoCAD gives this error

Must be use something that don't use (command "...") inside the function, thats why I suppose there could be a visual lisp to add boundary as it is for creating other objects like line, lwpolyline, circle, etc.

0 Likes
Message 6 of 8

Sea-Haven
Mentor
Mentor

You need something like this that may work with bpoly no guarantee.

(vla-sendcommand fillet-reactor-acdoc "_.fillet ")
0 Likes
Message 7 of 8

john.uhden
Mentor
Mentor

@Sea-Haven & @SAPER59 ,

After reading the previous posts I was thinking (vla-sendcommand ...) as you mentioned, but I haven't tried it, let alone within a reactor.

Anyway, I'm pretty sure that the BPOLY command is just another name for the BOUNDARY command except that it creates only polylines, not regions as well.

The OP may have to rethink his methodology to create a separate command that does not require a reactor but is easy to invoke, or maybe a reactor that just alerts him to perform the next step(s).

John F. Uhden

0 Likes
Message 8 of 8

Sea-Haven
Mentor
Mentor

"when an object is moves or resiszed" Ok if associated move no probs, resized no probs, if add vertices etc then a lisp select hatch, erase, recreate based on new boundary object. Much easier just run a lisp than spend hours trying to make a reactor work. 

 

What your looking for is an object reactor how many are you going to end up with as you may need to make 1 for every object, reactors not my expertise.

0 Likes