<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Point Check in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12171881#M25716</link>
    <description>&lt;P&gt;Ok, I'm going to try and describe my question again.&lt;BR /&gt;The 3Dpolyline is created using the Create line by point object. These point objects will eventually create a list (COGOLIST).&lt;BR /&gt;I select the 3Dpolyline and create a list (PLIST) of all the coordinates of the veriticies.&lt;BR /&gt;With this list I create a fence that selects all the cogopoints that make up this line and create a list (COGOLIST).&lt;BR /&gt;All the points in this list are put into a points group of a name selected by the user.&lt;BR /&gt;IF all the verticies have a cogopoint connected to it, all is fine.&lt;BR /&gt;But, in the creating the line, the designer may create a vertex where there is no point, or,&lt;BR /&gt;he may miss the point and move on to the next one.&lt;BR /&gt;If the vertex has no point attached that is easy to locate, If member of PLIST is not a member of COGOLIST, draw a circle at the vertex&lt;BR /&gt;If the point is not connected to a vertex, it locates the point, if member of COGOLIST is not a member of PLIST, draw a circle at the point&lt;BR /&gt;But, and here is the issue:&lt;BR /&gt;If the point node does not reside at the vertex the routine will pickit up, IF the point label crosses over the 3DPolyline.&lt;BR /&gt;If, as in the snippet posted above, none of the point or its label touches the 3DPolyline, it is not selected with the fence method and is not detected.&lt;BR /&gt;In that case, the COGOLIST to PLIST does not succeed.&lt;BR /&gt;I was considering creating another list, (COGOCHK), perhaps by crossing window to pickup all the points, then run a comparison between&lt;BR /&gt;it and COGOLIST, but I'm looking for other suggestions.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2023 12:12:45 GMT</pubDate>
    <dc:creator>johnd</dc:creator>
    <dc:date>2023-08-15T12:12:45Z</dc:date>
    <item>
      <title>Point Check</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12169767#M25704</link>
      <description>&lt;P&gt;Looking for suggestions:&lt;/P&gt;&lt;P&gt;I have a routine that creates a points group from cogo points that are used to make up a 3Dpolyline. You select the 3D polyline and it ask for a group name then using the "f" selection made up from vertex list (PLIST) it creates a group with all the points that make up the line. Since the points are what make up the line they are being selected and put in the group.&lt;/P&gt;&lt;P&gt;Two lists are created during the routine: Plist (verticies on 3Dline) and Cogolist (points on 3Dline)&lt;/P&gt;&lt;P&gt;I have added a subroutine to check to make sure that each vertex has a point. It compares the two lists and draws a circle at the vertex that does not have a point attached to it. This works well.&lt;/P&gt;&lt;P&gt;I use a similar routine to check if a point is connected to the 3D line. It's supposed to draw a circle at the node of the point that does not have a connection to a vertex on the 3Dline.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works, but only if the point is actually crossing the 3Dline. But, if it does not at least cross the 3D line the point is not selected and the comparison is ignored. So, if the point is below or above the line, no circle.&lt;/P&gt;&lt;P&gt;I'm looking for a way to put a circle on the point that does not reside in the Cogolist but is close to a vertex on the 3Dline.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't need code, just ideas.&lt;/P&gt;&lt;P&gt;Hope I explained that well enough.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 14:08:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12169767#M25704</guid>
      <dc:creator>johnd</dc:creator>
      <dc:date>2023-08-14T14:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Point Check</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12169821#M25705</link>
      <description>&lt;P&gt;Check whether the distance from the Point to the closest place to it on the Path is zero.&amp;nbsp; Given the Point's coordinates list as location, and the Path object as either entity name or VLA object:&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#000000"&gt;(if (not (equal (distance ThePoint (vlax-curve-getClosestPointTo ThePath ThePoint)) 0 1e-4))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;then the Point is not on the Path.&amp;nbsp; The 4 is arbitrary -- increase for greater exactly-on precision.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp; Come to think of it, that would "pass" a Point that is &lt;EM&gt;actually on&lt;/EM&gt; the Path but &lt;EM&gt;not at a vertex&lt;/EM&gt;.&amp;nbsp; If that should be flagged, use&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#000000"&gt; (vlax-curve-getParamAtPoint) &lt;/FONT&gt;&lt;/STRONG&gt;to check whether the parameter value on the Path, where the Point is, &lt;EM&gt;is a whole number&lt;/EM&gt;, which would mean it's at a vertex.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 14:33:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12169821#M25705</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-08-14T14:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Point Check</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12169890#M25706</link>
      <description>&lt;P&gt;I think I follow your logic, but I'm missing something. If the point is not connected or the node (or label) does not cross the path it is not selected and placed in the list. If not in the list how is it identified to run your suggestion.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 14:55:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12169890#M25706</guid>
      <dc:creator>johnd</dc:creator>
      <dc:date>2023-08-14T14:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Point Check</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12169932#M25707</link>
      <description>&lt;P&gt;I think I misunderstood part of the original.&amp;nbsp; You presumably have the "points group" early in the description in Message 1, so go through those.&amp;nbsp; Or, are there more than one set of Points / 3DPolyline in the drawing?&amp;nbsp; If only one set, you should be able to grab &lt;EM&gt;all&lt;/EM&gt; Points and run the check(s) on them.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 15:18:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12169932#M25707</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-08-14T15:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Point Check</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12169935#M25708</link>
      <description>&lt;P&gt;There is only one 3D line and (at this time) only the points that make up the 3D line. the circled point being the problem&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johnd_0-1692026370128.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1253051iDC7349A321392E77/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johnd_0-1692026370128.png" alt="johnd_0-1692026370128.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 15:19:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12169935#M25708</guid>
      <dc:creator>johnd</dc:creator>
      <dc:date>2023-08-14T15:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Point Check</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12169939#M25709</link>
      <description>&lt;P&gt;So you are suggesting I make another selection set&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 15:22:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12169939#M25709</guid>
      <dc:creator>johnd</dc:creator>
      <dc:date>2023-08-14T15:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Point Check</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12169963#M25710</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2936266"&gt;@johnd&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;So you are suggesting I make another selection set&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Don't you already have it?&amp;nbsp; In what form do you have the "...&lt;SPAN&gt;&amp;nbsp;cogo points that are used to make up a 3Dpolyline"?&amp;nbsp; Whether it's a list or a selection set, you can remove everything in the set found by Fence selection from that, and see what's left.&amp;nbsp; If it's something else, is it in a form that can be made into a list or a selection set?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 15:36:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12169963#M25710</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-08-14T15:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Point Check</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12169990#M25711</link>
      <description>&lt;P&gt;this may be where I'm getting lost. the points that make up the list COGOLIST are selected by the fence made by the list of verticies (Plist) on the 3Dline. so if the fence does not cross the point it does not get put into the list. So how do I identify the point that is not in the COGOGLIST? Do I make another list of all the points then compare the two lists?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 15:44:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12169990#M25711</guid>
      <dc:creator>johnd</dc:creator>
      <dc:date>2023-08-14T15:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Point Check</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12170024#M25712</link>
      <description>&lt;P&gt;You haven't answered my question:&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;In what form do you have the "...&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;cogo points that are used to make up a 3Dpolyline"?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the 3DPolyline was &lt;STRONG&gt;&lt;EM&gt;made from them&lt;/EM&gt;&lt;/STRONG&gt;, you must already have them in some form or other.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 15:52:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12170024#M25712</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-08-14T15:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Point Check</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12170030#M25713</link>
      <description>&lt;P&gt;I guess I'm not unerstanding what you mean by form. this is a snippet of the list&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johnd_0-1692028514407.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1253068i76256EAE8A09EC93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johnd_0-1692028514407.png" alt="johnd_0-1692028514407.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It is the coordinates of all the cogopoints selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 15:56:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12170030#M25713</guid>
      <dc:creator>johnd</dc:creator>
      <dc:date>2023-08-14T15:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Point Check</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12170255#M25714</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2936266"&gt;@johnd&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I guess I'm not unerstanding what you mean by form. this is a snippet of the list&lt;/P&gt;
