<?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 Filtering Property Set Definitions in tables. in AutoCAD Architecture Customization Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-architecture/filtering-property-set-definitions-in-tables/m-p/3578188#M3569</link>
    <description>&lt;P&gt;On my Property Set Definitions I have a attribute table called "ROOM_NO". This is where I enter the full number/character of the room, in my case the value usually looks like "101A", and sometimes "A101B" for Room number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was asked to do another table to separate the fields.&lt;/P&gt;&lt;P&gt;ROOM_PREFIX&amp;nbsp; ROOM_NUM.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ROOM_SUFFIX.&lt;/P&gt;&lt;P&gt;Separating the room number in 3 attribute tables to "A 101 B"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was thinking referencing the ROOM_NO table in each box and filtering out the numbers and character. For example in ROOM_PREFIX I would reference ROOM_NO and filter out the number and the suffix letter through a formula. And in ROOM_NUM I would Filter both alphabetical character.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to write such formula?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://forums.autodesk.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Aug 2012 16:18:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-08-14T16:18:10Z</dc:date>
    <item>
      <title>Filtering Property Set Definitions in tables.</title>
      <link>https://forums.autodesk.com/t5/autocad-architecture/filtering-property-set-definitions-in-tables/m-p/3578188#M3569</link>
      <description>&lt;P&gt;On my Property Set Definitions I have a attribute table called "ROOM_NO". This is where I enter the full number/character of the room, in my case the value usually looks like "101A", and sometimes "A101B" for Room number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was asked to do another table to separate the fields.&lt;/P&gt;&lt;P&gt;ROOM_PREFIX&amp;nbsp; ROOM_NUM.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ROOM_SUFFIX.&lt;/P&gt;&lt;P&gt;Separating the room number in 3 attribute tables to "A 101 B"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was thinking referencing the ROOM_NO table in each box and filtering out the numbers and character. For example in ROOM_PREFIX I would reference ROOM_NO and filter out the number and the suffix letter through a formula. And in ROOM_NUM I would Filter both alphabetical character.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to write such formula?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://forums.autodesk.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2012 16:18:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-architecture/filtering-property-set-definitions-in-tables/m-p/3578188#M3569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-14T16:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Property Set Definitions in tables.</title>
      <link>https://forums.autodesk.com/t5/autocad-architecture/filtering-property-set-definitions-in-tables/m-p/3578484#M3570</link>
      <description>&lt;P&gt;While it is possible to filter out the different portions I think it would be better to create the different portions as property defintions and then use those defintions to create your room name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance, create these these manual defintions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Room_Prefix&lt;/P&gt;&lt;P&gt;Room_Num&lt;/P&gt;&lt;P&gt;Room_Suffix&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then create a fourth formula defintion called Room_No and set it equal to Room_Prefix &amp;amp; Room_Num &amp;amp; Room_Suffix. This would be my first choice on how to approach this problem.&amp;nbsp; If you cannot approach the problem in this manner then you will need to split your Room_No into three seperate property defintions using the MID function. For this to work, the length of the three defintions will need to be constant.&amp;nbsp; Room_Prefix will always be 1 Characters, Room_Num will be 3 characters, and Room_Suffix will be 1 character.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a formula defintion called Room_Prefix and put this into it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MID([Room_No], 1, 1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Start at the first character of the string and return 1 character&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a formula defintion called Room_Num and put this into it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MID([Room_No], 2,3)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Start at the second character of the string and return 3 characters&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a formula defintion called Room_Suffix and put this into it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mid([Room_No], 4, 1)&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Start at the fourth character of the string and return 1 charactor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;As you can see in order for this technique to work you will need to know the length of the strings beforehand.&amp;nbsp; This is why I think you should manually enter in the three strings and concatenate them together to create your Room_No.&amp;nbsp; It really is the best way.&amp;nbsp; Since you already know the three values before hand you are just entering in three seperate values instead of the one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this information helps you out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2012 18:56:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-architecture/filtering-property-set-definitions-in-tables/m-p/3578484#M3570</guid>
      <dc:creator>Keith.Brown</dc:creator>
      <dc:date>2012-08-14T18:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Property Set Definitions in tables.</title>
      <link>https://forums.autodesk.com/t5/autocad-architecture/filtering-property-set-definitions-in-tables/m-p/3578520#M3571</link>
      <description>&lt;P&gt;I have attached a dwg that contains a single space with two property sets attached.&amp;nbsp; The two property sets contain the two different methods that I described above.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2012 19:11:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-architecture/filtering-property-set-definitions-in-tables/m-p/3578520#M3571</guid>
      <dc:creator>Keith.Brown</dc:creator>
      <dc:date>2012-08-14T19:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Property Set Definitions in tables.</title>
      <link>https://forums.autodesk.com/t5/autocad-architecture/filtering-property-set-definitions-in-tables/m-p/3584458#M3572</link>
      <description>&lt;P&gt;Thank you that worked. I am using Version 2. But what do i do if the one of the fields is left at 0, how do i make the interger go BLANK?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2012 18:41:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-architecture/filtering-property-set-definitions-in-tables/m-p/3584458#M3572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-16T18:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Property Set Definitions in tables.</title>
      <link>https://forums.autodesk.com/t5/autocad-architecture/filtering-property-set-definitions-in-tables/m-p/3584504#M3573</link>
      <description>&lt;P&gt;That is the downside to using version 2.&amp;nbsp; Each field has to have a value in order for this to work.&amp;nbsp; Your string needs to have a 1 character to represent a number, 3 characters to represent a string and then 1 character to represent a number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is possible to write a property set that can parse the individual characters and determine if it is a number or a character and act appropriately.&amp;nbsp; It is not simple to write and would take me a couple hours.&amp;nbsp; I am sorry but i don't have a couple of hours to spare until maybe next week.&amp;nbsp; But here is the idea that I am thinking.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Room_Prefix Property Definition&lt;/P&gt;&lt;P&gt;Parse each character of Room_No one at a time.&amp;nbsp; We should expect to see something like num, text, text, text, num.&amp;nbsp; This would be best case scenario.&amp;nbsp; So we parse the first character.&amp;nbsp; If it is a number, then return this number as Room_Prefix, if it is a character then return "".&amp;nbsp; No number is present&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Room_Num Property Definition&lt;/P&gt;&lt;P&gt;Parse each character of the string.&amp;nbsp; If the first character is a number then discard it.&amp;nbsp; If it is a letter then set a temp varialbe equal to it and set your count to 1 and parse the next two characters setting the temp variable equal to itself pllus the next charactor for each parse of the main string.&amp;nbsp; Once the count equals 3, return the temp varialbe as our reselt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Room_Suffix Property Definition&lt;/P&gt;&lt;P&gt;Parse the first character of the string.&amp;nbsp; If the first character is a number then parse the next three characters, if it is a letter then parse the next two.&amp;nbsp; If there is a next character then return that as your Room_Suffix result otherwise return "" as the number is not present.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is the psuedo code of how I would write the property statement.&amp;nbsp; You can use a case statement to determine if the character is a number and another statement to determine if it is a string.&amp;nbsp; These would have to be put into functions in your property definitions.&amp;nbsp; Its a little involved but it is doable.&amp;nbsp; Which is the reason why i said you should go with version 1!!!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2012 18:56:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-architecture/filtering-property-set-definitions-in-tables/m-p/3584504#M3573</guid>
      <dc:creator>Keith.Brown</dc:creator>
      <dc:date>2012-08-16T18:56:36Z</dc:date>
    </item>
  </channel>
</rss>

