ACADuser Posted December 14, 2023 Share Posted December 14, 2023 I'm trying to use Object Info Code in my table. The 3 characters are embedded in the Object Description. And I want the to appear as the Wall Label. Any suggestions? Link to comment Share on other sites More sharing options...
SHCanada2 Posted December 14, 2023 Share Posted December 14, 2023 I dont understand what you are looking for. 3E, 3H etc? 2 characters? what are the 3 character? What are the objection descriptions verbatim? Link to comment Share on other sites More sharing options...
ACADuser Posted December 14, 2023 Author Share Posted December 14, 2023 The 6th 7th & 8th characters from that WALL TYPE. Currently I'm using 3E as a wall type example. I may need 3E1 in the future. %wall_type% returns "Wall 3E to roof", all my wall type names in this project start with "Wall xx ......." I want the label on the wall to display in plan view as "3E" Link to comment Share on other sites More sharing options...
ACADuser Posted December 14, 2023 Author Share Posted December 14, 2023 Looks like this is what I was looking for. %wall_type[5..6]% Link to comment Share on other sites More sharing options...
ACADuser Posted December 14, 2023 Author Share Posted December 14, 2023 This seems to work for labeling the walls Link to comment Share on other sites More sharing options...
SHCanada2 Posted December 15, 2023 Share Posted December 15, 2023 2 hours ago, isaiasquality said: I'm sorry for any confusion, but it seems like your question is unclear or may be missing some context. Could you please provide more details or clarify your question so I can assist you better? Additionally, if you're referring to specific codes, terms, or descriptions, providing more context would help me provide a more accurate response. chatgpt? Link to comment Share on other sites More sharing options...
Flash691 Posted December 15, 2023 Share Posted December 15, 2023 On 12/14/2023 at 4:37 PM, ACADuser said: %wall_type% returns "Wall 3E to roof", Try using %wall_type.split(" ")[1]% If your wall type is always formatted as shown, using split(" ") will create an array with each word separated by the space. Then the "[1]" selects the item from the array which starts at 0. If the formatting stays the same, this will extract the second part regardless of length. Link to comment Share on other sites More sharing options...
ACADuser Posted December 16, 2023 Author Share Posted December 16, 2023 Thanks for the tip, I'll give it a try. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now