&lt;P&gt;It is the coordinates of all the cogopoints selected.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I meant is it [in the form of] a list, or a selection set, or something else [maybe a spreadsheet file]?&amp;nbsp; When you say "all the cogopoints selected," do you mean those selected &lt;EM&gt;afterwards&lt;/EM&gt; by Fence from the 3DPolyline's vertices?&amp;nbsp; Or do you mean the ones &lt;EM&gt;beforehand&lt;/EM&gt;, from which the 3DPolyline was drawn?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 17:50:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12170255#M25714</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-08-14T17:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Point Check</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12171160#M25715</link>
      <description>&lt;P&gt;In CIV3d you can have say 1000 COGO points, a point group can have from none or 1 to 1000 points in that group, so your saying you have a group say called Pline1 which matches the vertices of a 3dpline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your image post 5 you show a COGO point with a label which is not part of a 3dpline. So it will not be added to the PLINEX group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thats where I got to and are confused about what you want. Post a before and after dwg, but remember not every one has CIV3D.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you stringing points based on field codes and a point has been missed or something?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 03:33:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12171160#M25715</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-08-15T03:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Point Check</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12171881#M25716</link>
      <description>&lt;P&gt;Ok, I'm going to try and describe my question again.&lt;BR /&gt;The 3Dpolyline is created using the Create line by point object. These point objects will eventually create a list (COGOLIST).&lt;BR /&gt;I select the 3Dpolyline and create a list (PLIST) of all the coordinates of the veriticies.&lt;BR /&gt;With this list I create a fence that selects all the cogopoints that make up this line and create a list (COGOLIST).&lt;BR /&gt;All the points in this list are put into a points group of a name selected by the user.&lt;BR /&gt;IF all the verticies have a cogopoint connected to it, all is fine.&lt;BR /&gt;But, in the creating the line, the designer may create a vertex where there is no point, or,&lt;BR /&gt;he may miss the point and move on to the next one.&lt;BR /&gt;If the vertex has no point attached that is easy to locate, If member of PLIST is not a member of COGOLIST, draw a circle at the vertex&lt;BR /&gt;If the point is not connected to a vertex, it locates the point, if member of COGOLIST is not a member of PLIST, draw a circle at the point&lt;BR /&gt;But, and here is the issue:&lt;BR /&gt;If the point node does not reside at the vertex the routine will pickit up, IF the point label crosses over the 3DPolyline.&lt;BR /&gt;If, as in the snippet posted above, none of the point or its label touches the 3DPolyline, it is not selected with the fence method and is not detected.&lt;BR /&gt;In that case, the COGOLIST to PLIST does not succeed.&lt;BR /&gt;I was considering creating another list, (COGOCHK), perhaps by crossing window to pickup all the points, then run a comparison between&lt;BR /&gt;it and COGOLIST, but I'm looking for other suggestions.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 12:12:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12171881#M25716</guid>
      <dc:creator>johnd</dc:creator>
      <dc:date>2023-08-15T12:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Point Check</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12173825#M25717</link>
      <description>&lt;P&gt;if cogolist is prime data and your objective is to find cogo points missed in building 3dpline you may try to check every cogo point to find closest point to it on 3dpline, then get the parameter of point found and if it is a 3dpline vertex its parameter will be floated integer like 1.0, 2.0 and so on, otherwise the cogo point was missed in building 3dpline or additional proximity checking of cogo point to a vertex on 3dpline should be accomplished. no comparison of lists. that is what i am thinking on this.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 06:16:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12173825#M25717</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2023-08-16T06:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Point Check</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12176780#M25718</link>
      <description>&lt;P&gt;OK back to CIV3D why are you picking points and joining ? CIV3D has stringing but a point must have a code / Description key loading the points file will string all the correct coded points. We have done this since the 80's no CIV3D then it was other software.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Post a COGO point property listing. Ours would be like num,X,Y,Z,Code where code would be say 23EB meaning 23rd edge of bitumen string only 23EB's join together.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 07:26:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/point-check/m-p/12176780#M25718</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-08-17T07:26:19Z</dc:date>
    </item>
  </channel>
</rss>

