Message 1 of 35

Not applicable
10-13-2017
10:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All
I am trying to use the below macro to draw a line with 3 segments that connects two points, the middle segment runs parrallel and offset to the points and the first and third segments join to each point at either end . The points are of a variable distance. My idea is redefine the ucs along the vector of the points and then select the second point(block) to define LASTPOINT then use the userr1-5 variables to draw the desired polyline but its not quiet working out.
^C^CUCS;\\;SELECT;SI;\setvar;USERR1;$M=$(index,0,$(GETVAR,LASTPOINT));setvar;USERR4;1.156;setvar;USERR3;$(-,$(getvar,USERR2)(,$(getvar,USERR4));PLINE;0,0;@0,1.156;@0,$(GETENV,USERR3);@0,-1.156;
Hopefully someone can advise as to my mistakes and help me learn a bit more.
Regards
I am trying to use the below macro to draw a line with 3 segments that connects two points, the middle segment runs parrallel and offset to the points and the first and third segments join to each point at either end . The points are of a variable distance. My idea is redefine the ucs along the vector of the points and then select the second point(block) to define LASTPOINT then use the userr1-5 variables to draw the desired polyline but its not quiet working out.
^C^CUCS;\\;SELECT;SI;\setvar;USERR1;$M=$(index,0,$(GETVAR,LASTPOINT));setvar;USERR4;1.156;setvar;USERR3;$(-,$(getvar,USERR2)(,$(getvar,USERR4));PLINE;0,0;@0,1.156;@0,$(GETENV,USERR3);@0,-1.156;
Hopefully someone can advise as to my mistakes and help me learn a bit more.
Regards
Solved! Go to Solution.