Once upon a time the Entity.Selected property

Was this article helpful?
0 out of 0 found this helpful

Comments

7 comments
Date Votes
  • I Try to select a single edge within a composite curve.

    Is there any way to do this, or do I have to add each sub element from the composition curve one by one to the view port?

    0
  • Hi Stefan,

    Sub-item selection on composite curves is not supported, sorry.

    0
  • Hi,

       how to get normal vector of selectedFace?

    0
  • If you are talking about Brep.Face, you simply need to check if the Brep.Face.Surface is a PlanarSurf type and if it is, check the Plane Z axis.

    0
  • Hi Alberto

    If I set Entity.SetSelection(status, Stack<BlockReference> parents = null) the SelectionChanged of the workspace/design is never triggered?

    I have tried different types of assemblySelectionType enum and other selection enums combinations, but the SelectionChanged event is never triggered from code?

    Also not in the AssemblyDemo ?

    How can I manually change selection from code (tree view), so its basically the same as the user click in the view, and the SelectionChanged event is raised?

     

     

    1
  • Hi Alberto,

    I've got exactly the same problem as Guido van Hilst. The SelectionChanged event is never triggered when using  Entity.SetSelection.  Any update on this?

    Thx in advance.

    0
  • This is by design, there is no reason to raise an event for a method you are calling by yourself. Instead of subscribing to the event, just directly call the event handler method.

    0

Please sign in to leave a comment.

Articles in this section