Need help understanding Draft_SubelementHighlight command

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
Roy_043
Veteran
Posts: 8409
Joined: Thu Dec 27, 2018 12:28 pm

Need help understanding Draft_SubelementHighlight command

Post by Roy_043 »

Can somebody please explain the Draft_SubelementHighlight command? I do not understand it at all.
Last edited by Roy_043 on Mon Jun 14, 2021 8:26 pm, edited 1 time in total.
carlopav
Veteran
Posts: 2062
Joined: Mon Dec 31, 2018 1:49 pm
Location: Venice, Italy

Re: Need help understanding Draft_SubelementHighlight command

Post by carlopav »

It was introduced by @Moult in 2019 if I can remember correctly. It is supposed to highlight base element of an object to let the user edit it with Draft subElementModifiers.
ex. if you use it on a wall it should highlight the base wire also if it is non visible, so the user can move one of its segments or its points.
follow my experiments on BIM modelling for architecture design
User avatar
Roy_043
Veteran
Posts: 8409
Joined: Thu Dec 27, 2018 12:28 pm

Re: Need help understanding Draft_SubelementHighlight command

Post by Roy_043 »

OK, I select a wall, click Draft_SubelementHighlight, the base wire colors red and its vertices become larger, and then...? Note that at this point the wall is still selected. So calling f.e. Draft_Move would mean moving the wall.
User avatar
Roy_043
Veteran
Posts: 8409
Joined: Thu Dec 27, 2018 12:28 pm

Re: Need help understanding Draft_SubelementHighlight command

Post by Roy_043 »

OK... This is probably the intended workflow:
  1. Select a wall based on a Draft Wire.
  2. Call Draft_SubelementHighlight.
  3. The wire is temporarily made visible in red with larger points.
  4. Click in the 3D view to deselect the wall.
  5. Select one of the points of the wire for example. It will turn green.
  6. Call Draft_Move.
  7. Make sure to check the 'Modify subelements' option.
  8. Move the selected point.
  9. Press Escape to revert the temporary visual changes of the wire.
carlopav
Veteran
Posts: 2062
Joined: Mon Dec 31, 2018 1:49 pm
Location: Venice, Italy

Re: Need help understanding Draft_SubelementHighlight command

Post by carlopav »

Yes, I suppose this Is exactly the intended workflow
follow my experiments on BIM modelling for architecture design
User avatar
Roy_043
Veteran
Posts: 8409
Joined: Thu Dec 27, 2018 12:28 pm

Re: Need help understanding Draft_SubelementHighlight command

Post by Roy_043 »

The command will also highlight Draft objects that do not have a Points property. Subelement mode does not work for those objects:
Draft_Fillet
Draft_Arc
Draft_Arc_3Points
Draft_Circle
Draft_Ellipse
Draft_Rectangle
Draft_Polygon
Draft_ShapeString

Subelement mode only works properly for the start point of the following objects. If you try to move the end point the 2nd point of the object is moved (which is a control point, not the end point):
Draft_BSpline
Draft_CubicBezCurve
Draft_BezCurve
User avatar
Roy_043
Veteran
Posts: 8409
Joined: Thu Dec 27, 2018 12:28 pm

Re: Need help understanding Draft_SubelementHighlight command

Post by Roy_043 »

One issue with the mentioned workflow:
The base wire of the wall (Align=Center) is highlighted and appears in the foreground, but the faces of the wall prevent the selection of the subelements of the wire in most views. Only if the bottom face of the wall is visible can all the wire's subelements be selected.
Post Reply