<?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: lisp - getpoint geometric center of last entity in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-getpoint-geometric-center-of-last-entity/m-p/9783348#M85695</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;If it's a closed Polyline or Spline:&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(setq p3 &lt;STRONG&gt;&lt;FONT color="#000000"&gt;(osnap (vlax-curve-getStartPoint (entlast)) "gcen")&lt;/FONT&gt;&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[That's assuming there's nothing else with a geometric center around that it could snap to instead, when "picked" at the object's start point.]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will need to do this first, if not done already, to get that (vlax-curve...) function:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;(vl-load-com)&lt;/FONT&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm sorry to restart an old post, but this might be a solution to a problem I'm currently facing. However, the part in my routine tries to get a list of handles and their corresponding geometric centers, so there will always be a lot of other objects to snap to when "picked" at the object's start point. Would turning off osmode sysvar help?&lt;/P&gt;</description>
    <pubDate>Sun, 04 Oct 2020 19:28:32 GMT</pubDate>
    <dc:creator>Michiel.Valcke</dc:creator>
    <dc:date>2020-10-04T19:28:32Z</dc:date>
    <item>
      <title>lisp - getpoint geometric center of last entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-getpoint-geometric-center-of-last-entity/m-p/8952169#M85691</link>
      <description>&lt;P&gt;As per the above. Looking for a little help with a lisp routine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to routine running that draws a region and the next step I am looking for is to set a point&amp;nbsp; as the geometric center of that region so I can use that value in the next stage of the routine. Any help for this line of code would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(SETQ p3 (getpoint ……"gcenter"……."last"...???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 05:01:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-getpoint-geometric-center-of-last-entity/m-p/8952169#M85691</guid>
      <dc:creator>nmckelveyHMN4X</dc:creator>
      <dc:date>2019-08-07T05:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: lisp - getpoint geometric center of last entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-getpoint-geometric-center-of-last-entity/m-p/8952198#M85692</link>
      <description>&lt;P&gt;Check&amp;nbsp;&lt;A href="http://www.lee-mac.com/polygoncentroid.html" target="_blank" rel="noopener"&gt;&amp;gt;&amp;gt;THIS&amp;lt;&amp;lt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or if your last object is a "REGION" then try like this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(setq P3 (vlax-get (vlax-ename-&amp;gt;vla-object (entlast)) 'Centroid))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 05:51:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-getpoint-geometric-center-of-last-entity/m-p/8952198#M85692</guid>
      <dc:creator>dbhunia</dc:creator>
      <dc:date>2019-08-07T05:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: lisp - getpoint geometric center of last entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-getpoint-geometric-center-of-last-entity/m-p/8968986#M85693</link>
      <description>&lt;P&gt;Thank you so much.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Worked perfectly!!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 22:41:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-getpoint-geometric-center-of-last-entity/m-p/8968986#M85693</guid>
      <dc:creator>nmckelveyHMN4X</dc:creator>
      <dc:date>2019-08-15T22:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: lisp - getpoint geometric center of last entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-getpoint-geometric-center-of-last-entity/m-p/8969964#M85694</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5651746"&gt;@nmckelveyHMN4X&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;...&lt;BR /&gt;
&lt;P&gt;(SETQ p3 (getpoint ……"gcenter"……."last"...???&lt;/P&gt;
...&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If it's a closed Polyline or Spline:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(setq p3 &lt;STRONG&gt;&lt;FONT color="#000000"&gt;(osnap (vlax-curve-getStartPoint (entlast)) "gcen")&lt;/FONT&gt;&lt;/STRONG&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[That's assuming there's nothing else with a geometric center around that it could snap to instead, when "picked" at the object's start point.]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will need to do this first, if not done already, to get that (vlax-curve...) function:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;(vl-load-com)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 12:48:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-getpoint-geometric-center-of-last-entity/m-p/8969964#M85694</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2019-08-16T12:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: lisp - getpoint geometric center of last entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-getpoint-geometric-center-of-last-entity/m-p/9783348#M85695</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;If it's a closed Polyline or Spline:&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(setq p3 &lt;STRONG&gt;&lt;FONT color="#000000"&gt;(osnap (vlax-curve-getStartPoint (entlast)) "gcen")&lt;/FONT&gt;&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[That's assuming there's nothing else with a geometric center around that it could snap to instead, when "picked" at the object's start point.]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will need to do this first, if not done already, to get that (vlax-curve...) function:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;(vl-load-com)&lt;/FONT&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm sorry to restart an old post, but this might be a solution to a problem I'm currently facing. However, the part in my routine tries to get a list of handles and their corresponding geometric centers, so there will always be a lot of other objects to snap to when "picked" at the object's start point. Would turning off osmode sysvar help?&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2020 19:28:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-getpoint-geometric-center-of-last-entity/m-p/9783348#M85695</guid>
      <dc:creator>Michiel.Valcke</dc:creator>
      <dc:date>2020-10-04T19:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: lisp - getpoint geometric center of last entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-getpoint-geometric-center-of-last-entity/m-p/9783426#M85696</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3754664"&gt;@Michiel.Valcke&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;....&lt;SPAN style="font-family: inherit;"&gt;the part in my routine tries to get a list of handles and their corresponding geometric centers, so there will always be a lot of other objects to snap to when "picked" at the object's start point. Would turning off osmode sysvar help?&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you're calling for a specific Osnap mode, that would override any running mode(s) that you have set, so I think if it's not getting the geometric center of the object you want, turning OSMODE off probably would not help.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2020 21:09:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-getpoint-geometric-center-of-last-entity/m-p/9783426#M85696</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-10-04T21:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: lisp - getpoint geometric center of last entity</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-getpoint-geometric-center-of-last-entity/m-p/9783496#M85697</link>
      <description>&lt;P&gt;Hmm.&amp;nbsp; 2002 doesn't have a "gcen" snap.&amp;nbsp; That's cool.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2020 22:42:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-getpoint-geometric-center-of-last-entity/m-p/9783496#M85697</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2020-10-04T22:42:21Z</dc:date>
    </item>
  </channel>
</rss>

