How to use code to achieve the same effect like arx command "flatshot"

How to use code to achieve the same effect like arx command "flatshot"

27925916
Advocate Advocate
875 Views
3 Replies
Message 1 of 4

How to use code to achieve the same effect like arx command "flatshot"

27925916
Advocate
Advocate

How to use code to achieve the same effect like arx command "flatshot",and in addition, the layer of the result lines is the same as before。  because the arx command "flatshot"will make the layer of result lines to "0",like the picture below 

27925916_0-1721232069280.png

27925916_1-1721232081031.png

 

0 Likes
876 Views
3 Replies
Replies (3)
Message 2 of 4

ynapeu
Advocate
Advocate

You can use the AsdkHlrEngine class to do this.

If you have only one AcDb3dSolid you can use the projectOnToSolid method.

0 Likes
Message 3 of 4

27925916
Advocate
Advocate
thanks,I'll give it a try
0 Likes
Message 4 of 4

27925916
Advocate
Advocate

I create two region A and B, and A is above B, but why it doesn't work to use AsdkHlrEngine.  I want the result like picture 3

27925916_0-1723531778203.png

 picture 1

27925916_1-1723531806575.png

picture 2

 

 

 

result I want 

27925916_2-1723531908104.png

Picture 3

 

 

0 Likes