Author Topic: Constant Length Line using SETATREF Functions  (Read 6111 times)

0 Members and 1 Guest are viewing this topic.

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Constant Length Line using SETATREF Functions
« on: January 12, 2016, 10:45:36 PM »
I found SETATREF function can create Constant Length Line in a same manner as Angled Line.
The formulas are almost similar as Angle Line.

EndX = SETATREF(User.DeltaX,SETATREFEVAL(PNTX((SETATREFEXPR()))-BeginX))*0+BeginX+Prop.Length*User.cos
EndY = SETATREF(User.DeltaY,SETATREFEVAL(PNTY(SETATREFEXPR())-BeginY))*0+BeginY+Prop.Length*User.sin

But the behavior of the shapes are somewhat different from old constant line using SETF functions.
« Last Edit: January 13, 2016, 05:00:35 AM by JuneTheSecond »
Best Regards,

Junichi Yoda
http://june.minibird.jp/