<?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: Property Script Help (looking for a better way) in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Property-Script-Help-looking-for-a-better-way/m-p/6321#M41946</link>
    <description>Thanks. If you're heading to ACU West, you can tell me in person.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;</description>
    <pubDate>Wed, 24 Mar 2004 18:19:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2004-03-24T18:19:44Z</dc:date>
    <item>
      <title>Property Script Help (looking for a better way)</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Property-Script-Help-looking-for-a-better-way/m-p/6318#M41943</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Basically I have four different types of windows here. Right now when listing them for B.O.M. as you can see 1 and 2 both true for HLH_Color_Known so thats cause a conflict. Can someone explain a way for substituting code or just a better way to script. Any help would be great.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
if HLH_provider = 'NORCO' then&lt;BR /&gt;
	--1-- if HLH_wintype = 'Safety' and HLH_Color_Known = 1  then&lt;BR /&gt;
		COMPONENT "SCDH" + HLH_unwidc + HLH_unhgtc + "-" + HLH_unnum + " SAFETY", 1, 'pcs',1, HLH_cs + HLH_unnum + HLH_wintypec + HLH_unwidc + HLH_unhgtc + HLH_Color_Code,'000.005'&lt;BR /&gt;
	else&lt;BR /&gt;
		--2-- if HLH_wintype = 'Safety' and HLH_DP_50 = 1 and HLH_Color_Known = 1  then&lt;BR /&gt;
			COMPONENT "SCDH" + HLH_unwidc + HLH_unhgtc + "-" + HLH_unnum + " SAFETY", 1, 'pcs',1, HLH_cs + HLH_unnum + HLH_wintypec + HLH_unwidc + HLH_unhgtc + HLH_Color_Code + "-" + "DP-50",'000.005'&lt;BR /&gt;
		else&lt;BR /&gt;
			--3-- if HLH_wintype = 'Safety' and HLH_DP_50 = 1 then		&lt;BR /&gt;
				COMPONENT "SCDH" + HLH_unwidc + HLH_unhgtc + "-" + HLH_unnum + " SAFETY", 1, 'pcs',1, HLH_cs + HLH_unnum + HLH_wintypec + HLH_unwidc + HLH_unhgtc + "-" + "DP-50",'000.005'						&lt;BR /&gt;
			else&lt;BR /&gt;
				--4-- if HLH_wintype = 'Safety' then		&lt;BR /&gt;
					COMPONENT "SCDH" + HLH_unwidc + HLH_unhgtc + "-" + HLH_unnum + " SAFETY", 1, 'pcs',1, HLH_cs + HLH_unnum + HLH_wintypec + HLH_unwidc + HLH_unhgtc,'000.005'&lt;BR /&gt;
				endif&lt;BR /&gt;
			endif&lt;BR /&gt;
		endif&lt;BR /&gt;
	endif&lt;BR /&gt;
endif&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 May 2023 10:50:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Property-Script-Help-looking-for-a-better-way/m-p/6318#M41943</guid>
      <dc:creator>Red</dc:creator>
      <dc:date>2023-05-24T10:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Property Script Help (looking for a better way)</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Property-Script-Help-looking-for-a-better-way/m-p/6319#M41944</link>
      <description>It would help if I knew paramterers like HLH_Color_Known were boolean or interger but if you have a complex matrix of options, try assigning codes to each parameter choice in the master script. This way each configuration gets it's own unique code that you can identify it with in the property script.&lt;BR /&gt;
&lt;BR /&gt;
!Master Script&lt;BR /&gt;
IF hlh_provider = 'NORCO' THEN  pcode = '01'&lt;BR /&gt;
IF hlh_provider = 'Others' THEN  pcode = '02'&lt;BR /&gt;
&lt;BR /&gt;
IF HLH_wintype = 'Safety' THEN     wcode = '01'&lt;BR /&gt;
IF HLH_wintype = 'option 2' THEN     wcode = '02'&lt;BR /&gt;
&lt;BR /&gt;
IF HLH_Color_Known = 1 THEN ckcode = '01'&lt;BR /&gt;
IF HLH_Color_Known = 0 THEN ckcode = '00'&lt;BR /&gt;
&lt;BR /&gt;
IF HLH_DP_50 = 1 THEN dpcode = '01'&lt;BR /&gt;
IF HLH_DP_50 = 2 THEN dpcode = '02'&lt;BR /&gt;
&lt;BR /&gt;
prodcode = pcode + wcode + ckcode+ dpcode&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
!property script&lt;BR /&gt;
IF prodcode = '01010101' THEN COMPONENT xxxxxx&lt;BR /&gt;
IF prodcode = '01000000' THEN COMPONENT yyyyyy&lt;BR /&gt;
IF prodcode = '01020101' THEN COMPONENT zzzzzzz</description>
      <pubDate>Fri, 23 Jan 2004 23:52:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Property-Script-Help-looking-for-a-better-way/m-p/6319#M41944</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-01-23T23:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Property Script Help (looking for a better way)</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Property-Script-Help-looking-for-a-better-way/m-p/6320#M41945</link>
      <description>Thanks for the advice. BTW I noticed you work for Trus Joist I just wanted to praise you on the GDL object it kicks @$$. Keep up the good work!!!</description>
      <pubDate>Sat, 24 Jan 2004 03:08:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Property-Script-Help-looking-for-a-better-way/m-p/6320#M41945</guid>
      <dc:creator>Red</dc:creator>
      <dc:date>2004-01-24T03:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Property Script Help (looking for a better way)</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Property-Script-Help-looking-for-a-better-way/m-p/6321#M41946</link>
      <description>Thanks. If you're heading to ACU West, you can tell me in person.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;</description>
      <pubDate>Wed, 24 Mar 2004 18:19:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Property-Script-Help-looking-for-a-better-way/m-p/6321#M41946</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-03-24T18:19:44Z</dc:date>
    </item>
  </channel>
</rss>

