boundary acad 2025

boundary acad 2025

martin_leiter
Advocate Advocate
488 Views
6 Replies
Message 1 of 7

boundary acad 2025

martin_leiter
Advocate
Advocate

Hello,
I have installed Acad 2025 German.
Can someone help me why the following Lisp no longer works properly?
The islands within the boundary are also recognized. However, they should be ignored.

 

(defun c:umgrxlinien (/ AWS)
(if(setq AWS(ssget "X"
'( (-4 . "<OR")
(0 . "XLINE")
(0 . "Ray")
(-4 . "OR>")
)
))
(command "-umgrenzung" "o" "U" "N" AWS "" "" "_non" Pause)
)
(princ)

)

0 Likes
489 Views
6 Replies
Replies (6)
Message 2 of 7

Kent1Cooper
Consultant
Consultant

Tell us what those option letters stand for in the German version.

 

By the way, you can have (ssget) search for multiple object types together, without the (-4 . "<OR") thing, with object types separated by commas:

(if (setq AWS (ssget "X" '((0 . "XLINE,RAY"))))
  (command ....

Kent Cooper, AIA
0 Likes
Message 3 of 7

martin_leiter
Advocate
Advocate

Hello,
It works again if I change the system variable: HPISLANDDETECTION to 2 and HPISLANDDETECTIONMODE to 0.
Hello Kent1, this is the normal acad command for delimitation in German
Thanks

0 Likes
Message 4 of 7

Kent1Cooper
Consultant
Consultant

@martin_leiter wrote:

....this is the normal acad command for delimitation in German


Yes, but we non-German-speakers don't know what the option abbreviations "o" and "U" and "N" stand for in German, to compare with the same options in whatever language version we have.

Kent Cooper, AIA
0 Likes
Message 5 of 7

martin_leiter
Advocate
Advocate

I'm sorry for the confusion Kent1
Thanks for your help

0 Likes
Message 6 of 7

EnM4st3r
Advocate
Advocate

-umgrenzung = boundary
"o" = Advanced Options
"U" = boundary set
"N" = new

so its the same as:

(command "_-boundary" "_a" "_b" "_n" AWS "" "" "_non" pause)

 

Message 7 of 7

martin_leiter
Advocate
Advocate

Hello,
Now I still have the problem with the boundary. If no object touches the boundaries of xline, it works as it should.
But if an object crosses an xline then the object is recognized as an island and not the xline as a boundary.
The strange thing is when I do it with the acad standard command with a dialog box then the xline is recognized as a boundary and the object is the xline
cuts is not recognized as an island.
As I said, the island detection is evaluated differently by acad 2025 in Lisp than in the internal acad command with dialog box
Is there a way to write Lisp differently so that only the xlines are recognized as boundaries?
Please help
Thanks!

0 Likes