One of the excel­lent new fea­tures in the upcom­ing ver­sion 1.0 release is the addi­tion of “On View Para­me­ters” for many of the tools in the sketch­er work­bench. These are para­me­ter inputs box­es that appear auto­mat­i­cal­ly when you use sketch­er tools mean to add dimen­sions and more as you cre­ate the geometry.

In the default pref­er­ences for ver­sion 1.0 the on view para­me­ters will be avail­able for dimen­sion­al input when you start to draw many objects in sketch­er. As a sim­ple exam­ple let’s draw a rec­tan­gle in a new sketch on the XY plane. Click the “Cre­ate rec­tan­gle” tool icon and left click and drag to begin to cre­ate a rec­tan­gle or square. As you draw you will notice the on view para­me­ter box­es appear. The X axis box will be active so you can type a val­ue for the X axis length of the rec­tan­gle. Type in your val­ue and then click the enter key. The X axis val­ue will be set and the Y axis on view para­me­ter input will now be high­light­ed. Type a val­ue here and then click enter once more to fin­ish your rectangle.

As a sec­ond exam­ple lets cre­ate a cir­cle. Click the “Cre­ate cir­cle by cen­ter” tool. Left click to begin to draw a cir­cle and notice that there is only one on view para­me­ter box into which we can type a val­ue for the diam­e­ter of the cir­cle. Type a val­ue and click enter to com­plete your circle.

Mov­ing beyond sim­ple height, width or diam­e­ter para­me­ters, let’s draw a sin­gle line to look at adding angle val­ues. Click the “Cre­ate line” tool icon and left click to start draw­ing a line. Drag­ging across a line will be cre­at­ed with a length para­me­ter input. Type a val­ue and click enter. The next on view para­me­ter high­light­ed will set the angle of the line rel­a­tive to the start point. Again you can move the line to the desired posi­tion and the para­me­ter will update or you can type in a val­ue in degrees. Note that if you hold down the con­trol key whilst the angle para­me­ter view is high­light­ed you con­strain the move­ment of the angle into 5 degree steps. Click enter to fin­ish the line.

Mov­ing to a slight­ly more com­plex exam­ple we can draw a slot. Click the “Cre­ate slot” tool icon and then left click to begin to draw a slot in the sketch. Notice that there are 2 on view para­me­ter input box­es ini­tial­ly. The first high­light­ed input defines the length of the slot between the radius end cen­tre points. Insert a val­ue for this and press enter. The next active on view para­me­ter is the angle of the slot. You can rotate the slot and see this fig­ure change or of course you can type in a val­ue in degrees. Once you have typed or placed your cor­rect angle hit the enter key again. You now should have a new on view para­me­ter input appear, this input receives a val­ue for the radius of the slot ends, which obvi­ous­ly sets the width of the slot, again move the slot object to the val­ue you require or type a val­ue and press enter to fin­ish your slot.

With a lit­tle prac­tice it becomes sec­ond nature to cycle through the on view para­me­ters as you sketch but it’s also worth know­ing that you can turn off these on view para­me­ters or indeed you can expand on their func­tion­al­i­ty using the sketch­er work­bench pref­er­ences. Click “Edit – Pref­er­ences” and then select the “Sketch­er” tab from the list. At the bot­tom of the result­ing win­dow you should see a “Tool Para­me­ters” sec­tion with an “on-view-para­me­ters” drop down avail­able. Click­ing on the drop down reveals 3 options. Select­ing “None” allows you to turn off this fea­ture and you can revert to adding dimen­sions and val­ues using oth­er meth­ods. The default option “Dimen­sions only” is the set­ting we have used so far but we can switch to “Posi­tion and dimen­sions”. Select­ing “Posi­tions and dimen­sions” expands the on view para­me­ters to include co-ordi­nate data.

If we apply this option and draw a rec­tan­gle notice that when you select the tool, before you click to start a rec­tan­gle, you have on view para­me­ters for the co-ordi­nates of the start point. Again you can type in the X co-ordi­nate of the start point, click enter and move to the Y co-ordi­nate. Press­ing enter after the Y co-ordi­nate you then start to draw a rec­tan­gle with the on view para­me­ters for the length and height as we did ear­li­er. Com­plet­ing these para­me­ters we should then have a ful­ly con­strained rec­tan­gle in our sketch.


Discover more from FreeCAD News

Subscribe to get the latest posts sent to your email.

8 responses to “Tutorial: On View Parameters”

  1. AVTech Engineering LLC Avatar
    AVTech Engineering LLC

    Great work; keep it com­ing, team!

  2. Plaid Phantom Avatar
    Plaid Phantom

    Will these work with expres­sions as well?

    1. Jo Hinchliffe Avatar
      Jo Hinchliffe

      This might be a bet­ter dis­cus­sion for the forum, but I’ve found that sim­ple maths expres­sions are work­ing well for dimen­sions. For more com­plex expres­sions such as those ref­er­enc­ing alias/spreadsheet cells the funtion/expression edi­tor is still avail­able ‑jo

  3. Jens Avatar
    Jens

    I like this func­tion but i think it is not easy to use. If i dras a rek­tan­gel and give one val­ue the rek­tan­gel is not ”lock­et”. Try­ing to click the oth­er box for giv­ing them also a val­ue change val­ue 1 …. And so on.
    Despite this are those val­ue­box­es hard to hit.

    1. Jo Hinchliffe Avatar
      Jo Hinchliffe

      Hi Jens, sor­ry to hear you are hav­ing trou­bles. Note that you tend not to click the box­es in the tuto­r­i­al rather use the enter key or the tab key to move between them in order. Also I guess, if they aren’t use­ful to you, you can turn them off in the pref­er­ences dia­logue as dis­cussed in the tutorial. 

      1. Thovthe Avatar
        Thovthe

        I believe they’re talk­ing about chang­ing the orig­i­nal dimen­sion by mov­ing the mouse after enter­ing the dimension.

      2. Jens Avatar
        Jens

        The idear to use keys for nav­i­ga­tion make it easyi­er to use them. But i think that theire is room for improv­ments by sim­ply lok­ing the val­ue if you entered one. It is just the attemptm­to­muse the mouse for enter­ing a val­ue in the oth­erone that make it confusing. 

        That a val­ue that you give locks till you indi­cate by click­ing it again is for me stan­dart in many appli­ca­tions and i see no advan­tage in not doing that.

  4. […] and the week­ly devel­op­er ver­sions of FreeCAD. The recent tuto­ri­als include the On View Para­me­ter fea­tures in the Sketch­er work­bench and the new Assembly […]

Discover more from FreeCAD News

Subscribe now to keep reading and get access to the full archive.

Continue reading