Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

gray out entities

fehrsZBFB9
Advocate

gray out entities

fehrsZBFB9
Advocate
Advocate

Hallo Guys,

I have a custom drag operation based on the AcEdJig class. It works fine so far.

The dragged object is shown dimmed in its original position while the operation is active.

I use transparency for the dimming. I compared this to AutoCAD commands. For example MOVE. The original object is grayed out. But in a smart way. Its color depends on the current background color. I would like to do the same instead of using transparency because transparency can be turned off.

Do you know of an easy way to achieve this?

 

Thanks in advance,

Martin

0 Likes
Reply
461 Views
2 Replies
Replies (2)

tbrammer
Advisor
Advisor

Try this:

AcEdDragStyle::StyleType styleTypeForOriginal = AcEdDragStyle::kTransparent75;
AcEdDragStyle::StyleType styleTypeForDragged = AcEdDragStyle::kNone;
AcEdDragStyle myDragStyle( styleTypeForOriginal, styleTypeForDragged );

AcEdJig *jig = ... // Your jig
DragStatus stat = jig->drag(myDragStyle);

See  class AcEdDragStyle and enum AcEdDragStyle::StyleType.


Thomas Brammer ● Software Developer ● imos AGLinkedIn
If an answer solves your problem please [ACCEPT SOLUTION]. Otherwise explain why not.

0 Likes

fehrsZBFB9
Advocate
Advocate

Sadly I had no success using this. I tried! Its refering to an original Entity. But There was no original entity visible no matter which settings I used. I always saw only the dragged entity. My entity is a blockreference.

0 Likes