Settings

Choose language

mark (point,angle,type,length,width)

mark
  • Places a mark at the given point at the given angle. You can choose type of the mark and its length and width, or use text as mark and mention its size.

    Function parameters


  • name of the point, where the mark should be placed
  • angle, at which the mark should be placed
  • (optional) type of the mark from the list, T by default - OR any text
  • (optional) length of the mark, 1 cm by default
  • (optional) width of the mark, 1 cm by default, equals length if omitted for typical marks and is ignored for text marks

    Usage


    If the name of a mark is not set in code, the default name is formed as M_point. You can use mathematical equations, variables, object properties and size constants in syntax.

    mark1=mark(p1,90) // the type of mark is MARK_T, length and width equal 1 cm
    mark2=mark(p1,0,mark_arrow,2,2) // an arrow mark at the center of the point
    mark3=mark(p1,0,”ABC”,2) // a notch and text ABC next to the point

    Please observe the types of mark used in Sewist Pattern Designer and their position against the point. The angle is set to 0 in all the examples below. Length and width are set to equal values.

    MARK_TMARK_ARROWMARK_CIRCLEMARK_SQUARE
    MARK_LOOPMARK_CROSSMARK_DELTAMARK_DASH
    MARK_DIAMONDMARK_ARROWMARK_FOLDMARK_APEX
    MARK_PLEAT_INNERMARK_PLEAT_OUTERMARK_PLEAT_RIGHTMARK_PLEAT_LEFT


    You may also use any text for mark, mentioning it as a string in quotations instead of the mark type. In this case the 4th parameter, length of mark, is understood as text size (see mark3 above). The 5th parameter is then ignored. Sewist Pattern Designer will draw a tiny notch to the point, and the text will be centered against it. In general, special html symbols like the ones below are accepted. Your imagination is the limit!

    ☺ ✽ ✿ ❀ ☼ ☀ ☂ ☃ ❄ ♪ ♫ ♩ ♬ ø ⚇ ⚉ ❅ ϟ ☐ ☒ ✇ ✖ ☟ ✣ ❋ ✦ ✧ ☆ ✪ ✬ ✡ ★ ✴ ✶ ✱ ✲ ♤ ♧ ♡ ♢ ♠ ♣ ♥ ♦ ♔ ♕ ♖ ♗ ♘ ♙ ♚ ♛ ♜ ♝ ♞ ♟ ⚀ ⚁ ⚂ ⚃ ⚄< ⚅ ⚇ ⚑ ⚐
  • Previous article

    sqrt(float)

    Next article

    type (text,point,angle,textsize)