Change Cursor Icon

Change Cursor Icon

mm1452
Enthusiast Enthusiast
910 Views
1 Reply
Message 1 of 2

Change Cursor Icon

mm1452
Enthusiast
Enthusiast

Hi all,

 

when you try to align to elements as an end-user the cursor icon changes.

 

how can I do that on my external application.

 

Thanks.

0 Likes
911 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Document doc = commandData.Application.ActiveUIDocument.Document; UIDocument uidoc = commandData.Application.ActiveUIDocument; ElementSelectionFilter ef = new ElementSelectionFilter(); Selection sel = uidoc.Selection; ReferenceArray refs = new ReferenceArray(); refs.Append(sel.PickObject(ObjectType.Edge, ef,"Please Select Pipe/Duct/CableTray/Conduit")); You can use sel.Pickpoint,sel.pickobject as per your requirement. this will change your cursor as you required.
0 Likes