<?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: Subtype request in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Subtype-request/m-p/79690#M33744</link>
    <description>Try this inside an calling and macro object and gamble a bit. Try to label the object too.&lt;BR /&gt;

&lt;PRE&gt;s=-1 ! Line spacing

DIM parents[]
n = REQUEST ("ANCESTRY_INFO", 0, name, guid, parents)

IF n THEN
  TEXT2 0,0, "Replaces: " + name + " / " + guid
  ELSE
  TEXT2 0,0, "No results."
  ENDIF
TEXT2 0,s, "Parents:"
ADD2 0,s*2

IF n &amp;gt; 2 THEN
  FOR i = 1 to n - 2 STEP 2
    TEXT2 t,0, parents&lt;I&gt; + " / " + parents[i+1]
    ADD2 0,s
    NEXT i
  ELSE
  ADD2 0,s
  ENDIF

ADD2 0,s


DIM childs[]
n = REQUEST ("ANCESTRY_INFO", 1, name, guid, childs)
IF n THEN
  TEXT2 0,0, "Replaces: " + name + " / " + guid
  ELSE
  TEXT2 0,0, "No result."
  ENDIF
TEXT2 0,s, "Childs:"
ADD2 0,s*2

IF n &amp;gt; 2 THEN
  FOR i = 1 to n - 2 STEP 2
    TEXT2 t,0, childs&lt;I&gt; + " / " + childs[i+1]
    ADD2 0,s
    NEXT i
  ELSE
  ADD2 0,s
  ENDIF&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 25 May 2006 09:14:01 GMT</pubDate>
    <dc:creator>Frank Beister</dc:creator>
    <dc:date>2006-05-25T09:14:01Z</dc:date>
    <item>
      <title>Subtype request</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Subtype-request/m-p/79689#M33743</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;How could I request the lib.part subtype lets say from a called macro? &lt;BR /&gt;
In other words I want to have a macro that could recognise the subtype of the main (calling) script like eg. sectionmarker or detailmarker etc.&lt;BR /&gt;
The closest match I could have found in the help is REQUEST ("ANCESTRY_INFO", expr, name [,guid, parent_name1, parent_guid1,..., however I do not have an idea how to use that, the help explanation is rather perplexing (at least for me). Any thoughts fellos?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 May 2006 23:18:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Subtype-request/m-p/79689#M33743</guid>
      <dc:creator>Rob</dc:creator>
      <dc:date>2006-05-24T23:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Subtype request</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Subtype-request/m-p/79690#M33744</link>
      <description>Try this inside an calling and macro object and gamble a bit. Try to label the object too.&lt;BR /&gt;

&lt;PRE&gt;s=-1 ! Line spacing

DIM parents[]
n = REQUEST ("ANCESTRY_INFO", 0, name, guid, parents)

IF n THEN
  TEXT2 0,0, "Replaces: " + name + " / " + guid
  ELSE
  TEXT2 0,0, "No results."
  ENDIF
TEXT2 0,s, "Parents:"
ADD2 0,s*2

IF n &amp;gt; 2 THEN
  FOR i = 1 to n - 2 STEP 2
    TEXT2 t,0, parents&lt;I&gt; + " / " + parents[i+1]
    ADD2 0,s
    NEXT i
  ELSE
  ADD2 0,s
  ENDIF

ADD2 0,s


DIM childs[]
n = REQUEST ("ANCESTRY_INFO", 1, name, guid, childs)
IF n THEN
  TEXT2 0,0, "Replaces: " + name + " / " + guid
  ELSE
  TEXT2 0,0, "No result."
  ENDIF
TEXT2 0,s, "Childs:"
ADD2 0,s*2

IF n &amp;gt; 2 THEN
  FOR i = 1 to n - 2 STEP 2
    TEXT2 t,0, childs&lt;I&gt; + " / " + childs[i+1]
    ADD2 0,s
    NEXT i
  ELSE
  ADD2 0,s
  ENDIF&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 May 2006 09:14:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Subtype-request/m-p/79690#M33744</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2006-05-25T09:14:01Z</dc:date>
    </item>
  </channel>
</rss>

