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

unit two AcDb3dSolids with ARX

1 REPLY 1
Reply
Message 1 of 2
Anonymous
235 Views, 1 Reply

unit two AcDb3dSolids with ARX

Hello there,

in the ObjectArx Reference I found no "ARX-Way" (Memberfunctions of
AcDb3dSolid or its base classes) similar to the 3DAcadcommands:
unit,subtract and intersect. Of course I could use AcEdcommand but I want to
make it with ARX.

thanks a lot

Bernd
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

Dear Bernd,

You can use AcDb3dSolid::booleanOper to do this:

virtual Acad::ErrorStatus booleanOper(AcDb::BoolOperType operation,
AcDb3dSolid* pSolid);

operation Input type of Boolean operation
pSolid Input pointer to other solid with which to carry out the Boolean
operation

Performs Boolean operation between this solid and pSolid. Possible operation
types are:
AcDb::kBoolUnite
AcDb::kBoolIntersect
AcDb::kBoolSubtract
If the Boolean operation is successful, then pSolid's ACIS object is
deleted, Acad::eOk is returned, and the ACIS object's isNull() method will
return Adesk::kTrue.
If pSolid is NULL, then Acad::eInvalidInput is returned.
If the Boolean operation between the two solids fails, then the ACIS objects
of both solids are deleted and Acad::eGeneralModelingFailure is returned.

I hope this help!

Bill


"Bernd Willinger" wrote in message
news:83D50A2B2013817AE3F09704001B1C21@in.WebX.maYIadrTaRb...
> Hello there,
>
> in the ObjectArx Reference I found no "ARX-Way" (Memberfunctions of
> AcDb3dSolid or its base classes) similar to the 3DAcadcommands:
> unit,subtract and intersect. Of course I could use AcEdcommand but I want
to
> make it with ARX.
>
> thanks a lot
>
> Bernd
>
>
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost